installing as windows service is now optional during setup.

This commit is contained in:
kayone 2013-11-26 15:59:17 -08:00
parent 72fc530da9
commit 19657b471e
2 changed files with 8 additions and 6 deletions

1
.gitignore vendored
View File

@ -117,3 +117,4 @@ wix/*.msi
wix/*.wixobj wix/*.wixobj
wix/*.wixpdb wix/*.wixpdb
setup/Output/ setup/Output/
*.~is

View File

@ -6,7 +6,7 @@
#define AppURL "http://www.nzbdrone.com/" #define AppURL "http://www.nzbdrone.com/"
#define ForumsURL "http://forums.nzbdrone.com/" #define ForumsURL "http://forums.nzbdrone.com/"
#define AppExeName "NzbDrone.exe" #define AppExeName "NzbDrone.exe"
#define BuildNumber GetEnv('BUILD_NUMBER') #define BuildNumber "2.0"
[Setup] [Setup]
; NOTE: The value of AppId uniquely identifies this application. ; NOTE: The value of AppId uniquely identifies this application.
@ -37,7 +37,8 @@ AppContact={#ForumsURL}
Name: "english"; MessagesFile: "compiler:Default.isl" Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks] [Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked ;Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "windowsService"; Description: "Install as a Windows Service"
[Files] [Files]
Source: "..\_output\NzbDrone.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "..\_output\NzbDrone.exe"; DestDir: "{app}"; Flags: ignoreversion
@ -45,12 +46,12 @@ Source: "..\_output\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs cr
; NOTE: Don't use "Flags: ignoreversion" on any shared system files ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons] [Icons]
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}" Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Parameters: "/icon"
Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Parameters: "/icon"
[Run] [Run]
Filename: "{app}\nzbdrone.console.exe"; Parameters: "/u"; Flags: waituntilterminated Filename: "{app}\nzbdrone.console.exe"; Parameters: "/u"; Flags: waituntilterminated;
Filename: "{app}\nzbdrone.console.exe"; Parameters: "/i"; Flags: waituntilterminated Filename: "{app}\nzbdrone.console.exe"; Parameters: "/i"; Flags: waituntilterminated; Tasks: windowsService
[UninstallRun] [UninstallRun]
Filename: "{app}\nzbdrone.console.exe"; Parameters: "/u"; Flags: waituntilterminated skipifdoesntexist Filename: "{app}\nzbdrone.console.exe"; Parameters: "/u"; Flags: waituntilterminated skipifdoesntexist