C # VS uninstaller

I created VS installer in VS2010. It works great. when the program is already installed and you re-run the installation program, it will offer to restore and remove. it's good. the problem is that when I rebuild the same exact installer and try to install it on a machine that already has one installed, it will not give me a fix or delete. Instead, it pops up a message “Windows Installer: another version of this product is already installed. Installing this version cannot continue ...”, then it asks me to perform a manual uninstall using “Add or Remove Programs” from the control panel.

Thus, something must be changed / auto generated during reassembly. a good key or something that is different from the old version, which makes new the inability to recognize the older version. Does anyone know how to handle this?

+4
source share
3 answers

If you increase the version, it will automatically detect the previous version and process it according to your configuration on RemovePrevousVersions and DetectNewerInstalledVersion .

enter image description here

+3
source

increase your version of the installation project and install

 - DetectNewerInstalledVersion = true - RemovePrevousVersions = true 

Additional information: http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/717cfce0-3061-400f-9ea3-069f73f3a473

+3
source

In the properties of the VS Setup project, set the RemovePreviousVersions parameter to True. In my opinion, the default value is false. I believe that this will save time and not do it manually.

In addition, these properties have ProductCode, UpgradeCode, and Version. These installation control rules, more information here:

http://msdn.microsoft.com/en-us/library/aa372845 (v = VS.85) .aspx

More details:

http://msdn.microsoft.com/en-us/library/aa370579 (v = vs .85) .aspx

+2
source

All Articles