Created
January 19, 2024 01:35
-
-
Save m-biernat/45dfe8494916e2d2f4fae408caaea3b1 to your computer and use it in GitHub Desktop.
A simple installer template for Inno Setup Compiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Script generated by the Inno Setup Script Wizard. | |
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | |
#define MyAppName "App" | |
#define MyAppAuthor "Author" | |
#define MyAppExeName "App.exe" | |
#define MyAppVersion "1.0" | |
#define MyAppOutputName "app-win64-installer" | |
[Setup] | |
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. | |
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) | |
AppId={GUID_HERE} | |
AppName={#MyAppName} | |
AppVersion={#MyAppVersion} | |
AppVerName={#MyAppName} | |
AppPublisher={#MyAppAuthor} | |
DefaultDirName={autopf}\{#MyAppName} | |
DisableProgramGroupPage=yes | |
; Uncomment the following line to run in non administrative install mode (install for current user only.) | |
; PrivilegesRequired=lowest | |
PrivilegesRequiredOverridesAllowed=dialog | |
OutputDir=Builds | |
OutputBaseFilename={#MyAppOutputName} | |
Compression=lzma | |
SolidCompression=yes | |
WizardStyle=modern | |
UninstallDisplayIcon={app}\{#MyAppExeName} | |
ArchitecturesInstallIn64BitMode=x64 | |
[Languages] | |
Name: "english"; MessagesFile: "compiler:Default.isl" | |
[Tasks] | |
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; | |
[Files] | |
Source: "Builds\{#MyAppName}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion | |
Source: "Builds\{#MyAppName}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | |
; NOTE: Don't use "Flags: ignoreversion" on any shared system files | |
[Icons] | |
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" | |
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon | |
[Run] | |
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment