Last active
July 23, 2024 18:11
-
-
Save realslacker/d4901a8295baf979c29dbb55d4e6e034 to your computer and use it in GitHub Desktop.
Add or remove Nextcloud/OwnCloud icon to Explorer file navigation (like Dropbox/OneDrive/G-Drive) for a shortcut to your Nextcloud folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; NOTE, this file uses a GUID generated here | |
; https://www.guidgenerator.com/online-guid-generator.aspx | |
; IF you are going to have multiple Nextcloud folders in your tree you | |
; will need to make a new GUID for each folder and find/replace the | |
; value "38d6662b-09f4-4e73-bf61-b0e512ec41e1" with your unique GUID | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}] | |
; Name of the folder, also see last line below | |
@="Nextcloud" | |
; Sort order, lower number for higher in list | |
"SortOrderIndex"=dword:00000040 | |
; 1 for shown, 0 for not shown | |
"System.IsPinnedToNamespaceTree"=dword:00000001 | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}\DefaultIcon] | |
; folder icon, pulled the Nextcloud favicon.ico from nextcloud.com | |
@="C:\\Users\\USERNAME\\Nextcloud\\favicon.ico" | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}\InProcServer32] | |
@=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,54,00,25,\ | |
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\ | |
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00 | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}\Instance] | |
"CLSID"="{0E5AAE11-A475-4c5b-AB00-C66DE400274E}" | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}\Instance\InitPropertyBag] | |
"Attributes"=dword:00000011 | |
; this is the folder we're pointing at | |
"TargetFolderPath"="C:\\Users\\USERNAME\\Nextcloud" | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}\ShellFolder] | |
"Attributes"=dword:f080004d | |
"FolderValueFlags"=dword:00000028 | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] | |
"{38d6662b-09f4-4e73-bf61-b0e512ec41e1}"=dword:00000001 | |
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}] | |
; Name of the folder again | |
@="Nextcloud" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; NOTE, this file uses a GUID generated here | |
; https://www.guidgenerator.com/online-guid-generator.aspx | |
; IF you have multiple Nextcloud folders in your tree you will need to | |
; delete the GUID for each folder by find/replacing the value | |
; "38d6662b-09f4-4e73-bf61-b0e512ec41e1" with your unique GUID | |
[-HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}] | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] | |
"{38d6662b-09f4-4e73-bf61-b0e512ec41e1}"=- | |
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}] |
As of client 2.5, the icon location and name have been updated to C:\Program Files (x86)\Nextcloud\nextcloud.ico
If you are like me stuck with Windows 7 on your work laptop this will not work.
I had the problem upgrading from 2.5 to 2.6, I've made an updated version of this script here:
https://gist.github.com/Zelphy/d2f10d9229323c11ba751206c4fff909
Changes:
- Updated icon path (https://gist.github.com/realslacker/d4901a8295baf979c29dbb55d4e6e034#gistcomment-2774924)
- Dynamic username (no longer requires you to manually change the user name)
@Zelphy I don't think this is needed with 2.6... I'm now getting a Nextcloud icon in Explorer by default.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be something that is by default installed with the windows client. Like it!
THX