Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 13th May 2003, 03:37   #1
Yovav
Member
 
Join Date: May 2003
Location: Holy Land
Posts: 63
Send a message via ICQ to Yovav
Need some help with Exec / ExecWait

How can I run uninstaller or other .exe file
and hide current installer window until I finish with the new exec... ?
Yovav is offline   Reply With Quote
Old 13th May 2003, 08:12   #2
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
You could execute HideWindow before calling ExecWait to hide the installer, and then use BringToFront afterwards to show the installer again.
Sunjammer is offline   Reply With Quote
Old 13th May 2003, 08:54   #3
Yovav
Member
 
Join Date: May 2003
Location: Holy Land
Posts: 63
Send a message via ICQ to Yovav
Can't hide it

Quote:
Originally posted by Sunjammer
You could execute HideWindow before calling ExecWait to hide the installer, and then use BringToFront afterwards to show the installer again.
I tried it (also the commented stuff)
code:
; Push ${MUI_TEMP1}
;
; FindWindow ${MUI_TEMP1} "#32770" 0 $HWNDPARENT
;
; ShowWindow ${MUI_TEMP1} ${SW_HIDE}
; SendMessage ${MUI_TEMP1} ${WM_SHOWWINDOW} 0 ${SW_HIDE}

HideWindow
ExecWait "$1"
; ExecShell open "$1"
BringToFront

; ShowWindow ${MUI_TEMP1} ${SW_NORMAL}
; SendMessage ${MUI_TEMP1} ${WM_SHOWWINDOW} 0 ${SW_NORMAL}
;
; Pop ${MUI_TEMP1}


But still - it shows the called exe (uninstaller.exe) win
but DOES NOT hide the current (setup) window
(maybe it has the same HWND ?)

P.S.
I do it on .onInit
Yovav is offline   Reply With Quote
Old 13th May 2003, 16:41   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Um, but onInit, the installer dialog won't have shown yet - so how can you hide it?

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 13th May 2003, 17:45   #5
Yovav
Member
 
Join Date: May 2003
Location: Holy Land
Posts: 63
Send a message via ICQ to Yovav
...

Quote:
Originally posted by Afrow UK
Um, but onInit, the installer dialog won't have shown yet - so how can you hide it?

-Stu

Well, it will show coz the Exec functions wont wait and show them both
(I know - I'm a special case :-)

Anyway - Good news - I finally managed 2 do it
Yieeeha

What a great source.

I'm just about to give my two full days work modern-UI script...
10Q all.
Yovav is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump