From 82dc1b49acf6f16bd4f8ae2dcf87eca6277404c5 Mon Sep 17 00:00:00 2001 From: "Vladimir.Orlov" Date: Thu, 11 Jul 2019 16:09:18 +0300 Subject: [PATCH] win installer: updated registry commands for "Edit with.." IDEA-217164 Installing IntelliJIdea and Android Studio Missing Reg Entries GitOrigin-RevId: 37ecda2f1d5ab03fed7e8fe5389e6b9583f09960 --- build/conf/nsis/idea.nsi | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/build/conf/nsis/idea.nsi b/build/conf/nsis/idea.nsi index 1367c14b538e..bb0b2caefb05 100644 --- a/build/conf/nsis/idea.nsi +++ b/build/conf/nsis/idea.nsi @@ -1051,19 +1051,7 @@ FunctionEnd Function UpdateContextMenu ${LogText} "" - ${LogText} "Update Context Menu" - - StrCpy $0 "SHCTX" - StrCpy $1 "Software\Classes\*\shell\Open with ${MUI_PRODUCT}" - StrCpy $2 "Icon" - StrCpy $3 "$productLauncher" - call OMWriteRegStr - - StrCpy $0 "SHCTX" - StrCpy $1 "Software\Classes\*\shell\Open with ${MUI_PRODUCT}\command" - StrCpy $2 "" - StrCpy $3 '"$productLauncher" "%1"' - call OMWriteRegStr + ${LogText} "Update Context Menu - Open with PRODUCT action for folders" ; add "Open with PRODUCT" action for folders to Windows context menu StrCpy $0 "SHCTX" @@ -1154,7 +1142,20 @@ command_exists: Call OMWriteRegStr ; add "Edit with PRODUCT" action for files to Windows context menu + ${LogText} "" + ${LogText} "Update Context Menu - Edit with PRODUCT" + StrCpy $0 "SHCTX" + StrCpy $1 "Software\Classes\*\shell\Open with ${MUI_PRODUCT}" + StrCpy $2 "Icon" + StrCpy $3 "$productLauncher" + call OMWriteRegStr + + StrCpy $1 "Software\Classes\*\shell\Open with ${MUI_PRODUCT}\command" + StrCpy $2 "" + StrCpy $3 '"$productLauncher" "%1"' + call OMWriteRegStr + StrCpy $1 "Software\Classes\*\shell\Open with ${MUI_PRODUCT}" StrCpy $2 "" StrCpy $3 "Edit with ${MUI_PRODUCT}"