开发者

C# WinForm application setup problem

开发者 https://www.devze.com 2022-12-08 19:16 出处:网络
In my VS 2008 C# WinForm application, I\'ve made the Install.msi and Setup.exe on my application release folder.

In my VS 2008 C# WinForm application, I've made the Install.msi and Setup.exe on my application release folder.

The client can install the 开发者_开发百科application on C:\Program Files\ by running the setup.exe.

But there comes a new question, when I made a new Install.msi and Setup.exe, the client has to remove the application via Control / Add Remove Program, then excute the Setup.exe.

How do we fix this problem so the client's update will be more convenient?

otherwise,

how to create simple exe file like vb exe.

Thanks for help.


There are a couple of things you need to do. In the Properties for the Setup Project:

  1. Set the RemovePreviousVersions property to TRUE.
  2. Set the VersionNumber of the Setup Project. When doing this, you will be prompted that you will need a new product code. Just click Yes.

The VersionNumber of the installer is what the installer uses to determine if the current version is greater than the installed version. If the current version is greater, it will uninstall the previous version, then install the new version.


When you are deploying an update of your application with a VS2008 Setup Project, you must change the version of the project. When doing so, VS2008 will ask you that if you change the version of your application it will change the product code of your application. Mading these changes, when you will install the application on your client computer, Windows will detect that your application is an update of the older one and he will automatically overwrite the data with the new application data.

Hope it helps! Regards, PL

0

精彩评论

暂无评论...
验证码 换一张
取 消