You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
4.0 KiB
85 lines
4.0 KiB
11 years ago
|
; Script generated by the Inno Setup Script Wizard.
|
||
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||
|
|
||
8 years ago
|
#define AppName "Radarr"
|
||
|
#define AppPublisher "Team Radarr"
|
||
|
#define AppURL "https://radarr.video/"
|
||
3 years ago
|
#define ForumsURL "https://radarr.video/discord"
|
||
8 years ago
|
#define AppExeName "Radarr.exe"
|
||
5 years ago
|
#define BaseVersion GetEnv('MAJORVERSION')
|
||
5 years ago
|
#define BuildNumber GetEnv('MINORVERSION')
|
||
|
#define BuildVersion GetEnv('RADARRVERSION')
|
||
11 years ago
|
|
||
|
[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.)
|
||
8 years ago
|
AppId={{56C1065D-3523-4025-B76D-6F73F67F7F82}
|
||
11 years ago
|
AppName={#AppName}
|
||
5 years ago
|
AppVersion={#BaseVersion}
|
||
11 years ago
|
AppPublisher={#AppPublisher}
|
||
|
AppPublisherURL={#AppURL}
|
||
11 years ago
|
AppSupportURL={#ForumsURL}
|
||
11 years ago
|
AppUpdatesURL={#AppURL}
|
||
3 years ago
|
DefaultDirName={commonappdata}\Radarr
|
||
11 years ago
|
DisableDirPage=yes
|
||
|
DefaultGroupName={#AppName}
|
||
|
DisableProgramGroupPage=yes
|
||
3 years ago
|
OutputBaseFilename=Radarr.{#BuildVersion}.{#Runtime}
|
||
11 years ago
|
SolidCompression=yes
|
||
|
AppCopyright=Creative Commons 3.0 License
|
||
|
AllowUNCPath=False
|
||
3 years ago
|
UninstallDisplayIcon={app}\bin\Radarr.exe
|
||
11 years ago
|
DisableReadyPage=True
|
||
|
CompressionThreads=2
|
||
|
Compression=lzma2/normal
|
||
11 years ago
|
AppContact={#ForumsURL}
|
||
5 years ago
|
VersionInfoVersion={#BaseVersion}.{#BuildNumber}
|
||
5 years ago
|
SetupLogging=yes
|
||
4 years ago
|
OutputDir=output
|
||
3 years ago
|
WizardStyle=modern
|
||
11 years ago
|
|
||
|
[Languages]
|
||
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||
|
|
||
|
[Tasks]
|
||
5 years ago
|
Name: "desktopIcon"; Description: "{cm:CreateDesktopIcon}"
|
||
4 years ago
|
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
|
||
5 years ago
|
Name: "startupShortcut"; Description: "Create shortcut in Startup folder (Starts when you log into Windows)"; GroupDescription: "Start automatically"; Flags: exclusive unchecked
|
||
5 years ago
|
Name: "none"; Description: "Do not start automatically"; GroupDescription: "Start automatically"; Flags: exclusive unchecked
|
||
|
|
||
3 years ago
|
[Dirs]
|
||
|
Name: "{app}"; Permissions: users-modify
|
||
|
|
||
11 years ago
|
[Files]
|
||
2 years ago
|
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
|
||
11 years ago
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||
|
|
||
|
[Icons]
|
||
3 years ago
|
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
|
||
11 years ago
|
|
||
4 years ago
|
[InstallDelete]
|
||
3 years ago
|
Name: "{app}\bin"; Type: filesandordirs
|
||
4 years ago
|
|
||
11 years ago
|
[Run]
|
||
3 years ago
|
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;
|
||
11 years ago
|
|
||
|
[UninstallRun]
|
||
3 years ago
|
Filename: "{app}\bin\radarr.console.exe"; Parameters: "/u"; Flags: waituntilterminated skipifdoesntexist
|
||
5 years ago
|
|
||
|
[Code]
|
||
|
function PrepareToInstall(var NeedsRestart: Boolean): String;
|
||
|
var
|
||
|
ResultCode: Integer;
|
||
|
begin
|
||
4 years ago
|
Exec('net', 'stop radarr', '', 0, ewWaitUntilTerminated, ResultCode)
|
||
|
Exec('sc', 'delete radarr', '', 0, ewWaitUntilTerminated, ResultCode)
|
||
5 years ago
|
end;
|