-
Notifications
You must be signed in to change notification settings - Fork 4
/
MorseWriterInstaller.iss
52 lines (41 loc) · 2.34 KB
/
MorseWriterInstaller.iss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
; Script originally generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "MorseWriter"
#define MyAppExeName "MorseWriter.exe"
#define VersionNumber GetEnv('APP_VERSION')
#define OutputFilename "MorseWriter-Installer-v" + VersionNumber
[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={{2DB71CE2-A8F1-4EB9-BA6D-EE1EAD16659C}
AppName={#MyAppName}
AppVersion=3.3
;AppVerName={#MyAppName} 1.0.0
DefaultDirName={autopf}\Ace Centre\{#MyAppName}
DisableProgramGroupPage=yes
OutputBaseFilename={#OutputFilename}
SetupIconFile=res\MorseWriterIcon.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
; PrivilegesRequired=admin
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
Name: "autostarticon"; Description: "{cm:AutoStartProgram,{#MyAppName}}"; GroupDescription: "{cm:AdditionalIcons}";
[Dirs]
Name: "{commondocs}\Ace Centre\{#MyAppName}\user_data"
[Files]
Source: "dist\morsewriter\_internal\user_data\*"; DestDir: "{commondocs}\Ace Centre\{#MyAppName}\user_data"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\morsewriter\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "dist\morsewriter\_internal\*"; 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
Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Parameters: "/auto"; Tasks: autostarticon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Verb: runas; Flags: postinstall skipifsilent shellexec runascurrentuser waituntilterminated;
[Registry]
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "{#MyAppName}"; ValueData: "{app}\{#MyAppExeName}"; Tasks: autostarticon