问候,
使用我的应用程序,我为 Windows shell 安装了一个 Dll 服务器。Inno 使用标志“regserver”正确注册和注销服务器。
但是,如果任何资源管理器窗口打开,则该 dll 正在使用中,并且无法被 Inno 删除。如何自动删除 dll 并正确卸载应用程序?
问候, 科斯敏
问候,
使用我的应用程序,我为 Windows shell 安装了一个 Dll 服务器。Inno 使用标志“regserver”正确注册和注销服务器。
但是,如果任何资源管理器窗口打开,则该 dll 正在使用中,并且无法被 Inno 删除。如何自动删除 dll 并正确卸载应用程序?
问候, 科斯敏
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.