From 75afea77dd6acf5012217a63a0cabe00da102bb2 Mon Sep 17 00:00:00 2001 From: Derick Payne Date: Fri, 29 May 2020 23:09:02 +0200 Subject: [PATCH] Setup script fix --- Build/notepad3_setup.iss | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Build/notepad3_setup.iss b/Build/notepad3_setup.iss index 3efc43588..6fa8a78a7 100644 --- a/Build/notepad3_setup.iss +++ b/Build/notepad3_setup.iss @@ -501,10 +501,10 @@ begin if CurStep = ssPostInstall then begin if IsTaskSelected('set_default') then RegWriteStringValue(HKLM, IFEO, 'Debugger', ExpandConstant('"{app}\Notepad3.exe" /z')); - if IsTaskSelected('remove_default') then begin + if IsTaskSelected('remove_default') then RegDeleteValue(HKLM, IFEO, 'Debugger'); RegDeleteKeyIfEmpty(HKLM, IFEO); - if IsTaskSelected('set_openwith') then begin + if IsTaskSelected('set_openwith') then RegWriteStringValue(HKCR, '*\shell\Open with Notepad3', 'Icon', ExpandConstant('{app}\Notepad3.exe,0')); RegWriteStringValue(HKCR, '*\shell\Open with Notepad3\command', '', ExpandConstant('"{app}\Notepad3.exe" "%1"')); if IsTaskSelected('remove_openwith') then begin @@ -513,7 +513,6 @@ begin // Always add Notepad3's AppUserModelID and the rest registry values AddReg(); end; - end;