Archive: Maximize the Web Browser


Maximize the Web Browser
When the installer finishes I would like to launch a maximized web browser, and have it be the top most...all the functions i've tried so far always show up in the background.

I've used the script that is SUPPOSE to create a new window, but with firefox it just opens a new tab..So i'm thinking that's why it doesn't become active.

I have the function set to trigger on the
.onInstSuccess

Here is the interent window function I call


Function openLinkNewWindow
Push $3
Push $2
Push $1
Push $0
ReadRegStr $0 HKCR "http\shell\open\command" ""
# Get browser path
DetailPrint $0
StrCpy $2 '"'
StrCpy $1 $0 1
StrCmp $1 $2 +2 # if path is not enclosed in " look for space as final char
StrCpy $2 ' '
StrCpy $3 1
loop:
StrCpy $1 $0 1 $3
DetailPrint $1
StrCmp $1 $2 found
StrCmp $1 "" found
IntOp $3 $3 + 1
Goto loop

found:
StrCpy $1 $0 $3
StrCmp $2 " " +2
StrCpy $1 '$1"'

Pop $0
Exec '$1 $0'
Pop $1
Pop $2
Pop $3
FunctionEnd


Anyone know one that will maximize the window?

Thanks

nm, I didn't even realize you could use the SW (Show Window) tag parameters with ExecShell


Re: Maximize the Web Browser
Unless I am missing something, why not just do:

ExecShell "open" "http://.. or file://" SW_SHOWMAXIMIZED

-N


It appears that Internet Explorer and FireFox ignores the SW values used by ExecShell.