我的应用程序(使用C#.net开发)现在打开我卸载,InstallShield提供消息指出应用程序已经打开并且是否真的要关闭应用程序。选择“忽略”继续卸载。某些文件和应用程序的exe不会关闭。如何在卸载时通过installshield关闭它们。或者我必须设置一些属性。我知道在卸载时添加自定义操作,我可以杀死进程,但不应该安装installshield吗?安装Shield 2009 Premier,卸载程序未关闭进程/ gui
0
A
回答
0
如果您的目标是重新启动打开的应用程序并且不兑现“忽略”选择,您可以考虑将“REBOOT”属性设置为“强制”。这将要求用户重新启动系统,从而达到您想要的结果。
0
如果你的项目类型的InstallScript MSI或支持INSTALLSCRIPT,我喜欢写代码,此例如:
export prototype _Server_UnInstalling();
function _Server_UnInstalling()
STRING Application, ServiceName;
begin
//application name
Application = "Demo";
MessageBox("In _Server_UnInstalling",INFORMATION);
//Check whether application is running or not.
if ProcessRunning(Application) then
MessageBox("Demo is running",INFORMATION);
//Close server Application
ProcessEnd(Application);
endif;
//if application is having service at the background then
ServiceName = "Demo Server";
//Uninstall the server windows services on uninstallation.
ServiceRemoveDuringUninstallation(ServiceName);
end;
上面的例子给出的骨架,你需要实现逻辑ProcessRunning, ProcessEnd和ServiceRemoveDuringUninstallation方法,你可以参考Installshield的帮助文档,他们给文档连同源代码
希望这有助于...
相关问题
- 1. 从Install Shield 2009 Premier安装SQL Server 2000
- 2. 安装Shield 2009 Premier:不想将条目放入控制面板
- 3. msi安装程序卸载
- 4. 安装程序关闭/完成/卸载时访问网站
- 5. 如何显示从程序文件卸载时的维护模式(安装Shield)
- 6. MSI安装程序安装和卸载问题
- 7. 无法卸载mysql安装程序
- 8. 安装或卸载程序集的DLL
- 9. .NET安装项目和卸载程序
- 10. 在卸载之前关闭.NET应用程序
- 11. 如何从Install Shield 2009 Premier部署C#服务(.exe)
- 12. Windows安装程序 - 卸载过程中未从GAC中删除程序集
- 13. 主窗体关闭后WPF应用程序未被卸载
- 14. 无法关闭GUI程序
- 15. WIX:安装程序在卸载时未删除属性
- 16. WIX Office安装程序未卸载插件
- 17. 运行windows卸载程序时关闭应用程序
- 18. JBoss GUI安装程序?
- 19. 如何卸载python3 DMG安装程序安装的文件?
- 20. 数字签名安装Shield安装程序
- 21. 如何判断安装程序是否有卸载程序?
- 22. 如何卸载Web平台安装程序(WPI)应用程序?
- 23. izpack安装程序定制卸载程序
- 24. Qt安装程序框架卸载程序
- 25. 使用自定义安装程序卸载多个程序
- 26. 卸载程序在安装程序退出后仍在运行
- 27. 使用Inno安装程序修补Install Shield应用程序
- 28. 在卸载时关闭应用程序 - wix
- 29. 在卸载WIX中创建的安装程序时未卸下Windows服务
- 30. WIX在未能关闭导致应用程序崩溃的应用程序后继续卸载
1.硒tup应用程序(运行setup.exe),2.运行程序,3.现在卸载程序(程序仍然打开),4. UnInstall警告应用程序已打开,5.继续卸载选择忽略,6卸载完成,7 。现在结果是exe文件和一些dll没有被删除,应用程序仍然是打开的! 我的意思是,在卸载过程中不应该自动关闭应用程序,并通过卸载删除相关的DLL和EXE文件? 如果应用程序未打开,卸载将删除安装过程中复制的每个文件/目录。 – Samir 2009-06-06 21:46:45