-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.iss
36 lines (32 loc) · 1.76 KB
/
install.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
#define MyAppTitle "RDP protocol handler"
#define MyAppName "rdp-protocol-handler"
#define MyAppVersion "1.0.0"
#define MyAppPublisher "[email protected]"
#define MyAppURL "https://github.com/chrono-meter/rdp-protocol-handler"
[Setup]
AppId={{8CF91C0E-652F-421C-9DCC-8C87702D2CCE}
AppName={#MyAppTitle}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
;AppPublisherURL={#MyAppURL}
;AppSupportURL={#MyAppURL}
;AppUpdatesURL={#MyAppURL}
DefaultDirName={localappdata}\Programs\rdp-protocol-handler
PrivilegesRequired=lowest
OutputBaseFilename=setup-{#MyAppName}-{#MyAppVersion}
Compression=lzma
SolidCompression=yes
[Languages]
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
[Files]
Source: "rdp-protocol-handler.ps1"; DestDir: "{app}"
[Registry]
Root: HKCU; Subkey: "Software\Classes\rdp"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Classes\rdp"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""
Root: HKCU; Subkey: "Software\Classes\rdp\DefaultIcon"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Classes\rdp\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{sys}\mstsc.exe,0"
Root: HKCU; Subkey: "Software\Classes\rdp\shell"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Classes\rdp\shell"; ValueType: string; ValueName: ""; ValueData: "open"
Root: HKCU; Subkey: "Software\Classes\rdp\shell\open"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Classes\rdp\shell\open\command"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Classes\rdp\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{sys}\WindowsPowerShell\v1.0\powershell.exe"" -ExecutionPolicy Bypass -WindowStyle Hidden -File ""{app}\rdp-protocol-handler.ps1"" ""%1"""