From: Roedy Green on
On Wed, 20 Jan 2010 17:47:39 +0000, RedGrittyBrick
<RedGrittyBrick(a)SpamWeary.invalid> wrote, quoted or indirectly quoted
someone who said :

>
>On Windows, can't you execute an .html file and expect the OS to use
>it's file-associations to work out which browser is installed?

Sometimes. It is iffy, requiring a proper association of the *.html
extension to the desired browser to be set up. Mine mysteriously
stopped working today.

I have posted the lore I have collected on the problem at
http://mindprod.com/jgloss/browserlaunching.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, �How would I develop if it were my money?� I�m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming .
From: Roedy Green on
On Wed, 20 Jan 2010 18:47:58 +0100, jolz <BardzoTajneKonto(a)interia.pl>
wrote, quoted or indirectly quoted someone who said :

>I don't see how it can work if iexplore.exe isn't in the PATH and
>browser isn't started from directory containing iexplore.exe.

Try typing iexplore.exe at the command prompt. I will launch. MAGIC!

There are three copies:

C:\Windows\winsxs\amd64_microsoft-windows-i..etexplorer-optional_31bf3856ad364e35_8.0.7600.16385_non
e_0f6595383e78c6f8\iexplore.exe

C:\Windows\winsxs\wow64_microsoft-windows-i..etexplorer-optional_31bf3856ad364e35_8.0.7600.16385_non
e_19ba3f8a72d988f3\iexplore.exe

C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE


None of these are not on the path. Huh?

Look at the pseudopath aux path entries in the registry.

See http://mindprod.com/jgloss/registry.html#AUXPATH

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\IEXPLORE.EXE

That is how MS pulls this off without requiring extra directories on
the PATH where they could easily get lost.

see http://mindprod.com/project/kicker.html
for a student project to automatically build these registry entries
and rapidly launch programs with canned sets of parameters without any
path requirements.

--
Roedy Green Canadian Mind Products
http://mindprod.com
Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, �How would I develop if it were my money?� I�m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming .
From: jolz on
>> I don't see how it can work if iexplore.exe isn't in the PATH and
>> browser isn't started from directory containing iexplore.exe.
>
> Try typing iexplore.exe at the command prompt. I will launch.

No, it won't (yes, I did try):
"NOTE: Windows uses the entries if it does not find the application in
the current PATH AND the application was launched with the
ShellExecute() function."

Maybe beacuse console use CreateProcess(Ex). JVM probably may, but
doesn't have to use ShellExecute().
From: segalsegal on
On Jan 21, 8:33 am, Roedy Green <see_webs...(a)mindprod.com.invalid>
wrote:
> Sometimes.  It is iffy, requiring a proper association of the *.html
> extension to the desired browser to be set up.  Mine mysteriously
> stopped working today.
>
> I have posted the lore I have collected on the problem athttp://mindprod.com/jgloss/browserlaunching.html

Strangely, one of the two users of our software who reported this
problem last week found it was working properly today, using the same
computer in the same location. If the change was because of
yesterday's Internet Explorer update then it may just have been a bug
that was fixed, but Roedy's experience makes me think there is some
other variability that we haven't been able to figure out yet.

I'll check with the other person who reported the same problem.
From: segalsegal on
On Jan 21, 8:31 am, Roedy Green <see_webs...(a)mindprod.com.invalid>
wrote:
> how come you put Firefox's url in quotes but not iexplore's.

The code was written years ago and presume (but can't guarantee) that
there was some good reason for the difference, but I don't remember.

I'm blocked from doing many of the usual debugging approaches because
every computer I've tried has no problem with this code. But two
users have this problem, and as detailed elsewhere in this thread, the
problem was gone today for one of the users.