Different builds install to different install folders? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

RichHart
Posts: 8
Joined: Mon Oct 03, 2011 11:40 am

Different builds install to different install folders?

Hi all,

Advanced Installer may well already do this, but I'm not sure...

I've been playing with the 'Builds' feature - which overall is very nice. But there is one thing that I really need to get it to do - and I haven't been able to yet.
I'm not sure if it can't, or if I just haven't worked out how to get it to work - but anyway...

Can I get Advanced Installer to set a different application folder for a different build within the same .aip project...?

For example, lets say the overall Product Name of the .aip is called 'Tools Suite'. This will mean that the default application folder will be:
"C:\Program Files\[Company Name]\Tools Suite"

That's fine for the 'DefaultBuild'. But what I want to do is create a new build called - lets say - 'Special Tools'.
Now if I run the .msi for 'Special Tools', I want to change the install application folder to - say:
"C:\Program Files\[Company Name]\Special Tools"

...but still keep everything within the same .aip file.

Is this possible...?

Cheers,
Rich
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Different builds install to different install folders?

Hi Rich,

This can be done very easy, just go to Media page and create your new build.

Now you need to go to Install Parameters page, select from the "Build" combo in the toolbar the new build and then set this value for the
edit control "Application Folder":

Code: Select all

[ProgramFilesFolder][Manufacturer]\Special Tools
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RichHart
Posts: 8
Joined: Mon Oct 03, 2011 11:40 am

Re: Different builds install to different install folders?

Perfect!
I figured there was something easy I was missing :)

Thanks for the help...
RichHart
Posts: 8
Joined: Mon Oct 03, 2011 11:40 am

Re: Different builds install to different install folders?

Hmmm - I'm wondering if I can take this one step further (assuming it makes sense to...)

Ok - so now I've got my 'Special Tools' build installing to "C:\Program Files\[Company Name]\Special Tools"

But when I run the installer, the title of the installer still says 'Tools Suite' (The old title). I'd rather the title was 'Special Tools'.

If I've previously installed 'Tools Suite', it won't let me install 'Special Tools' because that 'product' has already been installed.
I'd prefer it treat it as a seperate product and install it to the different install folder.

Maybe I'm approaching this the wrong way...?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Different builds install to different install folders?

Hi,
But when I run the installer, the title of the installer still says 'Tools Suite' (The old title). I'd rather the title was 'Special Tools'.
For this you can try to go to Product Details page and set the "Product Name" field to "[|AI_BUILD_NAME]". This will make the product name to be resolved to the
build's name.
If I've previously installed 'Tools Suite', it won't let me install 'Special Tools' because that 'product' has already been installed.
I'd prefer it treat it as a seperate product and install it to the different install folder.
This is not correct because both package have the same upgrade and product codes, by design. If they were to have different codes then they
would be considered as different products.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RichHart
Posts: 8
Joined: Mon Oct 03, 2011 11:40 am

Re: Different builds install to different install folders?

Bogdan wrote:
If I've previously installed 'Tools Suite', it won't let me install 'Special Tools' because that 'product' has already been installed.
I'd prefer it treat it as a seperate product and install it to the different install folder.
This is not correct because both package have the same upgrade and product codes, by design. If they were to have different codes then they
would be considered as different products.

Regards,
Bogdan
Ahh - ok. Thanks - I thought this might be the case.
So I really need to make a new .aip called 'Special Tools', and maintain that separately...?

If so - then OK. But it's a just a little frustrating because 'Special Tools' is just a sub-set of features compared to 'Tools Suite'. But -at the same time - it needs to act like a separate 'product' in every other sense.
So the idea of having to maintain only one .aip and get both 'products' automatically is really appealing. (But I guess not possible...?)

If I put 'Special Tools' into it's own .aip, then I will have to maintain two separate installer projects in parallel - yet all the changes in the common sub-set will be exactly the same...!

But if that's how it is, then that's how it is I guess...
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Different builds install to different install folders?

Hi,
So I really need to make a new .aip called 'Special Tools', and maintain that separately...?
Yes, and please make sure you create a new project, not copy this one, as you need new GUIDs generated.
If I put 'Special Tools' into it's own .aip, then I will have to maintain two separate installer projects in parallel - yet all the changes in the common sub-set will be exactly the same...!
You can try to create a merge module using the common part of the two projects, and insert the merge module in both of them. This way when adding a new common for example
you just have to add it in the merge module, rebuild it, then issue a rebuild command for each project so they use the new resource.
http://www.advancedinstaller.com/user-g ... ature.html
http://www.advancedinstaller.com/user-g ... dules.html

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Moskito
Posts: 9
Joined: Tue Jun 26, 2012 8:17 am

Re: Different builds install to different install folders?

Hello,

I tried the same and yes, it seems possible with a little bit DOS.

AdvancedInstaller /EDIT MoskitoALKIS.aip /setversion 1.1.0
copy MoskitoALKIS.aip MoskitoALKIS2.aip
copy MoskitoALKIS.aip MoskitoALKIS3.aip
AdvancedInstaller /EDIT MoskitoALKIS.aip /setversion 5.69.1
AdvancedInstaller /EDIT MoskitoALKIS2.aip /setversion 5.69.1
AdvancedInstaller /EDIT MoskitoALKIS3.aip /setversion 5.69.1
AdvancedInstaller /build MoskitoALKIS2.aip -buildslist ProWeb;Pro
AdvancedInstaller /build MoskitoALKIS3.aip -buildslist Light;LightWeb

All have different ID's. The first /SETVERSION garanties a new ID for all the other /SETVERSION. At last Step, I generate all 4 targets, but in 2 Steps.

Greetings

Horst

Return to “Feature Requests”