Inno Setup General Script and brief description (generally enough)

Source: Internet
Author: User

The following script mainly completes the creation of the Start menu and desktop shortcut, directory installation.

#define MYAPPNAME "My Software Name"
#define Myappversion "1.0"
#define Myapppublisher "software Author"
#define MYAPPURL "Author url"
#define MYAPPEXENAME "MYEXE.exe"
; Main program
#define MYAPPUNINSTALLEXENAME "MYEXE.exe"
; Uninstall a program
#define INSTALLDIR "Mydir"
The installation directory, and finally the English

[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={{fd6089fc-0774-4dbd-a1a6-8d23f728e9ed}
appname={#MyAppName}
Constant corresponds to #define MYAPPNAME "My Software Name"
appversion={#MyAppVersion}
; appvername={#MyAppName} {#MyAppVersion}
apppublisher={#MyAppPublisher}
apppublisherurl={#MyAppURL}
appsupporturl={#MyAppURL}
appupdatesurl={#MyAppURL}
defaultdirname={pf}\{#InStallDir}
; default installation directory
defaultgroupname={#MyAppName}
; Default program Group directory
Allownoicons=yes
Outputdir=c:\users\myexe\documents\rad Studio\projects\published\isok
; Output Directory
Outputbasefilename=setup
Compression=lzma
Solidcompression=yes

[Languages]
Name: "Chinesesimp"; Messagesfile: "COMPILER:DEFAULT.ISL"

[Tasks]
Name: "Desktopicon"; Description: "{Cm:createdesktopicon}"; Groupdescription: "{cm:additionalicons}"; flags:unchecked; onlybelowversion:0,6.1
Name: "Quicklaunchicon"; Description: "{Cm:createquicklaunchicon}"; Groupdescription: "{cm:additionalicons}"; Flags:unchecked
Name: "Desktopicon"; Description: "Create desktop Shortcut"; Groupdescription: "Additional Tasks";
; Name: "Startmenuicon"; Description: "Create Start menu icon"; Groupdescription: "Additional Tasks";
; Name: "Quicklaunchicon"; Description: "Create Quick Launch icon"; Groupdescription: "Additional Tasks";

[Files]
Source: "C:\Users\Myexe\Documents\RAD studio\projects\published\pro\myexe.exe"; DestDir: "{app}"; Flags:ignoreversion
; Main program
Source: "C:\Users\Myexe\Documents\RAD studio\projects\published\pro\*"; DestDir: "{app}"; Flags:ignoreversion Recursesubdirs Createallsubdirs
; Main program Folder
; Note: Do not use "flags:ignoreversion" on any shared system files

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
; Main program icon
Name: "{group}\{cm:uninstallprogram,{#MyAppName}}"; Filename: "{Uninstallexe}"
; Uninstall program icon
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks:desktopicon
; Desktop Main program icon
Name: "{commondesktop}\{cm:uninstallprogram,{#MyAppName}}"; Filename: "{Uninstallexe}"
; Desktop Uninstaller icon
Name: "{userappdata}\microsoft\internet explorer\quick launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks:quicklaunchicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:launchprogram,{#StringChange (myappname, ' & ', ' && ')}}"; Flags:nowait Postinstall skipifsilent
; Start the program after installation is complete

Inno Setup General Script and brief description (generally enough)

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.