Archive: Open a URL in a browser and get back the focus


Open a URL in a browser and get back the focus
I am using this command to open the user browser for a giving URL.
This is been done before the last page is been called.

ExecShell "open" "${URL}"


How I can open the URL and keep the installer windows on top?

When I run this command the browser is been on top of the installer.

I tried the following code but it didn't do the trick.

StrCpy $0 $HWNDPARENT

System::Call "user32::SetWindowPos(i r0, i -1, i 0, i 0, i 0, i 0, i 3)"

ExecShell "open" "${URL}"

System::Call "user32::SetWindowPos(i r0, i -2, i 0, i 0, i 0, i 0, i 3)"


Thanks

You could try calling user32::LockSetForegroundWindow or maybe use SW_NA* with ShellExecute...


Thanks

Can you please be more specific about the code syntax.
I am not familiar with it.