Custom installation different paths - 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!

sajberbob
Posts: 3
Joined: Wed Jul 08, 2009 9:55 am

Custom installation different paths

Hi,

I am fairly new at this and have run in to a problem. I have been searching around trying to find the solution but wasn't able to. This is why I post.

I have about 5 independent applications that I would like to install. I have added the files and organized them into separate Features under Organization. I change, under Dialogs, the FolderDlg to a SetupTypeDlg. Everything works!

Now I would like to be able to choose among the Features, at custom installation, and select different installation folders for the different features. If this is possible could anyone give me some directions on how to accomplish this?

Cheers
Kjell
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom installation different paths

Hi,

Currently this is not supported by Advanced Installer. However, I added this feature on our TODO list and it will be available in a future release. Thank you for your suggestion.
Until then, a solution is to edit the MSI package with Orca. In the Feature table you can set the "Directory_" column to the name of the folder which corresponds to the feature.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sajberbob
Posts: 3
Joined: Wed Jul 08, 2009 9:55 am

Re: Custom installation different paths

Hi Cosmin,

Thank you for the quick reply. I have another "newbie" question. Is there a way to take say 10 separate .msi packages (created in Visual Studio 2008) and make one .msi with advanced installer and installing only the .msi I choose from custom installation in AI?

Cheers
Kjell
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom installation different paths

Hi,

This can be done in multiple ways:

1) Add the packages as prerequisites. This way the user can choose the ones he wants and the prerequisites will be installed before the main package.

2) Another solution is to add them as chained packages. In this case you can use the Dialogs page to create a custom dialog which allows the user to select which packages are installed. For example, you can use checkboxes for each MSI and their properties can condition the chained packages.

3) You can also import the MSI packages into an Advanced Installer project. In the Organization page you can use a different feature for the contents of each MSI. Adding the "SetupTypeDlg" dialog in the "Dialogs" page will allow the user to select which features are installed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sajberbob
Posts: 3
Joined: Wed Jul 08, 2009 9:55 am

Re: Custom installation different paths

cosmin wrote:Hi,

This can be done in multiple ways:

1) Add the packages as prerequisites. This way the user can choose the ones he wants and the prerequisites will be installed before the main package.

2) Another solution is to add them as chained packages. In this case you can use the Dialogs page to create a custom dialog which allows the user to select which packages are installed. For example, you can use checkboxes for each MSI and their properties can condition the chained packages.

3) You can also import the MSI packages into an Advanced Installer project. In the Organization page you can use a different feature for the contents of each MSI. Adding the "SetupTypeDlg" dialog in the "Dialogs" page will allow the user to select which features are installed.

Regards,
Cosmin
Hi,

#3 is the thing I want. But when I have imported all 10 .msi, arranged my Organization, added the SetupTypeDlg, build and run, I get an critical error and the setup ends "prematurely". What is wrong? Is it possible that it has something to do with that Setup projects in Visual Studio 2008 creates a setup.exe in addition to the .msi file?

Sorry to be asking a lot of newbie questions!

Cheers
Kjell
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom installation different paths

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project) file you are using and a verbose log of the install process to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”