Sonarr/setup/sonarr.iss

79 lines
3.5 KiB
Plaintext
Raw Normal View History

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!
#define AppName "Sonarr"
#define AppPublisher "Team Sonarr"
#define AppURL "https://sonarr.tv/"
#define ForumsURL "https://forums.sonarr.tv/"
2017-09-18 03:25:28 +00:00
#define AppExeName "Sonarr.exe"
2017-10-16 00:41:48 +00:00
#define BuildNumber "3.0"
#define BuildNumber GetEnv('BUILD_NUMBER')
2017-09-18 03:25:28 +00:00
#define BranchName GetEnv('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.)
2013-11-26 20:19:26 +00:00
AppId={{56C1065D-3523-4025-B76D-6F73F67F7F71}
2013-11-26 05:34:53 +00:00
AppName={#AppName}
2017-09-18 03:25:28 +00:00
AppVersion=3.0
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-09-18 03:25:28 +00:00
UsePreviousAppDir=no
DefaultDirName={commonappdata}\Sonarr\bin
2013-11-26 05:34:53 +00:00
DisableDirPage=yes
DefaultGroupName={#AppName}
DisableProgramGroupPage=yes
2017-09-18 03:25:28 +00:00
OutputBaseFilename=Sonarr.{#BranchName}.{#BuildNumber}.windows
2013-11-26 05:34:53 +00:00
SolidCompression=yes
AppCopyright=Creative Commons 3.0 License
AllowUNCPath=False
2017-09-18 03:25:28 +00:00
UninstallDisplayIcon={app}\Sonarr.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}
2014-08-26 06:07:50 +00:00
VersionInfoVersion={#BuildNumber}
2013-11-26 05:34:53 +00: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)"; 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-09-18 03:25:28 +00:00
Source: "..\_output\Sonarr.exe"; DestDir: "{app}"; Flags: ignoreversion
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]
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Parameters: "/icon"
Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Parameters: "/icon"
2017-09-18 03:25:28 +00:00
Name: "{userstartup}\{#AppName}"; Filename: "{app}\Sonarr.exe"; WorkingDir: "{app}"; Tasks: startupShortcut
[InstallDelete]
Name: "{commonappdata}\NzbDrone\bin"; Type: filesandordirs
2013-11-26 05:34:53 +00:00
[Run]
2017-10-16 00:41:48 +00:00
Filename: "{app}\Sonarr.Console.exe"; StatusMsg: "Removing previous Windows Service"; Parameters: "/u"; Flags: runhidden waituntilterminated;
Filename: "{app}\Sonarr.Console.exe"; Description: "Enable Access from Other Devices"; StatusMsg: "Enabling Remote access"; Parameters: "/registerurl"; Flags: postinstall runascurrentuser runhidden waituntilterminated; Tasks: startupShortcut none;
Filename: "{app}\Sonarr.Console.exe"; StatusMsg: "Installing Windows Service"; Parameters: "/i"; Flags: runhidden waituntilterminated; Tasks: windowsService
2017-09-18 03:25:28 +00:00
Filename: "{app}\Sonarr.exe"; Description: "Open Sonarr Web UI"; Flags: postinstall skipifsilent nowait; Tasks: windowsService;
Filename: "{app}\Sonarr.exe"; Description: "Start Sonarr"; Flags: postinstall skipifsilent nowait; Tasks: startupShortcut none;
2013-11-26 05:34:53 +00:00
[UninstallRun]
2017-09-18 03:25:28 +00:00
Filename: "{app}\Sonarr.Console.exe"; Parameters: "/u"; Flags: runhidden waituntilterminated skipifdoesntexist
[Code]
function PrepareToInstall(var NeedsRestart: Boolean): String;
var
ResultCode: Integer;
begin
Exec(ExpandConstant('{commonappdata}\NzbDrone\bin\NzbDrone.Console.exe'), '/u', '', 0, ewWaitUntilTerminated, ResultCode)
end;