如何从 Visual Studio 2010 部署桌面应用程序升级
我开发桌面应用程序,并使用 Visual Studio 2010 中的部署项目向测试人员频繁发送测试版。我每次都会增加次要版本号。
我的测试人员很恼火,因为他们必须先卸载以前的版本才能安装新版本。
是否可以在不卸载旧版本的情况下安装新版本?新安装可以对以前的进行升级吗?
我们的项目中有一个COM组件,它也是开发的,因此我们发现很难在网页上发布应用程序。
我们还尝试更改每个新版本的产品代码(Visual Studio 会询问此问题),但我们有理由相信这会破坏安装。
I work on a desktop application and I send frequent betas to testers using deployment projects from Visual Studio 2010. I increase the minor version number each time.
My testers are annoyed because they have to uninstall the previous version before they can install the new one.
Is it possible to install a new version without uninstalling the previous? Can the new install do an upgrade of the previous?
We have a COM component in the project, which is also developed, and because of this we have found it difficult to publish the application on a web page.
We have also tried to change the product code for each new version (Visual Studio asks about this), but we have reason to believe that this mangles the install.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
哦,绝对可以。最顺利的事情是提供一个基于网络的更新程序。您可能认为这仅对“发布”软件有用,但它对于 Beta 测试轮次也很有用,以确保人们了解最新情况。
如果现在网络更新太多,只需创建一个安装程序,仅用新文件覆盖现有文件。确保您的应用程序将其位置写入注册表,以便更新程序知道在哪里可以找到它。
Oh, absolutely you can. The smoothest thing to do is provide a web-based updater. You'd think that'd only be useful for 'release' software, but its also useful for beta test rounds to ensure that people are up to date.
If the web-update is too much right now, just create an installer that only overwrites the existing files with the new ones. Make sure your app writes its location to the registry so that the updater knows where to find it.
我发现一些似乎有效的东西:
DetectNewerInstalledVersion = True
RemovePreviousVersion = True
更改版本,对有关新产品代码的问题回答“是”。
UpgradeCode 必须保持不变。
现在它将相对安静地安装旧版本。
I have found something that seems to work:
DetectNewerInstalledVersion = True
RemovePreviousVersion = True
Change version, answer yes to question about new Product Code.
UpgradeCode must remain unchanged.
It will now relatively silently install over the old version.
是的。我的工作得很好。
尝试将安装项目的 DetectNewerInstalledVersion 设置为 False 并将 RemovePreviousVersions 设置为 True
Yes. Mine works just fine.
Try setting the setup project's DetectNewerInstalledVersion to False and RemovePreviousVersions to True