2015-07-19 13:22:50 +00:00
|
|
|
; Script generated by the Inno Setup Script Wizard.
|
|
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
|
|
|
|
|
|
#define MyAppName "Jackett"
|
2015-08-02 21:55:23 +00:00
|
|
|
#define MyAppVersion GetFileVersion("build.windows/Jackett.dll")
|
2015-07-19 13:22:50 +00:00
|
|
|
#define MyAppPublisher "Jackett Inc."
|
2015-11-07 03:50:49 +00:00
|
|
|
#define MyAppURL "https://github.com/Jackett/Jackett"
|
2015-07-19 13:22:50 +00:00
|
|
|
#define MyAppExeName "JackettTray.exe"
|
|
|
|
|
|
|
|
[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.)
|
|
|
|
AppId={{C2A9FC00-AA48-4F17-9A72-62FBCEE2785B}
|
|
|
|
AppName={#MyAppName}
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
|
|
AppPublisher={#MyAppPublisher}
|
|
|
|
AppPublisherURL={#MyAppURL}
|
|
|
|
AppSupportURL={#MyAppURL}
|
|
|
|
AppUpdatesURL={#MyAppURL}
|
|
|
|
DefaultDirName={pf}\{#MyAppName}
|
|
|
|
DefaultGroupName={#MyAppName}
|
|
|
|
DisableProgramGroupPage=yes
|
|
|
|
OutputBaseFilename=setup
|
2015-07-22 22:00:52 +00:00
|
|
|
SetupIconFile=src\Jackett.Console\jackett.ico
|
|
|
|
UninstallDisplayIcon={app}\JackettConsole.exe
|
2015-07-19 13:22:50 +00:00
|
|
|
Compression=lzma
|
|
|
|
SolidCompression=yes
|
|
|
|
|
|
|
|
[Languages]
|
|
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
|
|
|
|
[Tasks]
|
|
|
|
Name: "windowsService"; Description: "Install as a Windows Service"
|
|
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
|
|
|
|
[Files]
|
2015-08-02 20:44:07 +00:00
|
|
|
Source: "build.windows\JackettTray.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
|
|
Source: "build.windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
2015-07-19 13:22:50 +00:00
|
|
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
|
|
|
|
|
|
[Icons]
|
|
|
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
|
|
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
|
|
|
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
|
|
|
|
|
|
|
[Run]
|
|
|
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
|
|
|
|
|
|
|
[Run]
|
2015-07-23 23:07:36 +00:00
|
|
|
Filename: "{app}\JackettConsole.exe"; Parameters: "--Uninstall"; Flags: waituntilterminated;
|
|
|
|
Filename: "{app}\JackettConsole.exe"; Parameters: "--ReserveUrls"; Flags: waituntilterminated;
|
2015-07-24 21:38:31 +00:00
|
|
|
Filename: "{app}\JackettConsole.exe"; Parameters: "--MigrateSettings"; Flags: waituntilterminated;
|
2015-07-23 23:07:36 +00:00
|
|
|
Filename: "{app}\JackettConsole.exe"; Parameters: "--Install"; Flags: waituntilterminated; Tasks: windowsService
|
|
|
|
Filename: "{app}\JackettConsole.exe"; Parameters: "--Start"; Flags: waituntilterminated; Tasks: windowsService
|
2015-07-19 13:22:50 +00:00
|
|
|
|
|
|
|
[UninstallRun]
|
2015-07-23 23:07:36 +00:00
|
|
|
Filename: "{app}\JackettConsole.exe"; Parameters: "--Uninstall"; Flags: waituntilterminated skipifdoesntexist
|
2015-07-19 13:22:50 +00:00
|
|
|
|
|
|
|
|