Tips for using Inno Setup 5

Source: Internet
Author: User

[Setup]
Appname = Win-MASM
Appvername = Win-MASM V1.1
Apppublisher = Mogo network name Studio
Apppublisherurl = http://albm.go1.icpcn.com
APP orturl url = http://albm.go1.icpcn.com
Appupdatesurl = http://albm.go1.icpcn.com
Defaultdirname = D:/win-MASM
Defaultgroupname = Win-MASM
Uninstalldisplayicon = {app}/Win-Masm.exe
Licensefile = G:/win-MASM/license.txt
Outputdir = C:/Documents and Settings/do not get the network name/desktop
Outputbasefilename = setup
Compression = lzma
Solidcompression = Yes

[Ages]
Name: "Chi"; messagesfile: "compiler: Default. isl"
Name: "eng"; messagesfile: "compiler: Ages/English. isl"

[Tasks]
Name: "desktopicon"; Description: "{CM: create‑topicon}"; groupdescription: "{CM: additionalicons}"; flags: unchecked

[Files]
Source: "F:/win-MASM/Win-Masm.exe"; destdir: "{app}"; flags: ignoreversion
Source: "F:/win-MASM/*"; destdir: "{app}"; flags: ignoreversion recursesubdirs createallsubdirs
Source: "F:/win-MASM/vsmenu. ocx"; destdir: "{sys}"; copymode: alwaysskipifsameorolder; flags: restartreplace sharedfile regserver
Source: "F:/win-MASM/vsmenu/comdlg32.ocx"; destdir: "{sys}"; copymode: alwaysskipifsameorolder; flags: restartreplace sharedfile regserver
Source: "F:/win-MASM/vsmenu/comctl32.ocx"; destdir: "{sys}"; copymode: alwaysskipifsameorolder; flags: restartreplace sharedfile regserver
Source: "F:/win-MASM/vsmenu/mscomctl. ocx"; destdir: "{sys}"; copymode: alwaysskipifsameorolder; flags: restartreplace sharedfile regserver
Note: Do not use "Flags: ignoreversion" in any shared system files"

[Icons]
Name: "{group}/win-MASM"; filename: "{app}/Win-Masm.exe"
Name: "{group}/{CM: uninstallprogram, win-MASM}"; filename: "{uninstallexe }"
Name: "{userdesktop}/win-MASM"; filename: "{app}/Win-Masm.exe"; tasks: Too topicon

[Run]
Filename: "{app}/Win-Masm.exe"; Description: "{CM: launchprogram, win-MASM}"; flags: Nowait postinstall skipifsilent

Script description
1. Name of the master program win-MASM
2. [setup] field uninstalldisplayicon = {app}/Win-Masm.exe and [icons] field name: {group};/{CM: uninstallprogram, win-MASM} "; filename: "{uninstallexe}" two-part script to send a shortcut for uninstalling the main program to the Start Menu Program Group
3. Use the following four statements in the [files] field to register the controls used by the main program.
4. Note the path and name of each resource file.

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.