kungman17
Posts: 8
Joined: Wed Dec 10, 2008 9:57 pm

A version of this program is already installed

I am creating an installer that does not add an entry into the Add/Remove programs control panel, however it does register itself with Windows Installer. I have the installer set to not allow side-by-side installs of different versions. If I want to create a new installer of the same version i.e. version 1.0.2 and try to install it over the top of a previously installed 1.0.2 version, then I get a message saying something like "a version of this program is already installed." I then have to use the Windows Installer Cleanup Utility http://support.microsoft.com/kb/290301 to remove the 1.0.2 version from the registry before I can reinstall 1.0.2. Is there a way I can programatically remove the registry entry for the 1.0.2 version I had previously installed so I don't have to manually remove it using the Windows Installer Cleanup Utility?

Thanks,

Brett
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: A version of this program is already installed

Hi Brett,

Since the two installers have the same version, I'm afraid that the old package needs to be uninstalled manually. Please note that side-by-side installation require some steps to be followed.

In order to uninstall the old package you can try one of these approaches:
1) Run the new package by using the "Run" button in Advanced Installer. This way Advanced Installer will automatically uninstall the old package.
2) Run the old package again to make it go into maintenance mode and use the "Remove" option.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

Re: A version of this program is already installed

You can automatically remove the prior build of the same version via a preinstall script. See my reply under
"Update the Product Version"

Return to “Common Problems”