简体   繁体   English

如果安装程序打开,如何使Innosetup卸载程序不运行?

[英]How to make Innosetup uninstaller not run if installer is on?

如果安装程序是通过Innosetup构建的,并且当前正在安装(安装程序和卸载程序是从同一源文件生成的),如何使通过Innosetup卸载程序创建的程序无法运行?

If AppMutex doesn't protect against this already, you can add code to both the install and uninstall to use CheckForMutexes() and CreateMutex() . 如果AppMutex尚未对此提供保护,则可以将代码添加到安装和卸载中,以使用CheckForMutexes()CreateMutex() If CheckForMutexes() returns true, you can then exit. 如果CheckForMutexes()返回true,则可以退出。 this will essentially replace the AppMutex support and can check for your application too. 这实际上将取代AppMutex支持,并且也可以检查您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM