Inno Setup:卸载Dll服务器 [英] Inno Setup: Uninstall Dll Server

查看:90
本文介绍了Inno Setup:卸载Dll服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,



使用我的应用程序,我为Windows Shell安装了一个Dll服务器。



不过,如果打开了任何资源管理器窗口,Inno都无法使用dll来注册和注销服务器。



。如何自动删除dll并正确卸载应用程序?



致谢,
Cosmin

解决方案

除了 regserver 标志外,您还可以使用 uninsrestartdelete 标志外壳扩展。引用Inno Setup帮助( [文件] 部分):


何时此标志已使用,并且在卸载时文件正在使用中,当系统重新启动时,卸载程序会将要删除的文件排队,并在卸载过程结束时询问用户是否要重新启动。当卸载无法以编程方式停止的shell扩展之类的东西时,此标志很有用。请注意,在Windows NT平台上,必须具有管理特权才能使该标志生效。



Greetings,

With my app I install a Dll server for the Windows shell. The server is registered and unregistered properly by Inno by using the flag "regserver".

However if any explorer windows are open the dll is in use and cannot be deteled by Inno. How can I delete the dll automatically and uninstall the app properly?

Regards, Cosmin

解决方案

In addition to the regserver flag you could use the uninsrestartdelete flag for your shell extension. To quote from the Inno Setup help ([Files] section):

When this flag is used and the file is in use at uninstall time, the uninstaller will queue the file to be deleted when the system is restarted, and at the end of the uninstallation process ask the user if he/she wants to restart. This flag can be useful when uninstalling things like shell extensions which cannot be programmatically stopped. Note that administrative privileges are required on Windows NT platforms for this flag to have an effect.

这篇关于Inno Setup:卸载Dll服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