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!

DeonEve
Posts: 8
Joined: Mon Jul 17, 2017 8:58 pm

Conditional "Register product with Windows Installer"

Is it possible to switch on and off the "Register product with Windows Installer" option based on the value of a public property passed when the install is launched?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Conditional "Register product with Windows Installer"

Hi,

I'm afraid that this is not possible. That option can only be enabled or disabled before building the package. Can you please give me more details about your scenario and why do you need this option?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DeonEve
Posts: 8
Joined: Mon Jul 17, 2017 8:58 pm

Re: Conditional "Register product with Windows Installer"

I currently have a windows installer package which installs an application "MyApp" to a specific directory, say "C:\Program Files (x86)\MyApp". Currently the installed version of MyApp is 3.2.1 on the user's pc. I am trying to modify the install package such that I can install a "testing" version of MyApp (version 3.2.2) in a different directory, say "C:\Program File (x86)\MyApp Test" by supplying a parameter eg TEST=Y when launching the installer. The testing version should not remove version 3.2.1. If I don't supply the TEST parameter then version 3.2.2 should install in "C:\Program Files (x86)\MyApp" and it should remove version 3.2.1. I already know how to install to a different directory by populating the APPDIR and the SHORTCUTDIR when installing but I'm having difficulty with having one installer package allow same version of an app to be installed twice (the test version 3.2.2 and the production version 3.2.2) AND having that same installer allow the two different versions of an application being installed twice (version 3.2.1 and version 3.2.2). Are you able to assist?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Conditional "Register product with Windows Installer"

Hi,

To achieve this you can use the "Multiple Instances" feature. More instances of your package can be added in the project and the desired name can be set for them.

No property should be set for this because the desired instance can be selected from the instance selection dialog that is displayed at the beginning of the installation.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DeonEve
Posts: 8
Joined: Mon Jul 17, 2017 8:58 pm

Re: Conditional "Register product with Windows Installer"

The Multiple Instances feature only allows you to have multiple instances of the same version of the application. You can't have multiple instances of different versions.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Conditional "Register product with Windows Installer"

Hi,

You can also have different versions of the application using multiple instances. Just upgrade the instances you want and do not upgrade the others or simply install new instances of different versions without maintaining the others.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DeonEve
Posts: 8
Joined: Mon Jul 17, 2017 8:58 pm

Re: Conditional "Register product with Windows Installer"

I don't see how that will work since MyApp 3.2.1 is not a multiple instance install. There is only one instance to upgrade. So I don't see how I can specify multiple instances for MyApp 3.2.2 and not have the installer automatically remove MyApp 3.2.1. In launching my install I specified the an instance to install but in doing so it removed MyApp 3.2.1. Is there some way I can prevent it from removing the old version?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Conditional "Register product with Windows Installer"

Hi,

If MyApp 3.2.1 was not installed as an instance, it will be, indeed, removed during the upgrade. However, if you go in the "Multiple Instances" page, add more instances and install MyApp 3.2.1, then increase the version of the project and install MyApp 3.2.2 as a new instance, the old instance should not be removed anymore.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DeonEve
Posts: 8
Joined: Mon Jul 17, 2017 8:58 pm

Re: Conditional "Register product with Windows Installer"

Sorry MyApp 3.2.1 has already been deployed to the users' desktops. Is there a way to make MyApp 3.2.1 look like an instance to the installer?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Conditional "Register product with Windows Installer"

Hi,

I'm afraid that this is not possible. Either way, your scenario is not supported by Windows Installer and it is not recommended to implement it in a single package. Having different packages (you can add more builds in the "Builds" page) for the test and the production versions is recommended.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”