自动安装setup.exe
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是正常行为。如果 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:
To avoid it you should:
or
To answer your actual question, you cannot show a customized error. You can only try to avoid this behavior.