Skip to content
⌘ NSIS Forum Archive

Launch the default browser

10 posts

grahama#

Launch the default browser

this works:
strcpy $R0 "http://www.google.com/"
ExecWait '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "$R0"'
grahama#
hmm...my question I got cut off

this does not work:
strcpy $R0 "http://www.google.com/"
ExecShell "open" '"$R0"'
Yathosho#
never had problems doing that. i'm using firefox and the execshell command. are you sure, your browser really is the default browser?
grahama#
is there a setting in Windows for this ?
I am a 'Mac' guy and Windows is still a bit mysterious to me. I'll look for the default browser option and see if that fixes the problem....
grahama#
Nope 🙁 Did not work on Win2k with a restart.
this is the code:
outfile launchExplorer.exe
Section ""
strcpy $R0 "http://www.google.com/"
ExecShell "open" '"$R0"'
SectionEnd
Yathosho#
usually it's in each browser's settings, don't know if there's a global control (you can only reset this in the Internet Options).

Mozilla Firefox (v0.10.1):
Tools>Options>General>Default Browser

Opera (v7.54):
Tools>Preferences>Default Application

Internet Explorer (v6.0.3):
Tools>Internet Options>Programs
(or Start>Settings>Control Panel>Internet Options>..)
grahama#
That is what I did with Explorer 6.0.2
Maybe it is strangeness of Virtual PC ?
Everything else seems to work just fine.
Could this be an error in code instead?
Yathosho#
as i said
ExecShell open "http://google.com"
works for me, unregarding what browser is my default. i never used virtual pc on osx, just darwine.
grahama#
cool
as long as it is working for everyone else 🙂
I'll chalk it up to a VPC quirk
many thanks