QT4 program is packaged and published under the Windows platform

Source: Internet
Author: User

First, packaged into a green version

Compile the source code to release version, run the *.exe file, prompt for missing *.dll, in the QT installation directory to find the appropriate DLL file (typically in the bin directory), copy the DLL files to the exe file directory.

Second, packaged into the installation version

1, first installs the NSIs software, NSIs the menu--compiles the tool--HW Vnisedit

2. Select File--New script: Wizard--Next

3. fill in the name of *.exe, the software version, Publisher, website according to the actual need to fill out (if not, the blank can be left); The program flag is displayed at the bottom of the installation screen (if you don't need it, you can choose not to display the text). Select Next when Setup is complete

4, only need to modify the custom installer icon, the remaining settings remain the default values (Simpchinese, modern Interface, LZMA). Select Next

5, can be set according to the needs of their own, there is no setting , directly select the next step

6, in the only need to modify the custom authorization file, you can create a new txt or RFT file and write some software licensing information or other information (the contents of the file will be displayed during installation and let the user choose to accept the agreement), the other left the default settings , choose Next

7, the group name is changed to "main program required", the description information can be written not write, while the option "C:\path\to\file\AppMainExe.exe", C:\path\to\file\Example.file are deleted, Allows the user to select which components to install. finally click the Tree diagram button above

8. Select the directory where the *.exe program is to be published (it is best to copy all the files used when the program is published to that directory, i.e. the green version of the directory), and select "Include subdirectories" and "add each file separately," leaving the rest of the default settings . Then select OK, after loading all the files in the directory, click Next

9. you can leave all default settings (default build Start menu and desktop shortcut)and choose Next step directly.

10, can retain the default settings (of course, you can also add some custom readme, such as Chinese instructions, etc.), select Next

11, the only need to modify the custom Uninstaller icon, the rest of the remaining default settings (the bottom of the red "note" indicates that only easy way), select the next

12, Select "Save Script", "Convert file path to relative path", "Compile script", finally select Finish, NSIS automatically compile, generate the packaged file! To compile the output information for the script:

QT4 program is packaged and published under the Windows platform

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.