April 26, 2023, 7:58am
I tried every possible combination of params to write-resource to no avail. All I want to do is create a folder in HKEY_CLASSES_ROOT, and write entries into it.
-> writes a mred.ini file.
I tried with and without #:type. Either I get the mred.ini file in home, or I get an entry directly in HKEY_CLASSES_ROOT, but never a folder with any entry in it.
I'm trying to write entries similar to this post:
Launching Applications Using Custom Browser Protocols - SG Developer (shotgridsoftware.com)
April 26, 2023, 3:17pm
It may have something to do with permissions on
HKEY_CLASSES_ROOT. Like you, I was unable to get
write-resource to create any subkeys (the term for registry “folders”) in that section.
However, it worked as expected when using a different section:
April 26, 2023, 4:50pm
Confirming this theory: when I ran DrRacket “as Administrator”, then I
was able to create subkeys under
HKEY_CLASSES_ROOT like so:
This is on Win 10 Pro 22H2.
April 26, 2023, 5:34pm
Oh that was as simple as that! Thanks a bunch!
April 26, 2023, 10:23pm
I feel like the docs for
write-resource are a bit misleading, so I made
a PR to update them.