开发者

How do I uninstall a program with C#.NET with VS Express 2008

开发者 https://www.devze.com 2023-03-01 00:42 出处:网络
I have VS 2008 Express (.NET 3.5) and currently have no way to elegantly uninstall my program whenever I publish an update. Right now people are using the program outside of my network (so I can\'t po

I have VS 2008 Express (.NET 3.5) and currently have no way to elegantly uninstall my program whenever I publish an update. Right now people are using the program outside of my network (so I can't point them to some intranet folder to check for updates, and checking an internet site is no good either). There are frequent updates (for reasons too complicated to go into here) and they constantly need to be using Add/Remove programs to uninstall then reinstall. Is there a way to have a Start Menu option to uninstall my program? Surely there must be, I'm a novice at C# (just moved fr开发者_StackOverflowom VBA) so I'm still learning the options. Thanks


Have you looked at 'Click Once Deployment'? http://msdn.microsoft.com/en-us/library/t71a733d(v=vs.80).aspx

It would allow your users to get updates as they are released as well as uninstall through add/remove programs.


If you use full Visual Studio, then you can create a Setup project which will create an Install/Uninstall EXE for you.

If not, then I guess you'll have to write your own installer, or maybe add some batch files to install or uninstall your program.

0

精彩评论

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