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.
How to open multiple browsers after installation
11 posts
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.
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" Do you know what registry entry affects this ? Then perhaps I could look into modifying that as well.
I am sorry, I don't remember. But it wouldn't be a good idea modifying user's settings anyway.
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.
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.)?
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.)?
No. But the solution above (JavaScript) should work.
And why not a plugin 🙄 -> 😁?
Working on it... 😉
Working on it... 😉
Sorry, my English is very very poor.
And ... maybe this can help you?
Tested with Mozilla/Firefox/Opera/IE.
And ... maybe this can help you?
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Tested with Mozilla/Firefox/Opera/IE.
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...)
(I'm not saying on the bad side...)