From 43cb44dd3823b712da66e2ed01a41f8097afb59d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 9 Oct 2020 07:36:34 -0700 Subject: [PATCH] Windows installer improvements Fixed: Windows installer removing nzbdrone service New: Add more information about Windows service to installer Closes #3762 Closes #4006 --- distribution/windows/setup/sonarr.iss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/windows/setup/sonarr.iss b/distribution/windows/setup/sonarr.iss index 0ca353448..850fc0820 100644 --- a/distribution/windows/setup/sonarr.iss +++ b/distribution/windows/setup/sonarr.iss @@ -43,7 +43,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl" [Tasks] Name: "desktopIcon"; Description: "{cm:CreateDesktopIcon}" -Name: "windowsService"; Description: "Install Windows Service (Starts when the computer starts)"; GroupDescription: "Start automatically"; Flags: exclusive unchecked +Name: "windowsService"; Description: "Install Windows Service (Starts when the computer starts as the LocalService user, you will need to change the user to access network shares)"; GroupDescription: "Start automatically"; Flags: exclusive unchecked Name: "startupShortcut"; Description: "Create shortcut in Startup folder (Starts when you log into Windows)"; GroupDescription: "Start automatically"; Flags: exclusive Name: "none"; Description: "Do not start automatically"; GroupDescription: "Start automatically"; Flags: exclusive unchecked @@ -75,7 +75,8 @@ function PrepareToInstall(var NeedsRestart: Boolean): String; var ResultCode: Integer; begin - Exec(ExpandConstant('{commonappdata}\NzbDrone\bin\NzbDrone.Console.exe'), '/u', '', 0, ewWaitUntilTerminated, ResultCode) + Exec('net', 'stop nzbdrone', '', 0, ewWaitUntilTerminated, ResultCode) + Exec('sc', 'delete nzbdrone', '', 0, ewWaitUntilTerminated, ResultCode) end; function Framework472IsNotInstalled(): Boolean;