为更新的 WinForms 应用程序创建安装程序
我发布了一个应用程序,并且已经实现了用户请求的功能,并且想要发布新版本。 我不确定这通常是如何完成的 - .NET 安装项目中是否有一些设置可以用来告诉它在应用程序已安装的情况下只覆盖某些文件,或者我是否必须以某种方式生成补丁?
如果您建议自动更新,我同意这是一个好主意,但原始版本只是检查应用程序网站以查看是否有新版本,并将引导用户访问更新版本的下载页面- 它不会为您下载和自动更新。 即使我将其添加到此版本中,我仍然需要一种友好的方式来向现有用户提供更新。
I released an app and I've implemented a user-requested feature and would like to release a new version. I'm not sure how this is typically done - is there some setting in the .NET setup project that I can use to tell it to just overwrite certain files if the application is already installed, or do I have to generate a patch somehow?
If you're going to suggest auto-updating, I agree that is a good idea, but the original version just checks the app web site to see if there is a new version and will direct the user to a download page for the updated version - it doesn't download and auto-update for you. Even if I add that to this version, I still need a friendly way to provide an update to my existing users.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设您指的是 Windows Installer 中使用户在安装“新版本”之前卸载“当前版本”的功能?
在安装程序项目属性中,查看“ProductCode”和“UpgradeCode”的属性。 这些是定义安装程序如何查找以前版本的指南。
为了简单地为用户提供安装程序来安装更新版本,请增加“版本”属性/编号,安装程序应更新文件系统上的文件,而不会在开始菜单、添加/删除程序等中创建重复条目。
I assume you mean the feature in Windows Installer that makes the user uninstall the "current version" before installing the "new"?
In the Installer Project properties, take a look at the properties of "ProductCode" and "UpgradeCode". These are Guids that define how the installer looks for previous versions.
To simply give the users an installer to install an updated version, increment the "Version" property/number and the installer should update the files on the file system without creating duplicate entries in start menu, add/remove programs, etc.
ClickOnce 发布模型非常适合小型应用程序。 在您的项目中,只需右键单击它进入属性,然后单击“发布”选项卡。
The ClickOnce publish model works well for small apps. In your project, just right click it go to properties and then click on the "Publish" tab.