This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3210|Reply: 1

NSIS (ii) mutex guarantees that only one installer is running

[Copy link]
Posted on 1/28/2024 10:18:36 AM | | | |
Requirements: Usually the installer does not support concurrent running, we want the user to click the installation package multiple times, only one installer will be executed, through the mutex can ensure that only one installer runs, when the user clicks the installation package multiple times, it will activate the existing installation interface.

Review:

NSIS (1) Make a simple installer
https://www.itsvse.com/thread-10723-1-1.html

C# programs only allow one instance to run the correct code
https://www.itsvse.com/thread-3391-1-1.html
Before adding the mutex, click the installation package multiple times, and multiple installation interfaces will pop up, as shown below:



After adding the mutex, click the installation package multiple times to activate the open installation interface, as shown in the figure below:



Sample code:

Full script code:


Reference:The hyperlink login is visible.





Previous:NSIS (1) Make a simple installer
Next:NSIS (III) checks whether the process exists and ends
 Landlord| Posted on 1/28/2024 10:34:29 AM |
Install/uninstall program mutual: Only one installer/uninstall program can be opened at a time:

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com