2013-11-26 05:34:53 +00:00
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
2017-05-06 14:44:46 +00:00
#define AppName "Lidarr"
#define AppPublisher "Team Lidarr"
#define AppURL "https://lidarr.audio/"
#define ForumsURL "https://forums.lidarr.audio/"
2017-07-03 18:39:06 +00:00
#define AppExeName "Lidarr.exe"
2019-04-16 01:03:21 +00:00
#define BaseVersion "0.6.1"
2017-12-31 18:53:16 +00:00
#define BuildNumber GetEnv('APPVEYOR_BUILD_NUMBER')
#define BuildVersion GetEnv('APPVEYOR_BUILD_VERSION')
#define BranchName GetEnv('APPVEYOR_REPO_BRANCH')
2013-11-26 05:34:53 +00: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-10-15 04:07:56 +00:00
AppId={{56C1065D-3523-4025-B76D-6F73F67F7F93}
2013-11-26 05:34:53 +00:00
AppName={#AppName}
2018-12-01 20:26:37 +00:00
AppVersion={#BaseVersion}
2013-11-26 05:34:53 +00:00
AppPublisher={#AppPublisher}
AppPublisherURL={#AppURL}
2013-11-26 20:17:16 +00:00
AppSupportURL={#ForumsURL}
2013-11-26 05:34:53 +00:00
AppUpdatesURL={#AppURL}
2017-07-03 18:39:06 +00:00
DefaultDirName={commonappdata}\Lidarr\bin
2013-11-26 05:34:53 +00:00
DisableDirPage=yes
DefaultGroupName={#AppName}
DisableProgramGroupPage=yes
2017-12-31 18:53:16 +00:00
OutputBaseFilename=Lidarr.{#BranchName}.{#BuildVersion}.windows
2013-11-26 05:34:53 +00:00
SolidCompression=yes
AppCopyright=Creative Commons 3.0 License
AllowUNCPath=False
2017-07-03 18:39:06 +00:00
UninstallDisplayIcon={app}\Lidarr.exe
2013-11-26 05:34:53 +00:00
DisableReadyPage=True
CompressionThreads=2
Compression=lzma2/normal
2013-11-26 20:17:16 +00:00
AppContact={#ForumsURL}
2018-12-01 20:26:37 +00:00
VersionInfoVersion={#BaseVersion}.{#BuildNumber}
2013-11-26 05:34:53 +00:00
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
2017-10-15 04:07:56 +00:00
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"
Name: "windowsService"; Description: "Install Windows Service (Starts when the computer starts)"; 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
2013-11-26 05:34:53 +00:00
[Files]
2017-05-08 14:21:18 +00:00
Source: "..\_output\Lidarr.exe"; DestDir: "{app}"; Flags: ignoreversion
2013-11-26 19:51:19 +00:00
Source: "..\_output\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
2013-11-26 05:34:53 +00:00
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
2013-11-26 23:59:17 +00:00
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Parameters: "/icon"
Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Parameters: "/icon"
2017-10-15 04:07:56 +00:00
Name: "{userstartup}\{#AppName}"; Filename: "{app}\Lidarr.exe"; WorkingDir: "{app}"; Tasks: startupShortcut
2013-11-26 05:34:53 +00:00
[Run]
2018-04-27 00:56:19 +00:00
Filename: "{app}\Lidarr.Console.exe"; StatusMsg: "Removing previous Windows Service"; Parameters: "/u"; Flags: runhidden waituntilterminated;
Filename: "{app}\Lidarr.Console.exe"; Description: "Enable Access from Other Devices"; StatusMsg: "Enabling Remote access"; Parameters: "/registerurl"; Flags: postinstall runascurrentuser runhidden waituntilterminated; Tasks: startupShortcut none;
Filename: "{app}\Lidarr.Console.exe"; StatusMsg: "Installing Windows Service"; Parameters: "/i"; Flags: runhidden waituntilterminated; Tasks: windowsService
Filename: "{app}\Lidarr.exe"; Description: "Open Lidarr Web UI"; Flags: postinstall skipifsilent nowait; Tasks: windowsService;
2017-10-15 04:07:56 +00:00
Filename: "{app}\Lidarr.exe"; Description: "Start Lidarr"; Flags: postinstall skipifsilent nowait; Tasks: startupShortcut none;
2013-11-26 05:34:53 +00:00
[UninstallRun]
2017-05-08 14:21:18 +00:00
Filename: "{app}\lidarr.console.exe"; Parameters: "/u"; Flags: waituntilterminated skipifdoesntexist
2018-08-09 01:53:58 +00:00
[Code]
function PrepareToInstall(var NeedsRestart: Boolean): String;
var
ResultCode: Integer;
begin
Exec(ExpandConstant('{commonappdata}\Lidarr\bin\Lidarr.Console.exe'), '/u', '', 0, ewWaitUntilTerminated, ResultCode)
end;