jfinley
Posts: 7
Joined: Thu Nov 05, 2009 6:50 pm

How to install features into different app dirs?

Howdy,

My program has two distinct features, a server and a client that I would like to install via one installer package (where the user chooses to install one or both of the features). However, I would like to install each feature into a different application directory. For example, I would like my server feature to be installed into C:\Program Files\My Company\Server, and I would like my client feature to be installed into C:\Program Files\My Company\Client.

I was able to get this to sort of work by setting the [APPDIR] and [SHORTCUTDIR] properties according to which feature the user selected to install. However, I am running into issues when the user opens the installer again to modify his installation (ie: to add the other feature). For instance, if I install the server feature and then quit the installation package, then run it again, I get the modify dialog that asks me how I would like to modify my installation. From here I choose my other feature, the client, and it installs all of the client feature components, but it installs them into the existing server dir on my machine instead of creating the client dir.

Any ideas on how I can do this? ...or must I simply create two installer packages, one for each program?

Thanks!
-Jess
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to install features into different app dirs?

Hello,

On the Organization page, select your feature. In the right pane you have the possibility to set the install directory for each feature by editing the "Directory" field.
Also, for installing files in a custom folder, you can use a property based folder. Our guide on how to install files in a custom folder describes this in detail.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”