-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdss.iss
39 lines (35 loc) · 1004 Bytes
/
mdss.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
[Setup]
AppName=mDSS
AppVersion=0.1.0
DefaultDirName={pf}\mDSS
DefaultGroupName=mDSS
UninstallDisplayIcon={app}\mdss.exe
Compression=lzma2
SolidCompression=yes
OutputDir=target\
[Files]
Source: "target\mdss.exe"; DestDir: "{app}"
Source: "ws\*.cljw"; DestDir: "{app}\ws"
[Dirs]
Name: "{%APPDATA}\.mdss"
[Icons]
Name: "{group}\mDSS"; Filename: "{app}\mdss.exe"
Name: "{group}\Uninstall mDSS"; Filename: "{uninstallexe}"
[Code]
function InitializeSetup(): boolean;
var
ResultCode: integer;
begin
if Exec('java', '-version', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
begin
Result := true;
end
else
begin
if MsgBox('mDSS requires Java Runtime Environment version 1.6 or newer to run. Please download and install the JRE and run this setup again. Do you want to download it now?', mbConfirmation, MB_YESNO) = idYes then
begin
Result := false;
ShellExec('open', 'https://java.com/download/', '', '', SW_SHOWNORMAL, ewNoWait, ResultCode);
end;
end;
end;