dave@lexis
Posts: 2
Joined: Thu Oct 10, 2013 4:16 am

Can I upgrade previous version without uninstall?

I built an instal kit for a previous version of our product. I have since built several (as yet unreleased) new version of this kit. Each time I incremented the kit version number and accepted the default of making the new kit a major upgrade (i.e. generating a new product ID).

Now I am preparing to release this new version and I would like to be able to lay down this new version without uninstalling the previous version. I tried simply changing the product ID in the new version kit to what it was back in the previously release version, but the new kit refuses to install, giving me a message about needing to uninstall the previous version first.

Is this a way back from here?

Dave
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Can I upgrade previous version without uninstall?

Hello Dave and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Please keep in mind that a major upgrade is essentially the removal of an older product which is replaced by a newer product. Please take a look on the Upgrades article.

As far as I can see creating a patch should be the right solution for you, because you don't want to uninstall the previous version. Can you please take a look on the Patches article and on the Patch Authoring tutorial. Also, when creating patches you should make sure they don't break the patch rules.
I tried simply changing the product ID in the new version kit to what it was back in the previously release version, but the new kit refuses to install, giving me a message about needing to uninstall the previous version first.
This is happening when you are using the same ProductCode because two products with the same ProductCode can not be installed on the same computer. Windows Installer will prevent this with an error reading:
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
Please let us know if that helped.

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

Return to “Building Installers”