Article From:https://www.cnblogs.com/jzlzn/p/9969087.html

(Qt Installer Framework)Simple Packaging Course

    • Qt Installer FrameworkSimple Packaging Course
      • Step 1 Download Qt Installer Framework
      • Step 2 Packer Installation and Environment Variables Configuration
      • The third step is to get the package ready.
      • Step 4: Take DQtQtIFW203examples StartMenu as an example to modify the program you want to pack.

 

Step 1: Download Qt Installer Framework

  1. Website: http://download.qt.io/official_releases/qt-installer-framework/

  2. Choose 2.0.3 folder, jump page and QtInstaller Framework-win-x86 version. You can also choose win, Mac and Linux version packers according to the target operating system.

Step 2 Packer Installation and Environment Variables Configuration

  1. Install QtInstaller Framework-win-x86.exe to the specified directory, and install this tutorial to D:Qt

  2. Configure environment variable path right-click computer – & gt; attribute – & gt; Advanced tab – & gt; environment variable – & gt; system variable, add the value of variable Path: D: Qt QtIFW2.0.3 bin

  3. Add the Qt installer framework Manual help document to QT creator. Click on the QT creator menu tool – & gt; option – & gt; left – selected help – & gt; right – selected document tab, and click AddButton, select the installed document path. Select the ifw. qch file, then click apply, and finally click OK to confirm.

After adding, you can find Qt Installer Framework Manual in the index directory

the fourth step is to use the example of D: Qt\ QtIFW2.0.3 examples StartMenu as a reference.Change the program you want to pack

  1. Copy the D: Qt QtIFW2.0.3 examples StartMenu folder to the desktop and open the C: Users pc\ Desktop tmenstaru config config. XML file with the editor.Amend as follows (arrow indication part)

  2. Open C: Users pc Desktop startmenu packages org. qtproject. ifw. example meta installscript. QS with an editor.

  3. Open C: Users pc Desktop startmenu packages org. qtproject. ifw. example meta package. XML with an editor

  1. Copy the packaged program file to C: Users pc Desktop startmenu packages org. qtproject. ifw. example data

  2. Packer, open the QT command window, go to the C: Users pc Desktop StartMenu directory, and then click the following command to generate an installation package named DuPaintInstaller. exe. The format of the command is in C: Users\Description in pc Desktop startmenu README file

Successful packaging is shown below. DuPaint Installer is the installation package.

Link of this Article: QT installation Bao Shengcheng