- NSIS Discussion
- How to open multiple browsers after installation
Archive: How to open multiple browsers after installation
sfo4330
25th September 2002 23:34 UTC
How to open multiple browsers after installation
In the following code snippet, if the user has chosen to view release notes and user guide, I want to spawn two browser windows. What happens here is that it opens the release notes and the user guide in the same window. How do I open two different browser windows ?
ReadRegStr $2 HKLM "${PRODUCT_REGKEY}" "ViewRelnotes"
ExecShell "open" "$INSTDIR\\locale\\help\\relnotes.html"
ReadRegStr $2 HKLM "${PRODUCT_REGKEY}" "ViewDoc"
ExecShell "open" "$INSTDIR\\locale\\help\\index.html"
sfo4330.
kichik
26th September 2002 19:05 UTC
This happens because of Internet Explorer's settings. It defaults to opening in the same page. There is a way to force opening a new page, I will try to look it up for you.
kichik
26th September 2002 19:22 UTC
This is the only I have found, but it will only work on Internet Explorer afaik.
ExecShell "opennew" "$INSTDIR\\locale\\help\\relnotes.html"
>; Make sure it did execture
IfErrors 0+2
ExecShell "open" "$INSTDIR\\locale\\help\\relnotes.html"
>; now for the second html page
ExecShell "opennew" "$INSTDIR\\locale\\help\\index.html"
>; Make sure it did execture
IfErrors 0+2
ExecShell "open" "$INSTDIR\\locale\\help\\index.html"
sfo4330
26th September 2002 19:52 UTC
Do you know what registry entry affects this ? Then perhaps I could look into modifying that as well.
kichik
26th September 2002 19:55 UTC
I am sorry, I don't remember. But it wouldn't be a good idea modifying user's settings anyway.
rainwater
26th September 2002 20:40 UTC
You could create a temporary html file that uses javascript to open a new window to one of the files and then redirects to the other file.
Joel
18th March 2004 15:10 UTC
to confirm:
Is there a plugin or code to open in another window links or web files that support all browsers(IE, Netscape, Mozilla family, Opera, etc.)?
Joost Verburg
18th March 2004 16:51 UTC
No. But the solution above (JavaScript) should work.
Joel
18th March 2004 23:38 UTC
And why not a plugin :rolleyes: -> :D?
Working on it... ;)
s793016
19th March 2004 06:18 UTC
Sorry, my English is very very poor.
And ... maybe this can help you?
http://forums.winamp.com/showthread....hreadid=166336
Tested with Mozilla/Firefox/Opera/IE.
deguix
25th March 2004 03:19 UTC
s793016, maybe you should include "Sorry, my English is very very poor." in your signature. You say it every time you post! You could economize a line on every post if you do this. :)
(I'm not saying on the bad side...)