Add or Remove Google Drive from Navigation Pane in Windows 10  

Page 17 of 41 FirstFirst ... 7151617181927 ... LastLast

  1. Posts : 15
    Windows 10
       #160

    Kbird and Brink,
    I too have seen the overlay icons not appearing in all places. I have been working on other updates and have discovered that it is just a matter of waiting long enough. Eventually, they all appear. Also, the sync program must be running.

    I also noticed that OneDrive recently updated and how has more spaces in front of the icon overlay names than Dropbox. This will push Google Drive further down the priority list. I have updated the batch file to include a menu to prioritize the Google Drive overlays by preceding them with the 0x01 character ... thus sorting before any names with leading spaces. So, while the cloud drives battle it out by adding more spaces to the front of the names, this will override all of them ... until they catch on to this idea, or Microsoft finally fixes the 15 icon overlay limit.

    My updated "
    Add Google Drive to Navigation Pane - Version 2018-03-05.bat" can be found here:
    https://drive.google.com/file/d/1f2h...ew?usp=sharing

    Regarding fixes ...
    https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
    Shows to add everything to HKEY_CURRENT_USER, nothing to HKEY_CLASSES_ROOT.

    The .reg files are writing values to HKEY_CLASSES_ROOT, which is global. I doesn't make sense to add the keys globally, as other users may not use Google Drive Sync.

    Registry virtualization makes this confusing to observe.

    1. reg add HKEY_CURRENT_USER\Software\Classes\CLSID\{3935ea0f-5756-4db1-8078-d2baf2f7b7b2} /f /ve /t REG_SZ /d "Google Drive"

    2. reg query HKEY_CURRENT_USER\Software\Classes\CLSID\{3935ea0f-5756-4db1-8078-d2baf2f7b7b2} /ve

    3. Virtual values are seen at: reg query HKEY_CLASSES_ROOT\CLSID\{3935ea0f-5756-4db1-8078-d2baf2f7b7b2}

    4. The virtual values override matching global registry values.

    Also:
    The "remove" sections in both the add and remove .reg files are missing the "-" in the keys and add the values instead of deleting them.

    You can observe the problem by using the new "View associated registry entries" feature in the batch file.

    The batch file was not running with administrator privileges and was not able to remove those HKEY_CLASSES_ROOT conflicting values.

    I have updated the batch file to delete the HKEY_CLASSES_ROOT keys as administrator as a cleanup process when adding or deleting the Google Drive at the Navigation Pane.

    I do not run the entire script as administrator so that restarting explorer does not accidentally elevate its privileges. The script will ask for permission only as needed.

    KBird, if you choose to take the time to try the batch file again, please let me know your results.

    Any feedback on how to improve this is appreciated. Thank you.
      My Computer


  2. Posts : 69,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #161

    Hello Rob, :)

    I have updated your .bat file in the tutorial.

    The remove .reg file in the tutorial below does indeed delete all the keys. The last line only deletes the value in the "NewStartPanel" key instead of the key though since it could contain other values added by something else.

    Code:
    [-HKEY_CURRENT_USER\Software\Classes\CLSID\{3935ea0f-5756-4db1-8078-d2baf2f7b7b2}]
    
    [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{3935ea0f-5756-4db1-8078-d2baf2f7b7b2}]
    
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
    "{3935ea0f-5756-4db1-8078-d2baf2f7b7b2}"=-

    I like the idea of using HKCU instead of HKCR though. I'll update the .reg files for that now.

    EDIT: The .reg files have now been updated to use HKCU.
    Last edited by Brink; 06 Mar 2018 at 12:29.
      My Computers


  3. Posts : 15
    Windows 10
       #162

    Hi Brink,
    In 64-bit_Add_Google_Drive_to_navigation_pane.reg, under "Remove old version" you have these keys, which are adding instead of removing.

    Code:
    [HKEY_CLASSES_ROOT\CLSID\{81539FE6-33C7-4CE7-90C7-1C7B8F2F2D41}]@="Google Drive Shell extension"
    
    [HKEY_CLASSES_ROOT\CLSID\{81539FE6-33C7-4CE7-90C7-1C7B8F2F2D41}\InProcServer32]@="C:\\Program Files (x86)\\Google\\Drive\\googledrivesync64.dll""ThreadingModel"="Apartment"

    In Remove_Google_Drive_from_navigation_pane.reg, you are only removing from HKEY_CURRENT_USER. The HKEY_CLASSES_ROOT values remain.


    I found this by running the .reg files and then using the batch file "View" to list all the registry values. After using the add and remove .reg files, it was easy to see what was left over.


    In your reg files, I suggest to have the same "Remove old version" sections in all of them. That should help ensure the cleanup is done. You could double check the :CleanupOldEntries subroutine in the batch file for what I have found to remove.

    - Rob
      My Computer


  4. Posts : 69,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #163

    Ah, I thought you were referring to the "Remove_Google_Drive_from_navigation_pane.reg" file instead.

    All .reg files have been updated to only have the new version. This is to make a clean cut with the old version, and start fresh.

    If I included removing the older HKCR locations, then standard users will not be able to merge the .reg file without needing to provide admin password.

    Most folks will have the old remove .reg saved with the old add .reg file. If not, they can use your .bat file to remove the old version before adding the new.
      My Computers


  5. Posts : 575
    Windows 11 Pro
       #164

    Hi Shawn,

    You might want to include a note for anyone using Option 1 who wants to remove Google Drive from the navigation pane do so before you remove Backup and Sync. I found out the hard way and had to reinstall Backup and Sync then remove Google Drive and finally remove Backup and Sync once again.

    Micharel T
      My Computer


  6. Posts : 69,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #165

    Hello Michael, :)

    I'll add the note now for Option 1. Folks should still be able to remove Google Drive from the navigation pane using Option 2 though.
      My Computers


  7. Posts : 15
    Windows 10
       #166

    I have updated the batch file to check if Google Drive Sync is not installed and Google Drive had been added to the Navigation Pane, remove it.

    https://drive.google.com/file/d/1viT...ew?usp=sharing
      My Computer


  8. Posts : 69,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #167

    Thank you Rob. :)

    The .bat file has been updated in Option 1.
      My Computers


  9. Posts : 2,324
    Win10
       #168

    Thanks Guys for staying on top of this , I have not tried the new .bat File yet , as I tend not to "fix it" if it ain't broke :) and Shawn's last fix for me is working fine , including the Overlay Icons.

    KB
      My Computers


  10. Posts : 3
    Win10
       #169

    So close but yet so far


    Hello, I've been trying to follow this long and winding road to Google Drive Happiness and I'm not having any luck.

    I have a Win10 laptop with a fresh install of Google Back-up and Sync all to the default folders. I ran the .BAT file and I have "Google Drive" in my Windows File Explorer. When I try to access it it told me that "Google Drive could not be found it may be deleted or moved.." I rebooted, got the same error. So I looked at the message and from what I can tell it was looking in the User folder for a "Google Drive" folder that was not there. So I created that folder and the error goes away but now all I do it open that empty folder and never do get to the items in the real Google Drive.

    Do I need to Sync the Google Drive items to the local machine so I get an actual Google Drive folder not a fake one that I just created? I'd like to leave them all up in the magical cloud because I don't have much disk space. Any wisdom that can be shared would be greatly appreciated.
      My Computer


 

Tutorial Categories

Add or Remove Google Drive from Navigation Pane in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:51.
Find Us




Windows 10 Forums