From ac0be86cb640184dfc0a5501d8d7970b50c406da Mon Sep 17 00:00:00 2001 From: Yue Lin Ho Date: Thu, 10 Aug 2017 01:39:05 +0800 Subject: [PATCH] installer: Add registry for Windows Libraries See https://github.com/git-for-windows/git/issues/1229 Signed-off-by: Yue Lin Ho --- installer/install.iss | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/installer/install.iss b/installer/install.iss index be14c7c078..61fce2fc01 100644 --- a/installer/install.iss +++ b/installer/install.iss @@ -1998,7 +1998,10 @@ begin (StringChangeEx(Cmd,'%1','%v.',false)<>1) or (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_shell','',Msg)) or (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_shell\command','',Cmd)) or - (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_shell','Icon',Ico)) then + (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_shell','Icon',Ico)) or + (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\LibraryFolder\background\shell\git_shell','',Msg)) or + (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\LibraryFolder\background\shell\git_shell\command','',Cmd)) or + (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\LibraryFolder\background\shell\git_shell','Icon',Ico)) then LogError('Line {#__LINE__}: Unable to create "Git Bash Here" shell extension.'); end; @@ -2012,7 +2015,10 @@ begin (StringChangeEx(Cmd,'%1','%v.',false)<>1) or (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_gui','',Msg)) or (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_gui\command','',Cmd)) or - (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_gui','Icon',Ico)) + (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\Directory\Background\shell\git_gui','Icon',Ico)) or + (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\LibraryFolder\Background\shell\git_gui','',Msg)) or + (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\LibraryFolder\Background\shell\git_gui\command','',Cmd)) or + (not RegWriteStringValue(RootKey,'SOFTWARE\Classes\LibraryFolder\Background\shell\git_gui','Icon',Ico)) then LogError('Line {#__LINE__}: Unable to create "Git GUI Here" shell extension.'); end;