安装和部署项目的默认卸载功能在重建 setup.exe 时无法执行?

发布于 2024-11-19 00:16:51 字数 308 浏览 4 评论 0 原文

我创建了一个安装项目来安装我的应用程序(*.bat 文件)并成功安装到最终用户的电脑上。并运行相同的 setup.exe 来卸载已安装的应用程序。

现在,我通过修改 *.bat 文件、添加外部文件等来增强应用程序。

然后,需要更新安装项目以添加新添加的外部文件,一切顺利,重建完成。

问题是,当我在最终用户的电脑上执行新重建的 setup.exe 时,卸载功能消失了。它只是说,安装了旧版本需要先通过控制面板卸载。

为什么安装项目的卸载功能在创建新的 setup.exe 后不再起作用?

任何关于正确方向的指导都值得赞赏。

I created a setup project to install my application (*.bat file) and successfully installed to end-users' pc. And run the same setup.exe to uninstall the installed application.

Now, I enhanced the application by modifying *.bat file, adding external files, etc..

Then, need to update the setup project to add the newly added external files and things go well and rebuild was done.

The problem is, when I execute the newly rebuild setup.exe on the end-users' pc, uninstall functionality was gone. It only says, old version was installed need to uninstall first via control panel.

Why the uninstall functionality of Setup Project is not longer functioning upon creation of new setup.exe?

Any guidance on the right direction is appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

相守太难 2024-11-26 00:16:51

要升级旧版本,您可以尝试以下操作:

  • 选择您的安装项目
  • 在“解决方案资源管理器”的“属性”窗格集中 RemovePreviousVersions 属性为True
  • 生成新的产品代码
  • 增加版本

这些是主要升级。

To upgrade older versions you can try this:

  • select your setup project in Solution Explorer
  • in its Properties pane set RemovePreviousVersions property to True
  • generate a new Product Code
  • increase the Version

These are the main requirements of a major upgrade.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文