Inno Setup: Uninstall Dll Server

孤者浪人 提交于 2019-12-24 11:50:13

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/1470376/inno-setup-uninstall-dll-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!