diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-02-21 22:00:42 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-02-21 22:00:42 +1300 |
commit | 0a355cc722ec1e47335c160787dfe271cdc22d0c (patch) | |
tree | 284f80599f32182c7c954b0ffa935cf243531e6d /setup/windows/traccar.iss | |
parent | eb30f49e52d569878552bf243915b7f7233e110c (diff) | |
download | trackermap-server-0a355cc722ec1e47335c160787dfe271cdc22d0c.tar.gz trackermap-server-0a355cc722ec1e47335c160787dfe271cdc22d0c.tar.bz2 trackermap-server-0a355cc722ec1e47335c160787dfe271cdc22d0c.zip |
Support Windows 64 installer
Diffstat (limited to 'setup/windows/traccar.iss')
-rw-r--r-- | setup/windows/traccar.iss | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/setup/windows/traccar.iss b/setup/windows/traccar.iss index 0b37399d3..4d8ab7af5 100644 --- a/setup/windows/traccar.iss +++ b/setup/windows/traccar.iss @@ -32,9 +32,21 @@ Filename: "{app}\bin\InstallTraccar-NT.bat" Filename: "{app}\bin\UninstallTraccar-NT.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(HKEY_LOCAL_MACHINE, 'SOFTWARE\JavaSoft\Java Runtime Environment') then
+ if RegKeyExists(GetLocalMachine(), 'SOFTWARE\JavaSoft\Java Runtime Environment') then
begin
Result := true;
end
|