aboutsummaryrefslogtreecommitdiff
path: root/setup/traccar.iss
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 21:22:34 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 21:22:46 +1200
commit1432d04a7be8397becd5c88f9e1f075861acbfdc (patch)
treefa7a4b6619ffee11a4eac9d28f5ab56d4d1fe3d0 /setup/traccar.iss
parent99bf70e274fbfb03e0f65c564d7c9f5bdaf115c4 (diff)
downloadtrackermap-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.tar.gz
trackermap-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.tar.bz2
trackermap-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.zip
Update packaging scripts
Diffstat (limited to 'setup/traccar.iss')
-rw-r--r--setup/traccar.iss36
1 files changed, 2 insertions, 34 deletions
diff --git a/setup/traccar.iss b/setup/traccar.iss
index 4ad473053..4deccf2d9 100644
--- a/setup/traccar.iss
+++ b/setup/traccar.iss
@@ -2,50 +2,18 @@
AppName=Traccar
AppVersion=4.0
DefaultDirName={pf}\Traccar
-AlwaysRestart=yes
OutputBaseFilename=traccar-setup
ArchitecturesInstallIn64BitMode=x64
[Dirs]
-Name: "{app}\conf"
Name: "{app}\data"
-Name: "{app}\lib"
Name: "{app}\logs"
-Name: "{app}\web"
-Name: "{app}\schema"
-Name: "{app}\templates"
[Files]
Source: "out\*"; DestDir: "{app}"; Flags: recursesubdirs
[Run]
-Filename: "java.exe"; Parameters: "-jar ""{app}\tracker-server.jar"" --install .\conf\traccar.xml"; Flags: runhidden
+Filename: "{app}\jre\bin\java.exe"; Parameters: "-jar ""{app}\tracker-server.jar"" --install .\conf\traccar.xml"; Flags: runhidden
[UninstallRun]
-Filename: "java.exe"; Parameters: "-jar ""{app}\tracker-server.jar"" --uninstall"; Flags: runhidden
-
-[Code]
-function GetLocalMachine(): Integer;
-begin
- if IsWin64 then
- begin
- Result := HKLM64;
- end
- else
- begin
- Result := HKEY_LOCAL_MACHINE;
- end;
-end;
-
-function InitializeSetup(): Boolean;
-begin
- if RegKeyExists(GetLocalMachine(), 'SOFTWARE\JavaSoft') then
- begin
- Result := true;
- end
- else
- begin
- Result := false;
- MsgBox('This application requires Java Runtime Environment version 7 or later. Please download and install the JRE and run this setup again. If you have Java installed and still get this error, you need to re-install it from offline installer (for more info see https://www.traccar.org/windows/).', mbCriticalError, MB_OK);
- end;
-end;
+Filename: "{app}\jre\bin\java.exe"; Parameters: "-jar ""{app}\tracker-server.jar"" --uninstall"; Flags: runhidden