Multiple Instance failing when installing older version - Advanced Installer Community
DPenney
Posts: 36
Joined: Thu Feb 19, 2015 2:58 pm

Multiple Instance failing when installing older version

I am be (and probably am) doing something wrong with my Advanced Installer configuration. I will try to be succinct.

Problem: Attempting to install an older version of our product after a newer version is installed causes the "A more recent version..." dialog.

1. I have multiple instances set in the configuration with the option to 'Generate instances at installation time' selected;
2. I install a newer version of our software (say, version 1.1) with a UpgradeCode AAAA and ProductCode 2222 (I am making these codes up here for brevity);
3. I attempt to install an older version (version 1.0) with UpgradeCode AAAA and ProductCode 1111;
4. I get prompted, as expected, to 'Install a new instance' or 'Maintain or upgrade...' - I select 'Install new instance'.
5. I get the "A more recent version..." dialog;

We have another product with similar (Advanced Installer) configuration that allows this process to proceed. One difference between the Advanced Installer Configurations (that I can see; I may be missing something) is that this product, the one that works and allows installation of older versions, has both the Multiple Instances _and_ side-by-side installs configurations selected/enabled.

Please help! How do I get a product to install a second instance that might be older than the earlier instance?
DPenney
Posts: 36
Joined: Thu Feb 19, 2015 2:58 pm

Re: Multiple Instance failing when installing older version

I have recreated the configuration in a simple format.

I created a simple installer configuration with Multiple Installs checked (and Upgrades set to Update (as I can not select Side-by-Side)). I ran the installer once to create the 1.0.0 version, modified the version.txt file and re-ran to create the 1.0.1 installer.

In the attachment are logs of both installer creation steps (I have a build script that sets a couple of values, then calls Advanced Installer). The AIP files before and after the entire process and the logs of the install (msiexec) execution.

Running the installers: I started with the 1.0.1 installer and followed up with the 1.0.0 installer.

Please let me know if there is something else I can provide.

PS: I also noticed that two properties I set (ProductVersionShort and ProductVersionBuild) are no longer changing the values in the dialog boxes (User Interface -> Dialogs -> WelcomeDlg). This used to work (previous versions of Advanced Installer?).
Attachments
InstallerTest-no_binaries.zip
(44.64 KiB) Downloaded 311 times
DPenney
Posts: 36
Joined: Thu Feb 19, 2015 2:58 pm

Re: Multiple Instance failing when installing older version

I feel I am spending too much time on this issue.

Here is the version that 'works'. I went back to an earlier AIP file that had both Multiple Instances and Side-by-Side installs enabled and the installation of a second instance with an older version worked as expected.

File attached.
Attachments
InstallerTest-no_binaries-both.zip
(59.96 KiB) Downloaded 517 times
DPenney
Posts: 36
Joined: Thu Feb 19, 2015 2:58 pm

Re: Multiple Instance failing when installing older version

Hello?

I think I have provided everything asked. Advanced Installer 13.0.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Multiple Instance failing when installing older version

Hello,

Please note this is the normal behavior when not using a side-by-side upgrade type. You cannot downgrade the already installed higher product version to the current installing old version.

The only way to achieve what you need is to allow the side by side installations.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DPenney
Posts: 36
Joined: Thu Feb 19, 2015 2:58 pm

Re: Multiple Instance failing when installing older version

Oh! I see! When I enabled Side-by-Side installs in the configuration, I never saw what must be the Multiple Install dialog (that lets you select to upgrade an instance or install a new instance).

So that simplifies things a lot. Does this method (side-by-side install) allow for upgrading (if I select a directory that has different version of my product in it)?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Multiple Instance failing when installing older version

Hello,
So that simplifies things a lot. Does this method (side-by-side install) allow for upgrading (if I select a directory that has different version of my product in it)?
Yes, when selecting the same install location as for your old version, the old product version will be automatically upgraded (uninstalled).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”