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!

Vaccano
Posts: 1
Joined: Fri May 20, 2016 10:49 pm

Automatic Updating Is Allowing Side-by-Side

I have the following options selected with my AIP:
  • • Automatically Upgrade Older Versions
    • • Use original installation path when upgrading
    • Uninstall old version first then install new version.
I save this, then I run the following Command-Line commands:

Code: Select all

AdvancedInstaller.com /edit ArupPrintingServiceSetup.aip /SetVersion 1.0.0.17
AdvancedInstaller.com" /build ArupPrintingServiceSetup.aip
And that gives me a nice installer for version 1.0.0.17. I install that I see it show up in "Programs and Features" (aka "Add/Remove Programs") as 1.0.0.17.

So then I do the same thing again for version 1.0.0.18:

Code: Select all

AdvancedInstaller.com /edit ArupPrintingServiceSetup.aip /SetVersion 1.0.0.18
AdvancedInstaller.com" /build ArupPrintingServiceSetup.aip
And that also out puts an installer correctly. So I run that and it has no problems.

But when I go into "Programs and Features" (aka "Add/Remove Programs") I see two entries for my application in there. One for 1.0.0.17 and one for 1.0.0.18.

What can I do to make it uninstall my previous version before installing the new one?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Automatic Updating Is Allowing Side-by-Side

Hello and welcome to Advanced Installer forums,

This is happening because you are using the 4th field of the ProductVersion. Note that Windows Installer uses only the first three fields of the Product Version. If you include a fourth field in the product version, the installer ignores it. For details, please check the ProductVersion article.

However, the previous installed version can still be removed, although only the fourth field from the product version is increased, by following these steps:
  • Go to the Upgrades page and enable the Customize Advanced Installer upgrade rules option;
  • Double-click on the Advanced Installer rule that is related to the [OLDPRODUCTS] property;
  • In the Product Info tab, enable the Include maximum version in range option and click OK
Please note that you need to generate manually a new ProductCode in the Product IDs Tab from the Product Details page.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”