Upgrade builds of current version - Advanced Installer Community
sfaust
Posts: 57
Joined: Tue Oct 13, 2015 11:57 pm

Upgrade builds of current version

I periodically come out with new builds of my software (bug fixes, graphic updates, etc.) that don't require a new product version, just a new build. I would like the installer to remove the existing build and then install the new one, but I can't figure out how to do that. I thought I was doing it by changing the product code for each build and leaving everything else the same, but it's not right. It does overwrite the old files because they are in the same place, but when I look in Add/Remove Programs I see several copies of my program (sometimes 4 or 5 if I was messing with it trying to install right).

I searched around a bit and found the instructions for the upgrades page. I check the 'customize rules' checkbox and can see the old products one. I thought I could just check the 'Include Maximum' box, but whenever I do, it won't let me press OK on the dialog and actually won't even let me go to the other tab. And even if I don't change anything on the older versions one it won't let me press ok. I also tried to add a new upgrade rule with the same upgrade code but it won't let me press OK there either.

So how do I do this?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrade builds of current version

Hello,

To upgrade an older installation you can follow these steps:
  • open the AIP (Advanced Installer Project file) you used to build the old package
  • make sure that the "Automatically upgrade older product versions" option is set in the "Upgrades" page
  • make the modifications you want to include in the upgraded package
  • go to the "Product Details" page and increase the version of the package
  • when you move from this page you are prompted about the update method
  • answer "Generate new" (the package's old and new version must have different Product Codes)
  • build the AIP and install the new version
Note that if you run the upgraded package on a machine which has the old package installed, the old package will be removed automatically (and silently) and the upgraded package will be installed.

By the way, are you using the 4th field for the product version? If YES, please take a look on the How do I remove the old version when using the fourth field of the Product Version? article with related information for hints and guidance.

Let me know if everything is working as expected.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sfaust
Posts: 57
Joined: Tue Oct 13, 2015 11:57 pm

Re: Upgrade builds of current version

Sorry just getting back to this. So you have to increase the version? I just want a new build of the project, like 2.0 to 2.0, is that possible?

I guess I could do 2.0.01 or something, but the problem there is that I am using an MSI name like:

COBie Extension [|ProductVersion] Setup ([|RevitVersion])

so it's using product version in the name and I'd like the name to stay the same as well. Not terribly hard to change that I guess but still...
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Upgrade builds of current version

Hello,

If you want to preserve your product version then you can build an EXE setup package and enable our "Uninstall a package with the same version (if found)" option from "Build page -> Configuration tab". Please note that when using the above option you should not change the Product Code either.

Let us know if this helped.

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

Return to “Common Problems”