From e7876a0e0b13e709bfde6ae9d2d4d55b9a7d1ba4 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Thu, 3 Aug 2023 16:29:07 -0400 Subject: [PATCH] #2046 Add Missing Registry Logic --- config/__init__.py | 2 +- resources/EDMC_Installer_Config_template.txt | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/config/__init__.py b/config/__init__.py index 2db356d2..e9079c28 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -52,7 +52,7 @@ appcmdname = 'EDMC' # # Major.Minor.Patch(-prerelease)(+buildmetadata) # NB: Do *not* import this, use the functions appversion() and appversion_nobuild() -_static_appversion = '5.9.1' +_static_appversion = '5.9.2' _cached_version: Optional[semantic_version.Version] = None copyright = '© 2015-2019 Jonathan Harris, 2020-2023 EDCD' diff --git a/resources/EDMC_Installer_Config_template.txt b/resources/EDMC_Installer_Config_template.txt index ff00f4cf..d8b53e92 100644 --- a/resources/EDMC_Installer_Config_template.txt +++ b/resources/EDMC_Installer_Config_template.txt @@ -65,3 +65,15 @@ begin end; end; end; + + +[Registry] +; Create the registry key for the custom file type +Root: HKCR; Subkey: "edmc"; Flags: uninsdeletekey +; Create the registry values for the custom file type +Root: HKCR; Subkey: "edmc"; ValueType: string; ValueName: ""; ValueData: "{#MyAppName}"; Flags: uninsdeletevalue +Root: HKCR; Subkey: "edmc\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"; Flags: uninsdeletevalue +Root: HKCR; Subkey: "edmc\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""; Flags: uninsdeletevalue + +; Register the URL protocol handler +Root: HKCR; Subkey: "edmc"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""; Flags: uninsdeletevalue