From 02c95658c4a5d38e1d0997ed5ef9bbd219ffc32c Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 11 Oct 2020 22:43:08 -0400 Subject: [PATCH] Windows installer improvements Co-Authored-By: Mark McDowall --- setup/radarr.iss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/radarr.iss b/setup/radarr.iss index 864659190..0048e9381 100644 --- a/setup/radarr.iss +++ b/setup/radarr.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 +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 Name: "startupShortcut"; Description: "Create shortcut in Startup folder (Starts when you log into Windows)"; GroupDescription: "Start automatically"; Flags: exclusive unchecked Name: "none"; Description: "Do not start automatically"; GroupDescription: "Start automatically"; Flags: exclusive unchecked @@ -72,5 +72,6 @@ function PrepareToInstall(var NeedsRestart: Boolean): String; var ResultCode: Integer; begin - Exec(ExpandConstant('{commonappdata}\Radarr\bin\Radarr.Console.exe'), '/u', '', 0, ewWaitUntilTerminated, ResultCode) + Exec('net', 'stop radarr', '', 0, ewWaitUntilTerminated, ResultCode) + Exec('sc', 'delete radarr', '', 0, ewWaitUntilTerminated, ResultCode) end;