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.
82 lines
3.9 KiB
82 lines
3.9 KiB
11 years ago
|
; Script generated by the Inno Setup Script Wizard.
|
||
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||
|
|
||
4 years ago
|
#define AppName "Prowlarr"
|
||
|
#define AppPublisher "Team Prowlarr"
|
||
|
#define AppURL "https://prowlarr.video/"
|
||
|
#define ForumsURL "https://forums.prowlarr.video/"
|
||
|
#define AppExeName "Prowlarr.exe"
|
||
5 years ago
|
#define BaseVersion GetEnv('MAJORVERSION')
|
||
5 years ago
|
#define BuildNumber GetEnv('MINORVERSION')
|
||
4 years ago
|
#define BuildVersion GetEnv('PROWLARRVERSION')
|
||
5 years ago
|
#define BranchName GetEnv('BUILD_SOURCEBRANCHNAME')
|
||
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.)
|
||
4 years ago
|
AppId={{2B42F178-4D5F-472A-8D31-EC08376F01B4}
|
||
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}
|
||
4 years ago
|
DefaultDirName={commonappdata}\Prowlarr\bin
|
||
11 years ago
|
DisableDirPage=yes
|
||
|
DefaultGroupName={#AppName}
|
||
|
DisableProgramGroupPage=yes
|
||
4 years ago
|
OutputBaseFilename=Prowlarr.{#BranchName}.{#BuildVersion}.windows.{#Framework}
|
||
11 years ago
|
SolidCompression=yes
|
||
|
AppCopyright=Creative Commons 3.0 License
|
||
|
AllowUNCPath=False
|
||
4 years ago
|
UninstallDisplayIcon={app}\Prowlarr.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
|
||
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
|
||
|
|
||
11 years ago
|
[Files]
|
||
4 years ago
|
Source: "..\..\..\_artifacts\windows\{#Framework}\Prowlarr\Prowlarr.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||
|
Source: "..\..\..\_artifacts\windows\{#Framework}\Prowlarr\*"; Excludes: "Prowlarr.Update"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||
11 years ago
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||
|
|
||
|
[Icons]
|
||
11 years ago
|
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Parameters: "/icon"
|
||
5 years ago
|
Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Parameters: "/icon"; Tasks: desktopIcon
|
||
4 years ago
|
Name: "{userstartup}\{#AppName}"; Filename: "{app}\Prowlarr.exe"; WorkingDir: "{app}"; Tasks: startupShortcut
|
||
11 years ago
|
|
||
4 years ago
|
[InstallDelete]
|
||
|
Name: "{app}"; Type: filesandordirs
|
||
|
|
||
11 years ago
|
[Run]
|
||
4 years ago
|
Filename: "{app}\Prowlarr.Console.exe"; StatusMsg: "Removing previous Windows Service"; Parameters: "/u"; Flags: runhidden waituntilterminated;
|
||
|
Filename: "{app}\Prowlarr.Console.exe"; Description: "Enable Access from Other Devices"; StatusMsg: "Enabling Remote access"; Parameters: "/registerurl"; Flags: postinstall runascurrentuser runhidden waituntilterminated; Tasks: startupShortcut none;
|
||
|
Filename: "{app}\Prowlarr.Console.exe"; StatusMsg: "Installing Windows Service"; Parameters: "/i"; Flags: runhidden waituntilterminated; Tasks: windowsService
|
||
|
Filename: "{app}\Prowlarr.exe"; Description: "Open Prowlarr Web UI"; Flags: postinstall skipifsilent nowait; Tasks: windowsService;
|
||
|
Filename: "{app}\Prowlarr.exe"; Description: "Start Prowlarr"; Flags: postinstall skipifsilent nowait; Tasks: startupShortcut none;
|
||
11 years ago
|
|
||
|
[UninstallRun]
|
||
4 years ago
|
Filename: "{app}\prowlarr.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 prowlarr', '', 0, ewWaitUntilTerminated, ResultCode)
|
||
|
Exec('sc', 'delete prowlarr', '', 0, ewWaitUntilTerminated, ResultCode)
|
||
5 years ago
|
end;
|