Skip to content

Commit

Permalink
Updates to Installer.iss
Browse files Browse the repository at this point in the history
  • Loading branch information
U-C-S committed Aug 18, 2024
1 parent 2e24d35 commit 1e3ce26
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
4 changes: 2 additions & 2 deletions Utils/install_dotnet.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#define DotNetPrettyName "Microsoft .NET Desktop Runtime"
#define DotNetName "Microsoft.WindowsDesktop.App 8"
#define DotNetVersion "8.0.2"
#define DotNetURL "https://download.visualstudio.microsoft.com/download/pr/84ba33d4-4407-4572-9bfa-414d26e7c67c/bb81f8c9e6c9ee1ca547396f6e71b65f/windowsdesktop-runtime-8.0.2-win-x64.exe"
#define DotNetVersion "8.0.8"
#define DotNetURL "https://download.visualstudio.microsoft.com/download/pr/907765b0-2bf8-494e-93aa-5ef9553c5d68/a9308dc010617e6716c0e6abd53b05ce/windowsdesktop-runtime-8.0.8-win-x64.exe"
#define DotNetExeName "dotnet8.exe"
#define DotNetExeArgs "/install /repair /passive /norestart"

Expand Down
61 changes: 34 additions & 27 deletions Utils/installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
#define MyAppName "Hurl"
#define NameSmall "hurl"
#define MyAppVersion "0.9.0.22"
#define MyAppPublisher "The 3721 Tools"
#define MyAppPublisher "U-C-S"
#define MyAppURL "https://github.com/U-C-S/Hurl"
#define MyAppExeName "Launcher.exe"
#define ExeLauncher "Launcher.exe"
#define ExeSelector "Hurl.exe"
#define ExeSettings "Hurl.Settings.exe"
#define AppDescription "Choose the browser on the click of a link"


[Setup]
AppId={{56C63D05-9D83-492A-ABDD-618FE36ACBFB}}
Expand All @@ -22,20 +26,28 @@ LicenseFile=..\LICENSE
InfoBeforeFile=README.md

