1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-12 14:03:16 +01:00
Radarr/setup/radarr.iss

85 lines
3.9 KiB
Plaintext
Raw Normal View History

2013-11-26 06:34:53 +01:00
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
2017-04-10 14:24:06 +02:00
#define AppName "Radarr"
#define AppPublisher "Team Radarr"
#define AppURL "https://radarr.video/"
#define ForumsURL "https://radarr.video/discord"
2017-04-10 14:24:06 +02:00
#define AppExeName "Radarr.exe"
#define BaseVersion GetEnv('MAJORVERSION')
#define BuildNumber GetEnv('MINORVERSION')
#define BuildVersion GetEnv('RADARRVERSION')
2013-11-26 06:34:53 +01:00
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
2017-04-10 14:24:06 +02:00
AppId={{56C1065D-3523-4025-B76D-6F73F67F7F82}
2013-11-26 06:34:53 +01:00
AppName={#AppName}
AppVersion={#BaseVersion}
2013-11-26 06:34:53 +01:00
AppPublisher={#AppPublisher}
AppPublisherURL={#AppURL}
2013-11-26 21:17:16 +01:00
AppSupportURL={#ForumsURL}
2013-11-26 06:34:53 +01:00
AppUpdatesURL={#AppURL}
DefaultDirName={commonappdata}\Radarr
2013-11-26 06:34:53 +01:00
DisableDirPage=yes
DefaultGroupName={#AppName}
DisableProgramGroupPage=yes
OutputBaseFilename=Radarr.{#BuildVersion}.{#Runtime}
2013-11-26 06:34:53 +01:00
SolidCompression=yes
AppCopyright=Creative Commons 3.0 License
AllowUNCPath=False
UninstallDisplayIcon={app}\bin\Radarr.exe
2013-11-26 06:34:53 +01:00
DisableReadyPage=True
CompressionThreads=2
Compression=lzma2/normal
2013-11-26 21:17:16 +01:00
AppContact={#ForumsURL}
VersionInfoVersion={#BaseVersion}.{#BuildNumber}
2019-10-14 22:21:00 +02:00
SetupLogging=yes
OutputDir=output
WizardStyle=modern
2013-11-26 06:34:53 +01:00
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopIcon"; Description: "{cm:CreateDesktopIcon}"
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
[Dirs]
Name: "{app}"; Permissions: users-modify
2013-11-26 06:34:53 +01:00
[Files]
Source: "..\_artifacts\{#Runtime}\{#Framework}\Radarr\Radarr.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
Source: "..\_artifacts\{#Runtime}\{#Framework}\Radarr\*"; Excludes: "Radarr.Update"; DestDir: "{app}\bin"; Flags: ignoreversion recursesubdirs createallsubdirs
2013-11-26 06:34:53 +01:00
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#AppName}"; Filename: "{app}\bin\{#AppExeName}"; Parameters: "/icon"
Name: "{commondesktop}\{#AppName}"; Filename: "{app}\bin\{#AppExeName}"; Parameters: "/icon"; Tasks: desktopIcon
Name: "{userstartup}\{#AppName}"; Filename: "{app}\bin\Radarr.exe"; WorkingDir: "{app}\bin"; Tasks: startupShortcut
2013-11-26 06:34:53 +01:00
[InstallDelete]
Name: "{app}\bin"; Type: filesandordirs
2013-11-26 06:34:53 +01:00
[Run]
Filename: "{app}\bin\Radarr.Console.exe"; StatusMsg: "Removing previous Windows Service"; Parameters: "/u /exitimmediately"; Flags: runhidden waituntilterminated;
Filename: "{app}\bin\Radarr.Console.exe"; Description: "Enable Access from Other Devices"; StatusMsg: "Enabling Remote access"; Parameters: "/registerurl /exitimmediately"; Flags: postinstall runascurrentuser runhidden waituntilterminated; Tasks: startupShortcut none;
Filename: "{app}\bin\Radarr.Console.exe"; StatusMsg: "Installing Windows Service"; Parameters: "/i /exitimmediately"; Flags: runhidden waituntilterminated; Tasks: windowsService
Filename: "{app}\bin\Radarr.exe"; Description: "Open Radarr Web UI"; Flags: postinstall skipifsilent nowait; Tasks: windowsService;
Filename: "{app}\bin\Radarr.exe"; Description: "Start Radarr"; Flags: postinstall skipifsilent nowait; Tasks: startupShortcut none;
2013-11-26 06:34:53 +01:00
[UninstallRun]
Filename: "{app}\bin\radarr.console.exe"; Parameters: "/u"; Flags: waituntilterminated skipifdoesntexist
[Code]
function PrepareToInstall(var NeedsRestart: Boolean): String;
var
ResultCode: Integer;
begin
Exec('net', 'stop radarr', '', 0, ewWaitUntilTerminated, ResultCode)
Exec('sc', 'delete radarr', '', 0, ewWaitUntilTerminated, ResultCode)
end;