From 72fc530da9c4db9781839e8757006fb174e5acf8 Mon Sep 17 00:00:00 2001 From: kayone Date: Tue, 26 Nov 2013 12:43:36 -0800 Subject: [PATCH] updated build number, uninstall/reinstall service on install. --- setup/nzbdrone.iss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/nzbdrone.iss b/setup/nzbdrone.iss index 2f4fb56e9..41c800b7e 100644 --- a/setup/nzbdrone.iss +++ b/setup/nzbdrone.iss @@ -6,6 +6,7 @@ #define AppURL "http://www.nzbdrone.com/" #define ForumsURL "http://forums.nzbdrone.com/" #define AppExeName "NzbDrone.exe" +#define BuildNumber GetEnv('BUILD_NUMBER') [Setup] ; NOTE: The value of AppId uniquely identifies this application. @@ -13,7 +14,7 @@ ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) AppId={{56C1065D-3523-4025-B76D-6F73F67F7F71} AppName={#AppName} -AppVersion={%env.BUILD_NUMBER|1.0.0} +AppVersion={#BuildNumber} AppPublisher={#AppPublisher} AppPublisherURL={#AppURL} AppSupportURL={#ForumsURL} @@ -48,6 +49,7 @@ Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}" Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon [Run] +Filename: "{app}\nzbdrone.console.exe"; Parameters: "/u"; Flags: waituntilterminated Filename: "{app}\nzbdrone.console.exe"; Parameters: "/i"; Flags: waituntilterminated [UninstallRun]