UsePreviousAppDir=yes
DefaultDirName={autopf}\{#MyAppName}
DefaultDirName={autopf64}\{#MyAppName}
DisableProgramGroupPage=yes
PrivilegesRequired=admin
PrivilegesRequiredOverridesAllowed=dialog

OutputDir=.
OutputBaseFilename=Hurl_Installer

ArchitecturesAllowed=x64
Compression=lzma
Compression=lzma2
SolidCompression=yes
WizardStyle=modern

WizardStyle=modern
SetupLogging=yes

[Code]
function InitializeSetup: Boolean;
begin
InstallDotNetDesktopRuntime;
Result := True;
end;
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

Expand All @@ -47,57 +59,52 @@ Name: "protocol"; Description: "{cm:CreateProtocol}"; GroupDescription: "{cm:Oth
Source: "..\Source\Launcher\target\release\Launcher.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\_Publish\*.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\_Publish\*.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\LICENSE"; DestDir: "{app}/License"; Flags: ignoreversion
Source: "..\LICENSE"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\Extensions\*"; Excludes: "package-lock.json,node_modules"; DestDir: "{app}\Extensions"; Flags: ignoreversion recursesubdirs; Tasks: Protocol;
Source: "..\_Publish\*.json"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\_Publish\*.pri"; DestDir: "{app}"; Flags: ignoreversion

[Icons]
Name: "{autoprograms}\{#MyAppName}\Hurl"; Filename: "{app}\Hurl.exe"
Name: "{autoprograms}\{#MyAppName}\Hurl Settings"; Filename: "{app}\Hurl.Settings.exe"
Name: "{autodesktop}\Hurl"; Filename: "{app}\Hurl.exe"; Tasks: desktopicon
Name: "{autodesktop}\Hurl Settings"; Filename: "{app}\Hurl.Settings.exe"; Tasks: desktopicon

Name: "{autoprograms}\{#MyAppName}\{#MyAppName}"; Filename: "{app}\{#ExeLauncher}"; Comment: "{#AppDescription}"
Name: "{autoprograms}\{#MyAppName}\{#MyAppName} Settings"; Filename: "{app}\{#ExeSettings}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#ExeLauncher}"; Comment: "{#AppDescription}"; Tasks: desktopicon
Name: "{autodesktop}\{#MyAppName} Settings"; Filename: "{app}\{#ExeSettings}"; Tasks: desktopicon

[Registry]
#define RootKey "HKCU"
#define URLAssociate "HandleURL3721"

Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppName}"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities"; ValueType: string; ValueName: "ApplicationName"; ValueData: "{#MyAppName}"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities"; ValueType: string; ValueName: "ApplicationDescription"; ValueData: "Hurl -- select browser dynamically"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities"; ValueType: string; ValueName: "ApplicationIcon"; ValueData: "{app}\{#MyAppExeName},0"; Flags: uninsdeletekey deletevalue
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities"; ValueType: string; ValueName: "ApplicationDescription"; ValueData: "{#AppDescription}"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities"; ValueType: string; ValueName: "ApplicationIcon"; ValueData: "{app}\{#ExeLauncher},0"; Flags: uninsdeletekey deletevalue

Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities\StartMenu"; ValueType: string; ValueName: "StartMenuInternet"; ValueData: "{#MyAppName}"; Flags: uninsdeletekey deletevalue
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities\URLAssociations"; ValueType: string; ValueName: "http"; ValueData: "{#URLAssociate}"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities\URLAssociations"; ValueType: string; ValueName: "https"; ValueData: "{#URLAssociate}"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities\FileAssociations"; ValueType: string; ValueName: ".html"; ValueData: "{#URLAssociate}"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities\FileAssociations"; ValueType: string; ValueName: ".htm"; ValueData: "{#URLAssociate}"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities\FileAssociations"; ValueType: string; ValueName: ".pdf"; ValueData: "{#URLAssociate}"; Flags: uninsdeletekey

Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"; Flags: uninsdeletekey deletevalue
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"""; Flags: uninsdeletekey deletevalue
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#ExeLauncher},0"; Flags: uninsdeletekey deletevalue
Root: {#RootKey}; Subkey: "Software\Clients\StartMenuInternet\{#MyAppName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#ExeLauncher}"""; Flags: uninsdeletekey deletevalue

Root: {#RootKey}; Subkey: "Software\Classes\{#URLAssociate}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppName} URL"; Flags: uninsdeletekey
Root: {#RootKey}; Subkey: "Software\Classes\{#URLAssociate}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"; Flags: deletevalue
Root: {#RootKey}; Subkey: "Software\Classes\{#URLAssociate}\shell\open"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\{#MyAppExeName}"""; Flags: deletevalue
Root: {#RootKey}; Subkey: "Software\Classes\{#URLAssociate}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""; Flags: uninsdeletekey deletevalue
Root: {#RootKey}; Subkey: "Software\Classes\{#URLAssociate}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#ExeLauncher},0"; Flags: deletevalue
Root: {#RootKey}; Subkey: "Software\Classes\{#URLAssociate}\shell\open"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\{#ExeLauncher}"""; Flags: deletevalue
Root: {#RootKey}; Subkey: "Software\Classes\{#URLAssociate}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#ExeLauncher}"" ""%1"""; Flags: uninsdeletekey deletevalue

Root: {#RootKey}; Subkey: "Software\Classes\.html\OpenWithProgids"; ValueType: string; ValueName: "{#URLAssociate}"; ValueData: ""; Flags: uninsdeletevalue;
Root: {#RootKey}; Subkey: "Software\Classes\.htm\OpenWithProgids"; ValueType: string; ValueName: "{#URLAssociate}"; ValueData: ""; Flags: uninsdeletevalue;
Root: {#RootKey}; Subkey: "Software\Classes\.pdf\OpenWithProgids"; ValueType: string; ValueName: "{#URLAssociate}"; ValueData: ""; Flags: uninsdeletevalue;


Root: {#RootKey}; Subkey: "Software\RegisteredApplications"; ValueType: string; ValueName: "{#MyAppName}"; ValueData: "Software\Clients\StartMenuInternet\{#MyAppName}\Capabilities"; Flags: deletevalue uninsdeletevalue

Root: HKCR ; Subkey: "{#NameSmall}"; ValueType: string; ValueName: ""; ValueData: "URL:{#NameSmall}"; Tasks: protocol; Flags: uninsdeletekey deletevalue
Root: HKCR ; Subkey: "{#NameSmall}"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""; Tasks: protocol; Flags: uninsdeletekey
Root: HKCR ; Subkey: "{#NameSmall}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""; Tasks: protocol; Flags: uninsdeletekey deletevalue
Root: HKCR ; Subkey: "{#NameSmall}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#ExeLauncher}"" ""%1"""; Tasks: protocol; Flags: uninsdeletekey deletevalue


[CustomMessages]
OtherOptions=Other Options
CreateProtocol=Create Protocol (Required for Extension)

[Code]
function InitializeSetup: Boolean;
begin
InstallDotNetDesktopRuntime;
Result := True;
end;

0 comments on commit 1e3ce26

Please sign in to comment.