From 248e0f4f7e2be0e0686f717bbfa83f9f170edfc8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 21 Jun 2015 13:16:18 +1200 Subject: Update setup package scripts --- setup/windows/traccar.iss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'setup/windows') diff --git a/setup/windows/traccar.iss b/setup/windows/traccar.iss index f25d7da46..709ba4c8b 100644 --- a/setup/windows/traccar.iss +++ b/setup/windows/traccar.iss @@ -10,6 +10,7 @@ Name: "{app}\conf" Name: "{app}\data" Name: "{app}\lib" Name: "{app}\logs" +Name: "{app}\web" [Files] Source: "..\wrapper\bin\wrapper-windows-x86-32.exe"; DestDir: "{app}\bin"; DestName: "wrapper.exe" @@ -22,8 +23,8 @@ Source: "..\wrapper\src\conf\wrapper.conf.in"; DestDir: "{app}\conf"; DestName: Source: "..\..\target\tracker-server.jar"; DestDir: "{app}" Source: "..\..\target\lib\*"; DestDir: "{app}\lib" -Source: "..\traccar-web.war"; DestDir: "{app}" -Source: "traccar.cfg"; DestDir: "{app}\conf"; AfterInstall: ConfigureApplication +Source: "..\..\web\*"; DestDir: "{app}\web" +Source: "traccar.xml"; DestDir: "{app}\conf"; AfterInstall: ConfigureApplication [Run] Filename: "{app}\bin\InstallTraccar-NT.bat" @@ -63,7 +64,7 @@ var begin LoadStringFromFile(ExpandConstant(CurrentFileName), S); Insert('wrapper.java.classpath.2=../tracker-server.jar' + #13#10, S, Pos('wrapper.java.classpath.1', S)); - Insert(ExpandConstant('wrapper.app.parameter.2="{app}\conf\traccar.cfg"') + #13#10, S, Pos('wrapper.app.parameter.1', S)); + Insert(ExpandConstant('wrapper.app.parameter.2="{app}\conf\traccar.xml"') + #13#10, S, Pos('wrapper.app.parameter.1', S)); StringChangeEx(S, '', 'org.traccar.Main', true); StringChangeEx(S, '@app.name@', 'Traccar', true); StringChangeEx(S, '@app.long.name@', 'Traccar', true); @@ -77,8 +78,8 @@ var S: String; begin LoadStringFromFile(ExpandConstant(CurrentFileName), S); - StringChangeEx(S, '[DATABASE]', ExpandConstant('{app}\data\database'), true); - StringChangeEx(S, '[WAR]', ExpandConstant('{app}\traccar-web.war'), true); + StringChangeEx(S, '[WEB]', ExpandConstant('{app}\web'), true); StringChangeEx(S, '[LOG]', ExpandConstant('{app}\logs\tracker-server.log'), true); + StringChangeEx(S, '[DATABASE]', ExpandConstant('{app}\data\database'), true); SaveStringToFile(ExpandConstant(CurrentFileName), S, false); end; -- cgit v1.2.3