-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.iss
47 lines (41 loc) · 2.19 KB
/
setup.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
#define AppName "MIDIControl"
#define Dir "MidiControl\bin\Release\net472\"
#define AppVersion() GetVersionComponents(Dir + "MIDIControl.exe", \
Local[0], Local[1], Local[2], Local[3]), \
Str(Local[0]) + "." + Str(Local[1]) + "." + Str(Local[2])
[Setup]
AppName={#AppName}
AppVersion={#AppVersion}
LicenseFile=LICENSE
DefaultDirName={autopf}\{#AppName}
DefaultGroupName={#AppName}
UninstallDisplayIcon={app}\MidiControl.exe
UninstallDisplayName={#AppName}
Compression=lzma2
SolidCompression=yes
PrivilegesRequired=admin
OutputBaseFilename={#AppName}_{#AppVersion}_Setup
VersionInfoVersion={#AppVersion}
[Files]
Source: "{#Dir}MidiControl.exe"; DestDir: "{app}";
Source: "{#Dir}*.dll"; DestDir: "{app}";
Source: "{#Dir}MidiControl.exe.config"; DestDir: "{app}";
Source: "{#Dir}Resources\redirect.html"; DestDir: "{app}\Resources";
Source: "3rd-party-licenses.txt"; DestDir: "{app}";
Source: "LICENSE"; DestDir: "{app}";
Source: "MIDIControl.VisualElementsManifest.xml"; DestDir: "{app}";
Source: "filterminmax.csv"; DestDir: "{userappdata}\{#AppName}";
Source: "hotkeys.csv"; DestDir: "{userappdata}\{#AppName}";
Source: "icon.png"; DestDir: "{app}";
[Icons]
Name: "{group}\{#AppName}"; Filename: "{app}\MidiControl.exe";
[Registry]
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "MIDIControl"; ValueData: "{app}\MIDIControl.exe"; Tasks: RunStartup; Flags: uninsdeletevalue
Root: HKCU; Subkey: "Software\Tobias Erichsen\loopMIDI\Ports"; ValueType: dword; ValueName: "MIDIControl Forward IN"; ValueData: 1; Tasks: loopMIDI; Flags: uninsdeletevalue
Root: HKCU; Subkey: "Software\Tobias Erichsen\loopMIDI\Ports"; ValueType: dword; ValueName: "MIDIControl Forward OUT"; ValueData: 1; Tasks: loopMIDI; Flags: uninsdeletevalue
[Tasks]
Name: RunStartup; Description: AutoStart : Run MIDIControl at Windows startup;
Name: loopMIDI; Description: Enable MIDI Forward : Visit loopMIDI WebPage (manual installation required) and Configure loopMIDI;
[Run]
Filename: "http://www.tobias-erichsen.de/software/loopmidi.html"; Tasks: loopMIDI; Flags: shellexec runasoriginaluser
Filename: {app}\{#AppName}.exe; Description: {cm:LaunchProgram,{#AppName}}; Flags: nowait postinstall skipifsilent