How do I ensure my winform application deployment overwrites old versions

后端 未结 4 871
忘了有多久
忘了有多久 2021-01-02 12:28

I have created a msi install package for my project from the VS2008 deployment project. but I am having problems when it comes to upgrading installs, The previously installe

4条回答
  •  执念已碎
    2021-01-02 13:00

    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

提交回复
热议问题