-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing volume Icon change Helper #51
Comments
I took the liberty to rename your issue, I like dedicated issue when possible 😄 Two ways that I know to change drive icon:
On current OS versions, I don't see any reason to use the hard way as setting registry key do the trick and work well with Dokan drives too. |
The icon can be specified in the newly mounted volume FS, please refer to the link below https://msdn.microsoft.com/en-us/library/windows/desktop/cc144102(v=vs.85).aspx basically add an icon file and a desktop.ini file to the root of the volume and set the system attribute of both files, I believe the hidden attribute is optional. [Screen shot of custom icon replacing folder icon] From: shlatchz [mailto:notifications@github.com] Hello, Dokan vs. CBFShttps://www.eldos.com/cbfs/dokan-to-cbfs.php Thanks! — |
I think the same key exists in HKCU. You can't change values of HKLM if you are not an administrator. Overlay shell is used for other purposes (synced, pending, deleted) like state of a file. If the software is running only once and the drive is visible to all users the HKLM must be used. In generally the concept of desktop.ini and autorun.inf should also be ckecked. No permission issues. |
I tried adding a value to
and it works great, but the new icon changes both the icons (1), (2) in the following image, when I want them to be different. I want to configure an icon for (1) and another for (2). Thanks! |
Right, thanks for the additional information everybody. @shlatchz That's not possible as far as I know. If you visually want a different icon you will only be able to do that on the same ico file based on the different embedded sizes. |
It worked! Thanks 👍 |
This feature request is valid 👍 But the Dokan team have other issues to manage for now. So if someone have a great ❤️ to propose a pull request. |
I was just trying to do this, I set the file attributes to
But for some reason it does not show that icon, even though the file on the drive shows it as a thumbnail. When I copy the icon off the Dokan drive it has the same hash as the source file, so I do not think that would be the problem. On the same machine, mounting the Windows 10 ISO does show the custom icon that it has in autorun.inf, the only difference I see is the way they are mounted and the fact that the Windows ISO is using an EXE for the icon. |
Hello,
I was wondering if it's possible to implement missing features, such as InstallIcon() and SetIcon() for changing the disk's icon.
Dokan vs. CBFS
Thanks!
The text was updated successfully, but these errors were encountered: