"Dex" <> wrote in message news:jpfb3f$839$...
> On 21/05/2012 20:34, Dave-UK wrote:
>>
>> "Dex" <> wrote in message news:jpdvta$815$...
>>> Cannot select programs to be the default program to open files with.
>>>
>>>
>>> Right click a .txt file and select open with, I get a choice of
>>> wordpad, notepad or notepad++. If I select 'choose default program...'
>>> an error comes up with 'This file does not have a program associated
>>> with it to perform this action. Please install a program or, if one is
>>> already installed, create an association in the Default Programs
>>> control panel'.
>>>
>>> Even although three programs are associated with it.
>>>
>>> The Default Programs control panel only has certain programs in it to
>>> use as the default (in this case Notepad++ isn't visible, only
>>> Wordpad) and they are either programs that have a default built in to
>>> them or programs I don't want as default.
>>>
>>> This happens with other file types, like pdf, mp3, ini, rar, zip....
>>>
>>>
>>> How do I get Win7 Ultimate to choose the default program without
>>> mucking about editing registry entries all the time?
>>>
>>>
>>>
>>
>> This thread might help:
>> http://www.vistax64.com/general-disc...ror-vista.html
>>
>>
>
> I did see that before posting here, but I don't quite understand the
> answer given.
>
> He says \DefaultIcon \+shell \+openas \command \+opendlg \command are
> subfolders of HKEY_CLASSES_ROOT\Unknown, but you cant have 2 subfolders
> with the same name.
>
> Do all of them have %SystemRoot%\System32\shell32.dll,OpenAs_RunDLL %1
> in them, or other string values?
>
There are two 'command' keys but they are sub-keys of different keys so
they can have the same name.
Here's my HKCR\Unknown tree:
http://www.admin1.myzen.co.uk/Unknown.PNG
And the values are these:
HKCR\Unknown
(Default) REG_SZ (value not set)
AlwaysShowExt REG_SZ blank
QueryClassStore REG_SZ blank
TypeOverlay REG_SZ blank
HKEY_CLASSES_ROOT\Unknown\DefaultIcon
(Default) REG_Expand_SZ %SystemRoot%\System32\shell32.dll,0
HKEY_CLASSES_ROOT\Unknown\shell
(Default) REG_SZ openas
HKEY_CLASSES_ROOT\Unknown\shell\openas
Default) REG_SZ (value not set)
MultiSelectModel REG_SZ Single
HKEY_CLASSES_ROOT\Unknown\shell\openas\command
(Default) REG_Expand_SZ
%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1
DelegateExecute REG_SZ {e44e9428-bdbc-4987-a099-40dc8fd255e7}
HKEY_CLASSES_ROOT\Unknown\shell\opendlg
(Default) REG_SZ (value not set)
LegacyDisable REG_SZ blank
MultiSelectModel REG_SZ Single
HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command
(Default) REG_Expand_SZ
%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1