Skip to content
⌘ NSIS Forum Archive

Two windows are opened with ExecShell

7 posts

butsay#

Two windows are opened with ExecShell

Hi all!
I have a very strange problem with using ExecShell.
My code is very simple:

Section

ExecShell "open" "iexplore.exe" cnn.com


SectionEnd

For some reason this command opens two windows with the same URL.
I need just one.
What I'm doing wrong?
Please advise me.
Thank you!!!
Igor.
Anders#
There are a lot of problems with this code.

The correct way to open a website is: ExecShell "" "http://example.com"

You are trying to force IE, you should probably not be doing this and if you have to, at least use a full URL with a protocol prefix like "http://"!
butsay#
Hello Anders,
Thank you for your quick respond.
Whatever I'm doing , I've got the same result:two windows opened with the same URL.
ExecShell "" "http://cnn.com" - doesn't work as well.
I need to open the URL link in IE browser when user clicks on Finish button on the finish page.
Is there any work around I can use to get this goal?
Please let me know.
Thank you so much.
Igor.
butsay#
I've used this code example :

and I've got the same result with two windows opened.
But this code doesn't use ExecShell .
butsay#
I've got the same result on another PC.
When I execute in MS cmd : Start iexplore http://cnn.com
I have only one window opened with the URL above,
but if I execute ExexShell in the installer it opens two windows.
I've found a work around to create a bat file with the command:
Start iexplore http://cnn.com
and execute it by nsExec::Exec