Skip to content

Instantly share code, notes, and snippets.

@jcalabres
Last active April 24, 2021 11:56
Show Gist options
  • Save jcalabres/468f9fca59edcbb7a95fdd559a98bdea to your computer and use it in GitHub Desktop.
Save jcalabres/468f9fca59edcbb7a95fdd559a98bdea to your computer and use it in GitHub Desktop.
Inno Setup Windows Installer
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "{APPNAME}"
#define MyAppVersion "{VERSION}"
#define MyAppPublisher "{PUBLISHER}"
#define MyAppURL "{URL}"
[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={{{GENERATEID}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{DIR}
DefaultGroupName={GROUP}
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputBaseFilename={OUTPUT EXE}
SetupIconFile={ICO PATH}
Compression=lzma
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "{PATHFILE}"; DestDir: "{app}"; Flags: ignoreversion
Source: "{PATHFILE}"; DestDir: "{tmp}"; Flags: deleteafterinstall
[Icons]
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\Launcher.bat"; IconFilename: "{app}\{ICO}"
[Run]
Filename: "{tmp}\{EXE}"; Check: Not IsWin64(); Flags: skipifsilent
Filename: "{tmp}\{EXE}"; StatusMsg: "Installing..."; Check: IsWin64(); Flags: skipifsilent
Filename: msiexec.exe; Parameters: "/i ""{tmp}\python-2.7.16.msi"""; StatusMsg: "Installing Python v2.7.16"; Check: Not IsWin64(); Flags: skipifsilent
Filename: "pip.exe"; Parameters: "install statistics numpy"; StatusMsg: "Installing Python dependencies"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment