If the paper is original articles, reprint please indicate the original source This article blog: blog.csdn.net/qq21497936/…
Development technology set (including Qt practical technology, raspberry PI, 3D, OpenCV, OpenGL, FFMPEG, OSG, SCM, soft and hard combination, etc.) continue to update… (Click on the portal)
Others (programming related)
Introduction to NSIS, using the NSIS Default Wizard Script to create the installation package.
preface
Nsis can use Duilib can also use qt interface, the author mainly QT, this article combs the Nsis + QT production installation package basic process.
Download the Nsis- UI-plugin Plugin
Github address: github.com/sway913/NSI… QQ group download address: 1047134658 (click “group file” to search for “NSIS”, and update with the blog post)
Prepare in advance
Qt+VS build environment, recommend VS2015x86 or VS2017x86, must be a 32-bit version, the default is 32 bits, do not support 64 bits, subsequent compilation of nSIS plug-in tried to 64-bit version, stuck for a long time, solved quite a lot of problems, but did not succeed, do not stop. Compilation environment: MSVC2017x86 + VS2017 for Qt5.13.1. The above environment for the veteran is also a bit of time, please baidu, here is not the focus of this article.
Compile Nsis – Ui – Plugun
Step 1: Open the project
Step 2: Compile “” Qt version XXXXXX”
Set it up as shown below:
Step 3: Compile again
So that’s the compilation process. It’s done.
Step 4: Verify the compiled plug-in
Use the Nsis plug-in
Step 1: Add software environment variables
Two environment variables, one is NSIS_DIR and one is QTDIR. Either the Nsis or the green one can be installed, as shown below (I repackaged the software with a whole document flow) :
Step 2: Copy the release version of the compiled plug-in
Copy the compiled relase plugin to Plugins/ x86-Unicode and make a backup copy of the original one. (PS: use the plugin to provide the qt version of the script, the name must not change, there must be a corresponding script).
Step 3: Start the software
Step 4: Open the script
Look at the scripts, there are some things to learn, such as the name of the application can interact with Qt information to control the NSIS script through Qt to achieve various installation purposes.
Step 5: Start compiling the script
Then, load the script
Step 6: Run the provided Demo installation package
Step 7: Check whether the installation is successful
Deploy the published application
After testing, the script will only install and uninstall, modify the application name and generate shortcuts, specific file copy and other functions have not been implemented, so readers need to use their own scripts to achieve.
Introduction to NSIS, using the NSIS Default Wizard Script to create the installation package.
If the paper is original articles, reprint please indicate the original source This article blog: blog.csdn.net/qq21497936/…