From 1e3ce2607856567355ea7916a76816f95ce68dbc Mon Sep 17 00:00:00 2001 From: Chanakya Date: Sun, 18 Aug 2024 14:05:55 +0530 Subject: [PATCH] Updates to Installer.iss --- Utils/install_dotnet.iss | 4 +-- Utils/installer.iss | 61 ++++++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 29 deletions(-) diff --git a/Utils/install_dotnet.iss b/Utils/install_dotnet.iss index 90bb2ca9..700b3bd8 100644 --- a/Utils/install_dotnet.iss +++ b/Utils/install_dotnet.iss @@ -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" diff --git a/Utils/installer.iss b/Utils/installer.iss index aeef05ad..09c00b02 100644 --- a/Utils/installer.iss +++ b/Utils/installer.iss @@ -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}} @@ -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" @@ -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; \ No newline at end of file