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 "Lidarr"
|
||
|
#define AppPublisher "Team Lidarr"
|
||
|
#define AppURL "https://lidarr.audio/"
|
||
3 years ago
|
#define ForumsURL "https://lidarr.audio/discord"
|
||
7 years ago
|
#define AppExeName "Lidarr.exe"
|
||
5 years ago
|
#define BaseVersion GetEnv('MAJORVERSION')
|
||
5 years ago
|
#define BuildNumber GetEnv('MINORVERSION')
|
||
|
#define BuildVersion GetEnv('LIDARRVERSION')
|
||
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.)
|
||
7 years ago
|
AppId={{56C1065D-3523-4025-B76D-6F73F67F7F93}
|
||
11 years ago
|
AppName={#AppName}
|
||
6 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}\Lidarr
|
||
11 years ago
|
DisableDirPage=yes
|
||
|
DefaultGroupName={#AppName}
|
||
|
DisableProgramGroupPage=yes
|
||
3 years ago
|
OutputBaseFilename=Lidarr.{#BuildVersion}.{#Runtime}
|
||
11 years ago
|
SolidCompression=yes
|
||
|
AppCopyright=Creative Commons 3.0 License
|
||
|
AllowUNCPath=False
|
||
3 years ago
|
UninstallDisplayIcon={app}\bin\Lidarr.exe
|
||
11 years ago
|
DisableReadyPage=True
|
||
|
CompressionThreads=2
|
||
|
Compression=lzma2/normal
|
||
11 years ago
|
AppContact={#ForumsURL}
|
||
6 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]
|
||
4 years ago
|
Name: "desktopIcon"; Description: "{cm:CreateDesktopIcon}"
|
||
3 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
|
||
|
Name: "startupShortcut"; Description: "Create shortcut in Startup folder (Starts when you log into Windows)"; GroupDescription: "Start automatically"; Flags: exclusive unchecked
|
||
7 years ago
|
Name: "none"; Description: "Do not start automatically"; GroupDescription: "Start automatically"; Flags: exclusive unchecked
|
||
11 years ago
|
|
||
3 years ago
|
[Dirs]
|
||
|
Name: "{app}"; Permissions: users-modify
|
||
|
|
||
11 years ago
|
[Files]
|
||
2 years ago
|
Source: "..\..\..\_artifacts\{#Runtime}\{#Framework}\Lidarr\Lidarr.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
||
|
Source: "..\..\..\_artifacts\{#Runtime}\{#Framework}\Lidarr\*"; Excludes: "Lidarr.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\Lidarr.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\Lidarr.Console.exe"; StatusMsg: "Removing previous Windows Service"; Parameters: "/u /exitimmediately"; Flags: runhidden waituntilterminated;
|
||
|
Filename: "{app}\bin\Lidarr.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\Lidarr.Console.exe"; StatusMsg: "Installing Windows Service"; Parameters: "/i /exitimmediately"; Flags: runhidden waituntilterminated; Tasks: windowsService
|
||
|
Filename: "{app}\bin\Lidarr.exe"; Description: "Open Lidarr Web UI"; Flags: postinstall skipifsilent nowait; Tasks: windowsService;
|
||
|
Filename: "{app}\bin\Lidarr.exe"; Description: "Start Lidarr"; Flags: postinstall skipifsilent nowait; Tasks: startupShortcut none;
|
||
11 years ago
|
|
||
|
[UninstallRun]
|
||
3 years ago
|
Filename: "{app}\bin\lidarr.console.exe"; Parameters: "/u"; Flags: waituntilterminated skipifdoesntexist
|
||
6 years ago
|
|
||
|
[Code]
|
||
|
function PrepareToInstall(var NeedsRestart: Boolean): String;
|
||
|
var
|
||
|
ResultCode: Integer;
|
||
|
begin
|
||
3 years ago
|
Exec('net', 'stop lidarr', '', 0, ewWaitUntilTerminated, ResultCode)
|
||
|
Exec('sc', 'delete lidarr', '', 0, ewWaitUntilTerminated, ResultCode)
|
||
6 years ago
|
end;
|