自动安装setup.exe

发布于 2024-11-09 13:24:58 字数 133 浏览 4 评论 0原文

我正在使用 Visual Studio 2008,并且我已经使用它创建了安装项目。部署应用程序后,每当我更改任何文件甚至重命名任何文件时,setup.exe 都会自动开始重新安装安装程序。在这种情况下应该自定义错误。

有人对此有想法吗?

I am using visual studio 2008 and I have created setup project using the same. After deployment of the application whenever I change any of the file or even rename any file setup.exe automatically starts to reinstall the setup. In this case it should customized error.

Do anybody has idea on this??

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

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

发布评论

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

评论(1

×眷恋的温暖 2024-11-16 13:24:58

这是正常行为。如果 Windows Installer 确定某些已安装资源丢失,则会自动执行修复。

此修复是通过以下方式触发的:

  • 通过广告快捷方式启动应用程序
  • 启动与您的应用程序关联的文件

为了避免这种情况,您应该:

  • 确保您的应用程序不会删除、移动或重命名已安装的文件;如果您需要处理文件,请使用“应用程序数据”文件夹

  • 确保删除的文件不是其组件中的关键成员;这是通过组件表来控制

的您的实际问题,您无法显示自定义错误。你只能尽量避免这种行为。

This is the normal behavior. Windows Installer automatically performs a repair if it determines that some of the installed resources are missing.

This repair is triggered by:

  • launching the application through an advertised shortcut
  • launching a file associated with your application

To avoid it you should:

  • make sure that your application doesn't delete, move or rename installed files; if you need to work with files use the Application Data folder

or

  • make sure that the deleted file is not the key member in its component; this is controlled through the Component table

To answer your actual question, you cannot show a customized error. You can only try to avoid this behavior.

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