Inno Setup:卸载 Dll 服务器

发布于 2024-08-06 12:18:11 字数 180 浏览 2 评论 0原文

您好,

通过我的应用程序,我为 Windows shell 安装了一个 Dll 服务器。 Inno 使用标志“regserver”正确注册和取消注册服务器。

然而,如果任何资源管理器窗口打开,则该 dll 正在使用中,并且 Inno 无法删除。如何自动删除dll并正确卸载应用程序?

问候, 科斯明

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灯角 2024-08-13 12:18:11

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

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文