David Candy said:
You missed the point of the whole post. I did go to great
lengths to explain it.
Where it refers to mailto you put in http, .htm, .html, htmlfile
which are the 4 main registry keys. Though .htm and .html should
point to htmlfile which is what you'd change.
http determines what browser is the default. htmlfile (and thus
.htm and .html) is what happen if you open a web page stored on
your hard drive.
Knowing the above reread it again. I've gone to great length
explaining how per user and per machine work. Seeing you
apparently could already edit the registry I only added the
extra info using OE as an example (cause I had just written it
for someone else).
If you recall what I want is for the administrator to default to
Opera and for a user to default to IE6 when htm files are opened.
I have spent a few days just getting up to speed with some of the
slightly advanced things you posted about in these two messages:
<<
The bit I am still uncertain about lies in the text above. You
write: "Though .htm and .html should point to htmlfile which is what
you'd change." I don't understand this because when I go to
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html
I see only this
(Default) REG_SZ Opera.HTML
Content Type REG_SZ text/html
Perceived Type REG_SZ text
Is this what you mean by "point to". And where is ".htm"?
THis is making me very confused. To recap, all I want is for the
administrator to default to Opera and for a user to default to IE6.
Can you or someone else advise me on this because editing the
registry is not the same thing as understanding its structure. I can
edit it but the structure is a bit beyond me.
Jane
==============
Using a slightly edited version of your text (copied below for
convenience) I found htmfile and that was ok. But
++++++++++++++
Depends how you do it if it applies to all users or per user. This is
a post I did about the same issue but OE. Though I'm only addressing
the per user part of it.
File Associations, incl mailto (OE vs OL), are stored in the registry
under
HKEY_CLASSES_ROOT (aka HKCR)
But there is actually no such thing as HKCR, it is a combined view of
these two keys
HKEY_LOCAL_MACHINE\SOFTWARE\Classes
and
HKEY_CURRENT_USER\Software\Classes
(the root key is referred to as HKLM and HKCU)
Editing HKCR edits the branch under HKLM unless there is the same
key/value under HKCU in which case HKCU is edited. HKCU settings
overrides HKLM.
Therefore you need to set
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mailto
to the system default, and duplicate it with user specific changes to
HKEY_CURRENT_USER\SOFTWARE\Classes\mailto
where it won't exist unless a user has created it
So to set your defaults for OE, type regedit in Start - Run, go to
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mailto
Right click the key and choose export.
Set the default for Outlook, right click the same key, and choose
export with a different name.
Open both files in notepad, Edit menu - Replace. Put
HKEY_LOCAL_MACHINE
for the find string and
HKEY_CURRENT_USER
for the replace.
Any user now needs to double click one or the other file to set their
user defaults.
+++++++++++++++
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open
@="\"d:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome"
[HKEY_CURRENT_USER\Software\Classes\http\shell\open\command]
@="notepad %1"
The above shows a system default of IE, but the current users default
is notepad (I only have one browser so have to substitute notepad for
opera - notepad is a hopeless browser).
If the user logs on and looks at
HKEY_CLASSES_ROOT\http\shell\open\command
they will see notepad. If they edit it it will change
HKEY_CURRENT_USER\Software\Classes\http\shell\open\command
However if a user logs on who does not have the
HKEY_CURRENT_USER\Software\Classes\http\shell\open\command
in their registry then looking at
HKEY_CLASSES_ROOT\http\shell\open\command
will show IE and editing the above changes will change
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open
Current user overrides local machine.
But this is just a rehash of what I said with OE.