aboutsummaryrefslogtreecommitdiff
path: root/setup/traccar.iss
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-18 02:30:35 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-18 02:30:35 +1200
commite3ed7e2fac9c96c6c6b49a1b9085cdb4e290f72a (patch)
tree2f96bfbe50a11834c6a8a1359c14c89c45b8d0d8 /setup/traccar.iss
parent20916b8c2017a8c89452fb49321d826f553df9c0 (diff)
downloadtrackermap-server-e3ed7e2fac9c96c6c6b49a1b9085cdb4e290f72a.tar.gz
trackermap-server-e3ed7e2fac9c96c6c6b49a1b9085cdb4e290f72a.tar.bz2
trackermap-server-e3ed7e2fac9c96c6c6b49a1b9085cdb4e290f72a.zip
More changes to setup scripts
Diffstat (limited to 'setup/traccar.iss')
-rw-r--r--setup/traccar.iss51
1 files changed, 51 insertions, 0 deletions
diff --git a/setup/traccar.iss b/setup/traccar.iss
new file mode 100644
index 000000000..6858a1152
--- /dev/null
+++ b/setup/traccar.iss
@@ -0,0 +1,51 @@
+[Setup]
+AppName=Traccar
+AppVersion=3.7
+DefaultDirName={pf}\Traccar
+AlwaysRestart=yes
+OutputBaseFilename=traccar-setup
+
+[Dirs]
+Name: "{app}\bat"
+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: "{app}\bat\installService.bat"
+
+[UninstallRun]
+Filename: "{app}\bat\uninstallService.bat"
+
+[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\Java Runtime Environment') 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;