Inno Setup Getting Started Tutorial Inno Setup Pack Tool Beginner Tutorial (graphic)

Source: Internet
Author: User
Tags ini pack
Programmers know that Inno Setup is an easy-to-use and powerful installation wizard to make software, about Inno Setup tutorial, can be said to be super simple, but super abstruse, if you are the beginning user, only need to see the tutorial below, but Inno Setup is powerful enough for you to imagine, so it takes a long time to learn and study, not to say nonsense, let's introduce the Inno Setup starter Tutorial.
Software Name: free installation and production software Inno Setup V5.5.4 optimized installation versionFile Size: 5.6MB Updated: 2013-10-29

In the previous period of time concerned about the use of VC6.0 's own InstallShield packaging, feeling cumbersome, now find a relatively simple and practical packaging gadget Inno Setup, using the following methods.

(1) will write the program to generate release version, open Inno Setup 5 small software, the following screen popup:

Click on the menu bar "file"--"new", the following screen appears

Click Next and the following screen appears

Here to fill in the name of the program, such as "My App", use version "1.00", the application of the publisher "My Company", and the application of the website "XXXXX", after the two can not be written. Click Next to show the following screen

Come here basically do not change, click Next, appear the following interface

Here first to select the application of this file, that is, the XXXX.exe file, click on the right side of the browse to find your executable file. Below the "Allow users to start the application after installation," Check the previous tick, you can disable the installation after the operation of the program, do not select this option. The following "Other application files" is more important, usually contains some DLL files used by the program, configuration files (. ini files), Special Axtivex (. ocx) control and Readme files, etc., click Next, appear as follows interface

What features are needed here, tick the front, click Next to the following screen

Here you can choose the license file, pre-installation files (such as readme files, etc.), display information after installation, click Next, the following interface appears,

Here you can choose the language, of course, "Simplified Chinese", click Next, the following interface appears,

Here choose the output folder of the compiled file, the output file name, etc., you can also load the custom installer icon, complete, click Next, the following interface appears

Click Next,

Click Done to enter Inno Setup's compiler, as shown below,

Click Yes, the following screen appears

Click Yes, the following screen appears

Select the output folder for the compiled text (. iss file), and then the code becomes visible, as follows

Copy the code code as follows:
; The script is generated by the Inno Setup Script Wizard.
; For more information about creating Inno Setup script files, consult the Help documentation. </p><p> #define MYAPPNAME "3G NVS Viewer"
#define Myappversion "1.00"
#define MYAPPEXENAME "LAUMp4Test.exe" </p><p>[setup]
; Note: The value of AppID identifies the application individually.
; Do not use the same AppID value for the other setup programs.
; (Generate a new GUID, click Tools | Build the GUID in the IDE.) )
appid={{140af0c5-52a5-4ecd-af8b-0037036b0549}
appname={#MyAppName}
appversion={#MyAppVersion}
; appvername={#MyAppName} {#MyAppVersion}
defaultdirname={pf}\{#MyAppName}
defaultgroupname={#MyAppName}
Infoafterfile=e:\myproject\3g\modify\08060900\client\bin\readme.txt
Outputdir=e:\myproject\3g\setup\output
outputbasefilename=3g NVS Viewer setup_v1.00
Compression=lzma
Solidcompression=yes</p><p>[languages]
Name: "Chinesesimp"; Messagesfile: "COMPILER:DEFAULT.ISL" </p><p>[tasks]
Name: "Desktopicon"; Description: "{Cm:createdesktopicon}"; Groupdescription: "{cm:additionalicons}"; flags:unchecked; Onlybelowversion:0,6.1</p><p>[files]
Source: "E:\MyProject\3G\modify\08060900\Client\bin\LAUMp4Test.exe"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\config.ini"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\en_resource.dll"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\hi_h264dec_w.dll"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\lang.ini"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\LUSerParamX.ocx"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\LUSerParamXEn.dll"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\NetClient.dll"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\NetHostSDK.dll"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\Readme.txt"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\RegOCX.bat"; DestDir: "{app}"; Flags:ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\LUSerParamX.ocx";D Estdir: {app}; flags:regserver</p><p>; the last sentence automatically registers the Luserparamx.ocx control when the program is installed
; Note: Do not use "flags:ignoreversion" on any shared system files </p><p>[icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Workingdir: "{app}";
Name: "{group}\{cm:uninstallprogram,{#MyAppName}}"; Filename: "{uninstallexe}"; Workingdir: "{app}";
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks:desktopicon; Workingdir: "{app}";</p><p>; red part of code implementation read. ini file under installation directory </p><p>[run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:launchprogram,{#StringChange (myappname," & "," && ")}}"; Flags:nowait Postinstall skipifsilent

This is a simple package to complete.

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.