Installshield MSI 在卸载时不会终止正在运行的进程
我有 Installshield 2010 Basic MSI。它安装一个在系统托盘中运行的 Windows exe。卸载时,该 exe 会被删除,但如果该进程在系统托盘中运行,则它会继续运行,不会被杀死。安装程序不会发出任何警告或错误来通知用户该进程正在使用。
如何让 installshield 在删除其 exe 之前杀死该进程?
I have an Installshield 2010 Basic MSI. It installs a windows exe that runs in the system tray. On uninstall, the exe is deleted but if the process is running in the system tray it continues is not killed. There are no warnings or errors by the installer that informs the user that the process is in use.
How can I make installshield kill the process if before removing its exe?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须编写一个自定义操作来向 EXE 发送一条消息以正常关闭,或者您必须编写一个自定义操作来终止该进程。 (不太理想,具体取决于程序正在执行的操作,并且在将鼠标悬停在托盘上之前,您会在托盘中看到烦人的幽灵图标。)
如何执行此操作取决于您采取的路线以及要使用哪种语言来编写自定义程序行动。 C++ / C# dll、InstallScript CA、VBScript CA 甚至 EXE CA。
You have to write a custom action to either send the EXE a message to shutdown gracefully or you have to write a custom action to terminate the process. (Less ideal depending on what the program is doing and you'll get the annoying ghost icon in the tray until you mouse over it. )
How you do this depends on which route you take and what language you want to use to write the custom action. C++ / C# dll, InstallScript CA, VBScript CA or even EXE CA.