Default program

D

Dex

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?
 
G

Gene E. Bloch

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.
There is a browse button in the lower right hand corner of the Open with
panel. Use it.

Be careful that that "Always use this program" box is checked or
unchecked the way you want it.
 
D

Dex

There is a browse button in the lower right hand corner of the Open with
panel. Use it.
The open with panel you refer to doesn't appear, just the error.
 
G

Gene E. Bloch

The open with panel you refer to doesn't appear, just the error.
OK, I see that I didn't properly understand what you said; I apologize
for that.

My only guess is that the related system software is messed up. Running
SFC might help, or even a malware scan might be needed.

*But* your best bet might be to wait for advice from someone else :)

....Meaning I am not an expert, or even mildly knowledgeable, here.
 
D

Dave-UK

Dex said:
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-discussion/202928-open-choose-default-program-error-vista.html
 
D

Dex

J

J. P. Gilliver (John)

As others have said, there should be a browse option at the bottom of
the default list. But another way - though certainly not available with
all software - is to open the software in question, then poke around in
its options to see if there's an "always use this for .pdf files" or
"make this the default for ..." or whatever.
[]
[]
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.
I suspect the space shouldn't be there, and that that's a registry edit
tip. (It _shouldn't_ be necessary to registry edit to fix this sort of
problem.)
 
D

Dave-UK

Dex said:
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
 
D

Dex

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
Copied your keys and values, apart from the last one.

When I create HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command it has a
default REG_SZ which I cant delete or rename.

Created another expandable string value REG_EXPAND_SZ with (Default)
name and the rundll32.exe... value

Still getting the error.

I have a 64 bit version of 7 Ultimate if that is any use.
 
D

Dave-UK

Dex said:
Copied your keys and values, apart from the last one.

When I create HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command it has a
default REG_SZ which I cant delete or rename.

Created another expandable string value REG_EXPAND_SZ with (Default)
name and the rundll32.exe... value

Still getting the error.

I have a 64 bit version of 7 Ultimate if that is any use.
I've checked on a 64 bit box and the keys are the same as 32 bit.
When you say you've copied my reg values that implies something was
missing or different with yours ?

I don't suppose it will make any difference but I've exported the
HKCR\Unknown reg key from a 64 bit Win7 box if you want to try it:
http://www.admin1.myzen.co.uk/Unknown.zip

I'm guessing you've already tried a system restore.
If you create a new temporary account does it still happen there ?
 
D

Dex

I've checked on a 64 bit box and the keys are the same as 32 bit.
When you say you've copied my reg values that implies something was
missing or different with yours ?
Only the DefaultIcon key was present, no subkeys.
I don't suppose it will make any difference but I've exported the
HKCR\Unknown reg key from a 64 bit Win7 box if you want to try it:
http://www.admin1.myzen.co.uk/Unknown.zip

I'm guessing you've already tried a system restore.
If you create a new temporary account does it still happen there ?

That did the trick, must have done something wrong when copying.

Cheers.
 
3

3ogdy

Dex wrote on 05/21/2012 14:01 ET
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 erro
comes up with 'This file does not have a program associated with it t
perform this action. Please install a program or, if one is alread
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 t
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 o
programs I don't want as default

This happens with other file types, like pdf, mp3, ini, rar, zi


How do I get Win7 Ultimate to choose the default program without muckin
about editing registry entries all the time
Please contact us at (e-mail address removed) and we'll help you with you
problem.
 
G

G. Ross

3ogdy said:
Dex wrote on 05/21/2012 14:01 ET :
8?>< Snip

In the Default Programs panel, go to the second item: Associate a file
type with a program. Go down to .txt, for instance, and click on it.
Several programs will be shown. If the program is NOT shown, click
on browse and find it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top