LocationForum •
Tutorials • Windows 7 - Adding subversion buttons to the explorer toolbar

|
Access: Admin
Total posts: 1069
Status: Offline
| |
|
Windows 7 - Adding subversion buttons to the explorer toolbar
|
|
If you've ever wanted to add custom buttons to the Windows Vista/7 explorer toolbar, here's how.
We're going to add 2 buttons to the toolbar that will allow us to use Tortoise SVN, specifically the Update and Commit functions.
Open regedit and navigate to this key
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}
You'll need to take ownership of this key before you'll be able to edit it.
Right click on the key > Permissions > Advanced > Owner tab > Select your username > tick the box 'Replace owner on subcontainers and objects' > hit Apply - OK > Select your username from the list and give it full control > Hit OK
Now below that key you want to create the following structure
Download this file to create all the necessary keys or use the code below.
Code:
Windows Registry Editor Version 5.00
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}] "CanonicalName"="Generic" "PerceivedType"=dword:00000000 "Theme"="default" "MostRelevant"="prop:System.Kind;System.DateModified;System.StructuredQuery.Virtual.Type;System.Size;System.ItemNameDisplay;System.ItemFolderPathDisplay;System.ItemAuthor;System.Keywords" "LayoutType"=dword:00000001
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\modifiers] "Library"="{5f4eab9a-6833-4f61-899d-31cf46979d49}" "LibraryFolder"="{da3f6866-35fe-4229-821a-26553a67fc18}" "SearchResults"="{7fde1a1e-8b31-49a5-93b8-6be14cfa4943}"
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\0]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\0\{c3b93fe3-9821-4c29-a189-95a9a00479e5}] "InfoTip"="Update Repository" "Title"="Update"
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\0\{c3b93fe3-9821-4c29-a189-95a9a00479e5}\shell]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\0\{c3b93fe3-9821-4c29-a189-95a9a00479e5}\shell\invoketask]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\0\{c3b93fe3-9821-4c29-a189-95a9a00479e5}\shell\invoketask\command] @="\"C:\\Program Files\\TortoiseSVN\\bin\\TortoiseProc.exe\" \"/command:update /path:%*\""
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\1]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\1\{b8000cd6-3c35-49ad-b44f-7fe987951be2}] "InfoTip"="Subversion Commit" "Title"="Commit"
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\1\{b8000cd6-3c35-49ad-b44f-7fe987951be2}\shell]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\1\{b8000cd6-3c35-49ad-b44f-7fe987951be2}\shell\invoketask]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksitemsselected\1\{b8000cd6-3c35-49ad-b44f-7fe987951be2}\shell\invoketask\command] @="\"C:\\Program Files\\TortoiseSVN\\bin\\TortoiseProc.exe\" \"/command:commit /path:%*\""
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\0]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\0\{6a56f6cc-1321-49b8-b7ab-94be35683404}] "InfoTip"="Update Repository" "Title"="Update"
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\0\{6a56f6cc-1321-49b8-b7ab-94be35683404}\shell]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\0\{6a56f6cc-1321-49b8-b7ab-94be35683404}\shell\invoketask]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\0\{6a56f6cc-1321-49b8-b7ab-94be35683404}\shell\invoketask\command] @="\"C:\\Program Files\\TortoiseSVN\\bin\\TortoiseProc.exe\" \"/command:update /path:%*\""
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\1]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\1\{37070d52-cfa5-4054-a5bf-be21c094c4ac}] "InfoTip"="Subversion Commit" "Title"="Commit"
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\1\{37070d52-cfa5-4054-a5bf-be21c094c4ac}\shell]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\1\{37070d52-cfa5-4054-a5bf-be21c094c4ac}\shell\invoketask]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\tasksnoitemsselected\1\{37070d52-cfa5-4054-a5bf-be21c094c4ac}\shell\invoketask\command] @="\"C:\\Program Files\\TortoiseSVN\\bin\\TortoiseProc.exe\" \"/command:commit /path:%*\""
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\topviews]
[hkey_local_machine\software\microsoft\windows\currentversion\explorer\foldertypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\topviews\{00000000-0000-0000-0000-000000000000}] "Name"="NoName" "Order"=dword:00000000 "ColumnList"="prop:0(34)System.ItemNameDisplay;0System.DateModified;0System.ItemTypeText;0System.Size;1System.DateCreated;1System.Author;1System.Keywords;1System.Title" "LogicalViewMode"=dword:00000001
For reference see these links
Code:
http://www.experts-exchange.com/articles/OS/Microsoft_Operating_Systems/Windows/Windows_7/Add-a-Delete-Button-to-the-Windows-7-Explorer-Toolbar.html
http://www.experts-exchange.com/articles/Programming/System/Windows__Programming/Add-a-Custom-Command-Button-to-the-Windows-7-Explorer-Toolbar.html
|
| 03:20pm 4th Feb 2010 | Last edited by Chris at 04:19am 1st Mar 2010 |
|
Access: Member
Total posts: 1
Status: Offline
| |
|
Windows 7 - Adding subversion buttons to the explorer toolbar
|
|
Thanks for the tip.
I keep getting "Access denied" when I try to change the permission of the key. Changing the permission on parent keys worked. I also tried running regedit as Administrator but I get the same message. Any thoughts?
Guy
|
| 06:37pm 1st Mar 2010 | |