.NET Install Package Sometimes does not completely remove previous versions

I am distributing my application using the VS2008 installation package, which usually works fine. When I create new versions of the application, I enable and extend the property Versionin the installation package and verify that the property is RemovePreviousVersionsset to True.

This works very well in most cases - I just run the installation package for a newer version, and the old version is deleted, and the newer version replaces it.

However, sometimes the installation package starts successfully, but when I run the program, the old version starts. Apparently, the old version of .exe is still present.

I need to completely remove the software and install a new version that always works, but it’s a pain.

The file is not used, as far as I can tell, and the installation package does not tell me to reboot.

Any ideas on what's going on here?

+3
source share
3 answers

Not a direct answer, but the key difference between updating and uninstalling + reinstalling is that any custom uninstallation steps are not called in 2k8, but in 2k5.

This is stated in Visual Studio 2005 → Question about updating the installer project 2008/10

Another difference associated with this is that in 2k8 files are updated based on the version information resource - if your modules do not have newer versions, they are not replaced.

In some cases, you have a strong name, but I'm sure the last paragraph covers the problem you are seeing.

+4

second - orca

Orca - msi.

'Orca' . http://www.softpedia.com/get/Authoring-tools/Setup-creators/Orca.shtml

:

 a. Install orca into your computer.
 b. Open orca
 c. Drag and drop your msi into orca UI
 d. Into left panel it will list the name of tables
 e. select property table
 f. go to right panel and right click
 g. click on 'Add Row'
 h. into 'Property' type REINSTALLMODE
 i. into 'Value' type amus
 j. save msi file
 k. and that it

.

+3

REINSTALLMODE msi amus.

, 'amus' http://msdn.microsoft.com/en-us/library/aa371182%28VS.85%29.aspx

.

  • msiexec.exe, .NET SDK ( VS 2005 VS 2008, , , ).

after you find msiexec.exe, just enter the following command to set the REINSTALLMODE property to amus for your installer.

msiexec.exe / i foo.msi REINSTALLMODE = amus

0
source

Source: https://habr.com/ru/post/1699562/


All Articles