1
0
- I want to set up a script, where the base executable is the interpreter, to be selected in the Open With dialog.
- I already know the information in this question: How do you add a non-program-files application to the OpenWith dialog box?
- And I know the
FriendlyName
in theApplications/interpreter.exe/shell/open
key trick to give it a better name.
Are there other custom registry settings for the Open With items?
What I'm wondering is if I can use the registry to give a custom icon instead of using the interpreters icon?
Responding to the request to dump a registry key, here it is (anonymized):
C:\>reg query "HKCR\Applications\scriptapp.exe" /s
HKEY_CLASSES_ROOT\Applications\scriptapp.exe
(Default) REG_SZ ScriptApp
HKEY_CLASSES_ROOT\Applications\scriptapp.exe\DefaultIcon
(Default) REG_EXPAND_SZ C:\Util\icos.dll,1
HKEY_CLASSES_ROOT\Applications\scriptapp.exe\shell
HKEY_CLASSES_ROOT\Applications\scriptapp.exe\shell\open
DefaultIcon REG_SZ C:\Util\icos.dll,1
FriendlyAppName REG_SZ ScriptApp
HKEY_CLASSES_ROOT\Applications\scriptapp.exe\shell\open\command
(Default) REG_SZ "C:\Util\strawberry\perl\bin\wperl.exe" "c:\Util\Scripts\launch_master.pl"
Do you mean a registry hack like in this article? If not, what do you see in regedit under the HKEY_CLASSES_ROOT entry for your Open With item?
– harrymc – 2014-08-06T12:46:10.303@harrymc, that has to do with giving the file type an icon. I want to know if I can set the icon in an OpenWith list or dialog. Because the interpreter of the script is the executable, I just get the interpreter's icon. – Axeman – 2014-08-06T13:11:50.743
1
Do you want to change the icon for the interpreter? You can add an icon to its exe using Resource Hacker. See also this article. Placing the icon as first will make it the default.
– harrymc – 2014-08-06T14:25:47.440Did you try setting a
– and31415 – 2014-08-06T15:28:32.227DefaultIcon
as explained in the following article? Application Registration@and31415, cool article, but doesn't seem to have worked. – Axeman – 2014-08-07T00:42:32.697
It looks like the documentation isn't entirely correct/up-to-date. For example, as of Windows XP, the
– and31415 – 2014-08-07T09:24:44.257FriendlyAppName
registry value needs to be placed under theshell\open
subkey in order to work. I tried using Process Monitor to check whether theDefaultIcon
key was being read, but it doesn't seem the case. Could you post the output of thereg query "HKCR\Applications\interpreter.exe" /s
command, just in case?Try resetting your icon cache (end task explorer.exe, delete
IconCache.db
, run explorer.exe) – Jason – 2014-08-07T17:37:36.453Please answer my second comment. – harrymc – 2014-08-07T19:22:14.233
@harrymc, I do not want to change the icon of the script interpreter, that seems overkill. – Axeman – 2014-08-07T20:32:57.560