Kfran
Posts: 14
Joined: Tue Dec 11, 2012 11:04 pm

Program is already installed message. How can I get around that please?

If our program is already installed and if the user runs the setup again, we want it to just reinstall.
We do not want the message of: "Program is already installed. If you need to reinstall, you will need to uninstall first".
We don't want that.

What can I change in my installer script to just reinstall the program automatically or to automatically uninstall the old and then install again?
Our installs are: Single EXE setups (Builds page). I have checked "Uninstall a package with the same version (if found)" on the Builds page but that does not get past this.

Any help would be greatly appreciated!!! I tried to search the forums but it won't let me. The words: Program already installed are "too common" and won't allow me to search.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Program is already installed message. How can I get around that please?

Hello,

The standard Windows Installer beheviour is the following:
-It checks if the product code of the package is already installed, and if this is the case it will not allow another installation of the same product code and a maintenance mode will be triggered.

However, the error message you are referring can only occur on development machines during the installer's authoring process. You needn't consider preventing it on clients' machines.

This error will be displayed at the second install, if the .AIP project is modified, a new build is created, but the product code is not changed. Please take a look on this article : Product Identification (ProductCode and UpgradeCode)
In this case Windows Installer detects that there is another package with the same product code already installed and displays an error.

If you want to avoid this error message on your development machine, you could start the installation from Advanced Installer. Advanced Installer will automatically remove the old install, and no error will be displayed.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”