S
Steven Burn
</snip>Michael J. Leaver said:It doesn't read anything from the registry to open your default browser.
Firebird, not IE, is my default browser and InstallSpy correctly opens that
to use view the log file, or any HTML file.
InstallSpy asks the *shell* (i.e. explorer, not internet explorer) to open
the log file (using the Windows function ShellExecute). It is Windows itself
that decides what program to use to open the log file, not InstallSpy. If
Windows is opening IE and not OB1 then it appears you have either got
something setup wrongly, or there is a bug in Windows itself.
Actually, Explorer is the Windows Shell
What you are talking about when mentioning them being different, is Windows
Explorer, which is still basically, Internet Explorer as Windows Explorer
(hence, if you type a path in either of them to a local file, it will launch
the file..... if you type a URL, it will launch a URL....... if you type a
path to a folder, it will open the folder).
When it comes to launching file's, the Shell function and ShellExecute API
read the default launch command from
HKEY_CLASSES_ROOT\.extension\Open\Command and launch the file in the program
that is specified.
For example, if the launch command for the .txt extension is Notepad.exe
then Shell and ShellExecute will look at;
HKEY_CLASSES_ROOT\.txt\Open\Command
It will then look in Command for a string containing a program and it's
path. For example;
C:\Windows\Notepad.exe
Along with any parameters (i.e. %1)
If Shell is opening the wrong browser, then it is likely that the cause is
because the wrong browser has been set as the default, and not because of a
bug in Windows.
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)