简体   繁体   中英

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() . If CheckForMutexes() returns true, you can then exit. this will essentially replace the AppMutex support and can check for your application too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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