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

View: 3538|Reply: 1

NSIS (III) checks whether the process exists and ends

[Copy link]
Posted on 1/28/2024 3:03:54 PM | | | |
Requirements: When installing or uninstalling, you need to check whether the old version of the program process is running, if it is running, the installation or uninstallation may fail, you need to check whether the program is running when installing and uninstalling, and you can continue after ending the process.

Review:

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


NSIS (ii) mutex guarantees that only one installer is running
https://www.itsvse.com/thread-10724-1-1.html
First, you need to install the NsProcess plugin and download the version of nsProcess 1.6 at the address:The hyperlink login is visible.

Tourists, if you want to see the hidden content of this post, pleaseReply


Documentation:The hyperlink login is visible.

Unzip the downloaded nsProcess.zip and put the dll files under the Plugin directory into the following folder:

nsProcess.dll copied toC:\Program Files (x86)\NSIS\Plugins\x86-ansi
nsProcessW.dll copied toC:\Program Files (x86)\NSIS\Plugins\x86-unicodemoreoverRename nsProcess.dll

Copy the nsProcess.nsh file under the Include folder to:C:\Program Files (x86)\NSIS\IncludeDirectory.

Modify the test.nsi script to add the following code:

The renderings are as follows:



(End)





Previous:NSIS (ii) mutex guarantees that only one installer is running
Next:Nginx disables TLSv1.0 and TLSv1.1 invalid solutions
Posted on 1/28/2024 5:20:09 PM |
Learn it
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