.NET Install Package Sometimes Not Completely Removing Previous Versions

前端 未结 3 1762
半阙折子戏
半阙折子戏 2021-01-06 12:06

I distribute my application using a VS2008 install package, which normally works great. When I create new versions of the app, I go in and increment the Version

3条回答
  •  独厮守ぢ
    2021-01-06 12:46

    We need to set REINSTALLMODE property of our msi file to amus.

    Following is the link to know more about the meaning of 'amus' http://msdn.microsoft.com/en-us/library/aa371182%28VS.85%29.aspx

    There are two ways to do that.

    1. By using msiexec.exe which comes with .NET SDK (if you have VS 2005 or VS 2008 it will come with it, just browse to command prompt of visual studio and you will find it there)

    once you find msiexec.exe just type following command to set REINSTALLMODE property to amus for your installer.

    msiexec.exe /i foo.msi REINSTALLMODE=amus

提交回复
热议问题