Archive: Hiding ExecWait


Hiding ExecWait
Ok,

This probably a really dumb question, but I can't seem to find the answer...

How do I hide/minimise a shelled ExecWait window?

Basically, I need to spawn out a few commands and I *have* to wait for them to complete. I've tried using ExecShell which hides nicely but doesn't wait. ExecWait waits, but does not hide.

Someone please put me out of my misery.;)

Cheers,
Mike


I don't know man. But there is the Hidewindow command that hides the installer window.

read your documentation
, and search the forum


Still looking...
Hi,

Unfortunately HideWindow hides the INSTALLER, not the shelled command window.

I have read the documentation, and I have searched the forums, google, and google groups but not seen the answer to this question...

That's why I think it has to be something astoundingly obvious that I am missing, or it's a feature that no-one else wants. (Although I would have thought it would be very handy!)

Cheers,
Mike


use SendMessage

with this u can send messages to a window like hide or so ...

its not well documented in the doku but its dokumented in the net

i dont know exactly the syntax maybe justin has an example somewhere ?

maybe bballer was a little bit tooo quick for having such an answer ????


Still not quite there
Hi crish,

I would use SendMessage, but ExecWait pauses the script :)

So I have the choice of a paused non-controllable window with ExecWait or an unpaused controllable window with Exec/ExecShell

Back to the drawing board methinks ;)

Cheers,
Mike


Is the program you are exec'ing a DOS program?


Use a short cut
Hi,

What about making a temporary shortcut, which is minimized and start it by ExecWait?

->CreateShortCut "test.lnk" "test.exe" "" "" 0 SW_SHOWMINIMIZED
->ExecWait test.lnk

Greeting,
Andreas ;)


then the only real solution is to ask justin

maybe he would add the ExecShell attributes
also to execwait ?


Hi there!

I also got the same trouble as mdolan :cry:

Here a short description of my disaster:
I got some batch files which create my registry and right after that is finished I have to extract a few things of that registry so I have to wait until the batch file has finished otherwise nothing will be extracted :eek:

I just want to ask if there is any REAL solution for that issue ...

greeetz zwu


If it's a batch file it's not the same problem. Your problem can be easily solved using the nsExec plug-in available in NSIS 2. Read its readme in Contrib\nsExec for more information.


Thx for your fast solution and it works as you said before!!

The only thing I didn't understand is the difference between my problem and dolan's ... because he also has to call commands like I do no matter if its regedit, psexec or a user written batch file ... isn't it?!


He never said it's a batch file. For all I know it could be Photoshop running on a script showing tons of Windows (nsExec won't hide that). As you can see he never answered rainwater, and personally, I can't be sure what he did mean by using the word command in his posts. Anyway, it doesn't matter, he probably doesn't care anymore. As you can see, he never came back for the solution.


Time lag...
Apologies for the lack of followup - at the time of writing there was no real solution using NSIS. I moved to using an alternative tool for the job and left it at that. (Thus the comment of "back to the drawing board").

Still, looks like NSIS has been seriously updated since then - I now need to remember the original problem :D

Thanks for those who replied.

Cheers,
Mike


The solution was there already. Had you answered to rainwater you would have gotten it ;)


I would have answered but for some reason the mail notification didn't arrive... or for any subsequent messages in this thread. I was very surprised when I got a mail message today saying someone had replied!

Still, my own fault for not checking back and consequently not replying to rainwater - no excuse!

Apologies to all.

Cheers,
Mike