Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Shell Icon Overlay - Batch File Solution?  (Read 6190 times)

0 Members and 1 Guest are viewing this topic.

rjbinney

    Topic Starter


    Adviser
  • Disarmingly Good-looking
  • Experience: Familiar
  • OS: Windows 11
Shell Icon Overlay - Batch File Solution?
« on: June 16, 2017, 01:17:19 PM »
You know the little overlay in the lower left of an icon that shows you if it's a shortcut, or its update progress? Yeah, I really like that.

Dropbox has a little green one that shows you it's updated, OneDrive has one that shows you if the file is updated, or not; more specifically, it also shows you if there are any sync conflicts (which is great when many people share a drive).

Trouble is, Dropbox and OneDrive don't play nicely nicely in Windows 10. Windows can only accept so many overlays at once, and it applies them in the order that they appear in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers

Because Dropbox comes first in alpha order over OneDrive, it fills all of the slots with Dropbox overlays, and then you don't get any OneDrive overlays.

The "fix" is easy - rename all of the overlays, so the first bunch are the ones you want: there are a few Dropbox ones I don't need, so I can edit the names accordingly, putting OneDrive first, and everything is groovy.

EXCEPT.

Except, except, except.

Every time Dropbox releases an update - which is weekly - it rewrites the g-d registry so I have to go in and delete the new overlays.

So I have two questions/options:

1) Can I somehow get Dropbox to install its release and NOT touch that part of the registry?

or

b) Can I write a batch file that I just double-click after a Dropbox update and it fixes everything for me?


Thanks
Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.

rjbinney

    Topic Starter


    Adviser
  • Disarmingly Good-looking
  • Experience: Familiar
  • OS: Windows 11
Re: Shell Icon Overlay - Batch File Solution?
« Reply #1 on: August 24, 2017, 02:57:23 PM »
BUMP
Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.

DaveLembke



    Sage
  • Thanked: 662
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Shell Icon Overlay - Batch File Solution?
« Reply #2 on: August 24, 2017, 03:18:12 PM »
I havent tested this with Windows 10, but you should be able to undo the changes via a merge. More info here: https://superuser.com/questions/1023221/adding-a-registry-key-via-batch-file

Be very careful when messing with registry. You can mess it up pretty badly with bad or missing keys etc.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Shell Icon Overlay - Batch File Solution?
« Reply #3 on: August 24, 2017, 03:19:11 PM »
For  reference:  the maximum number of said overlays is 15. Not for any specific reason, it seems- it was decided in Win95 and they've just not sat down with a cold one to work out a better method. Realistically, overlays aren't very useful though which may be why they've not gone to that effort.

Quote
Can I somehow get Dropbox to install its release and NOT touch that part of the registry?

You could use the permissions settings and make the ShellIconOverlayIdentifiers key unwritable from any account. Of course this would apply to more than just dropbox, too.

Quote
Can I write a batch file that I just double-click after a Dropbox update and it fixes everything for me?
Yes, but I get the suspicion your question is really "Can somebody else write a batch file that I just double-click after a Dropbox update and it fixes everything for me?" :P

You can use REG DELETE in said batch to delete the unwanted entries that appear, and run it after installing dropbox.
I was trying to dereference Null Pointers before it was cool.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Shell Icon Overlay - Batch File Solution?
« Reply #4 on: August 24, 2017, 03:23:55 PM »
Also adding on to Dave's method above you can use a reg file. You will have to change it though.

if you export the ShellIconoverlayIdentifiers key, you can change the resulting .REG file in a text editor and add a hyphen to the front of the keys you want to remove, in the square brackets:

Code: [Select]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\ OneDrive1]

would delete the OneDrive1 registry value. They usually come paired with @= lines which aren't needed for this and can be removed.
I was trying to dereference Null Pointers before it was cool.

rjbinney

    Topic Starter


    Adviser
  • Disarmingly Good-looking
  • Experience: Familiar
  • OS: Windows 11
Re: Shell Icon Overlay - Batch File Solution?
« Reply #5 on: August 24, 2017, 03:27:08 PM »
Yes, but I get the suspicion your question is really "Can somebody else write a batch file that I just double-click after a Dropbox update and it fixes everything for me?" :P
Oh, you cynic.

Well, yeah, I guess if something has already been written that I can crib, that would be great...

I really find the overlays useful - knowing the sync status of various files, particularly when I'm collaborating on a bunch of different stuff with a bunch of different people, is helpful.

I had read about the "First 15" rule, and what happens is, Dropbox fills the first ten slots - but those first ten slots AREN'T the overlays that Dropbox seems to use! That is to say, I have re-named 15 overlays for 1D and DB, and they ALWAYS work. Then, when Dropbox does its update, it drops ten more at the "top" of the list, and then I delete them, and I see no change in functionality.

I didn't know I could change the permissions for a single registry key. I might actually try that.

And, Dave, I will have to think about your post... Anything titled "SuperUser" tends to intimidate me.

Thanks! Will report back.
Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.

DaveLembke



    Sage
  • Thanked: 662
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Shell Icon Overlay - Batch File Solution?
« Reply #6 on: August 24, 2017, 03:40:32 PM »
Quote
And, Dave, I will have to think about your post... Anything titled "SuperUser" tends to intimidate me.

 ;D