|
|
#1 |
|
Junior Member
|
How to close firefox windows
Hello,
I am trying to close firefox and ie windows during an install and uninstall. I can get the ie windows to close. However the firefox windows wont close. I am using 'user32::PostMessageA(i,i,i,i) i($1,${WM_CLOSE},0,0)' to close the windows, $1 being the window handle. It works with IE. Should I be doing something different to close the firefox windows. Thanks, -Jayant. |
|
|
|
|
|
#2 |
|
Senior Member
|
|
|
|
|
|
|
#3 | |
|
Major Dude
|
Quote:
hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You won't be able to close Firefox if the user has multiple tabs open and the message box confirmation to close.
-Stu |
|
|
|
|
|
#5 |
|
Major Dude
|
yes you will, if you choose to kill the process instead of just close the window
hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
you could try to figure out what WM_COMMAND to send that will "Close all but active" tab first
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#7 |
|
Junior Member
|
Thanks everyone for the tips. I think killing the process might be the most reliable way to close the windows. Will go that route most probably. Only other choice seems to be asking user to close manually first.
Thanks again. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|