-
Notifications
You must be signed in to change notification settings - Fork 0
/
Meddy.iss
93 lines (78 loc) · 4.83 KB
/
Meddy.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
; This script is best executed by Meddy's "Make" utility.
#define MyAppVersion "5.0.3+595"
#define MyAppName "Meddy"
#define MyAppExeName "Meddy.exe"
#define MyAppPublisher "Kai Jaeger"
#define MyAppURL "https://github.com/aplteam/Meddy"
#define MyAppIcoName "Meddy2.ico"
#define MyBlank " "
#define TargetDir "Dist\"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
AppId={{8CE7BDB0-E90D-4B09-8E2A-221C11643A3A}
AppName="{#MyAppName}"
AppVersion={#MyAppVersion}
AppVerName={#MyAppName}{#MyBlank}{#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={commonpf64}\{#MyAppPublisher}\{#MyAppName}
DefaultGroupName={#MyAppPublisher}\{#MyAppName}
AllowNoIcons=yes
OutputDir=C:/Users/kai/AppData/Local/Temp/InnoTempDir
OutputBaseFilename="SetUp_{#MyAppName}_{#MyAppVersion}"
Compression=lzma
SolidCompression=yes
SetupIconFile={#MyAppIcoName}
;UninstallDisplayIcon={app}\{#MyAppIcoName}
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"; LicenseFile: "License";
[Registry]
; Globals
Root: HKLM64; Subkey: "Software\{#MyAppPublisher}"; Flags: uninsdeletekeyifempty
Root: HKLM64; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}"; Flags: uninsdeletekey
Root: HKCR; Subkey: ".md"; ValueType: string; ValueName: ""; ValueData: "markdownfile"; Flags: uninsdeletevalue; Tasks: DefaultApp
Root: HKCR; Subkey: "markdownfile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""; Flags: uninsdeletevalue; Tasks: DefaultApp
;User-specific
Root: HKCU64; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}\MainForm"; ValueType: string; ValueName: "Splitter1Posn"; ValueData: ""; Flags: uninsdeletekey
Root: HKCU64; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}\MainForm"; ValueType: string; ValueName: "Splitter2Posn"; ValueData: ""; Flags: uninsdeletekey
Root: HKCU64; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}"; ValueType: dword; ValueName: "FontSize"; ValueData: 17; Flags: uninsdeletekey
Root: HKCU64; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}"; ValueType: string; ValueName: "RecentFiles"; ValueData: ""; Flags: uninsdeletekey
Root: HKCU64; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}\Preferences"; ValueType: dword; ValueName: "FirstFlag"; ValueData: 1; Flags: uninsdeletekey
Root: HKCU64; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}\Preferences"; ValueType: dword; ValueName: "SaveHTML"; ValueData: 1; Flags: uninsdeletekey
[Dirs]
Name: "{commonappdata}\{#MyAppName}"; Permissions: users-modify
[Files]
; The Conga DLLs are required for "Check for updates" (and potentially a Ride)
Source: "conga35ssl64.dll"; DestDir: "{app}";
Source: "conga35_64.dll"; DestDir: "{app}";
;Source: "dyalognet.dll"; DestDir: "{app}"
Source: "{#TargetDir}\{#MyAppExeName}"; DestDir: "{app}"
;Source: "HTML\ReadMe.html"; DestDir: "{app}";
;Source: "HTML\ReleaseNotes.html"; DestDir: "{app}";
;Source: "HTML\Presentations.html"; DestDir: "{app}";
;Source: "CSS\*"; DestDir: "{app}\CSS"; REMOVED - ⍝TODO⍝
Source: "HTML\*"; DestDir: "{app}\HTML";
Source: "packages\*"; DestDir: "{app}\packages"; Flags: createallsubdirs recursesubdirs
Source: "Meddy2.ico"; DestDir: "{app}";
Source: "app.ini.remove_me"; DestDir: "{app}"; DestName:"app.ini"; Flags: onlyifdoesntexist;
Source: "specialchars.ini.remove_me"; DestDir: "{app}"; DestName:"specialchars.ini"; Flags: onlyifdoesntexist;
Source: {#MyAppIcoName}; DestDir: "{app}";
Source: "C:\Windows\Fonts\apl385.ttf"; DestDir: "{commonfonts}"; FontInstall: "APL385 Unicode"; Flags: onlyifdoesntexist uninsneveruninstall
Source: "LICENSE"; DestDir: "{app}"
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\Start Meddy"; Filename: "{app}\{#MyAppExeName}"; WorkingDir: "{app}\"; IconFilename: "{app}\{#MyAppIcoName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\{#MyAppIcoName}"; Tasks: desktopicon
[Run]
Filename: "{app}\HTML\ReadMe.html"; Description: "View the README file"; Flags: postinstall shellexec skipifsilent
Filename: "{app}\HTML\ReleaseNotes.html"; Description: "View the Release Notes"; Flags: postinstall shellexec skipifsilent
Filename: "{app}\{#MyAppExeName}"; Description: "Launch Meddy"; Flags: postinstall skipifsilent nowait
; Strangely sometimes (rarely) this seems to be required in order to be able to Ride into Meddy:
; Filename: "netsh"; Description:"Give Meddy network access"; Parameters: "advfirewall firewall add rule dir=in program=""{{DefaultDirName}}\Meddy.exe"" action=allow"; Flags: postinstall nowait runhidden unchecked
; I've seen this once in a VM.
[Tasks]
Name: "DefaultApp"; Description: "Make Meddy the default application for any markdown (*.md) files";
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
[Code]