Hello all,

I am using Wise Script to make wrappers for deployment. I am running into issues like if I were to run multiple .msi's within the wrapper, it seems like it doesn't wait for one install and jumps to the other one or the step after that. So far I have been using "Pause" function to control this behavior, but would like to know if someone has an another suggestion. If so please point me right to it.

Please accept my thanks in advance.

Best Regards,
AK
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
hi ,

When you run any install or command in wise script using " execute a program " .
please check if you have checked the checkbox "Wait for Program to Exit" .
Answered 11/29/2011 by: mahendraKumar
Senior Yellow Belt

Please log in to comment
0
Hey MahendraKumar,

That is there and the script keeps on jumping to the next command before finishing the first one. Once again "Pause" function does help, but I am looking for alternatives, just like the title says.

Thanks
Best Regards
Answered 12/05/2011 by: 786_ak
Second Degree Green Belt

Please log in to comment
0
i bet the setup launched is calling some other executable file and quits. i saw that behavior often enough.
Answered 12/05/2011 by: kardock
Second Degree Green Belt

Please log in to comment
0
Well, first of all it doesn't quit. Setup is not launching any other executable file either.

Okay, let me see if I can revisit the question here a little more clearly, I might be confusing people here.

I have a wise wrapper which is running multiple command line to execute different functions. Such as, clean up the previous version clean up the previous entries from any directories it exists. Then go ahead and install the actuall .msi and then trying to do two more thing. Problem is that I have to put some "pause" time to it in order for it to actually make sure it does all that, otherwise it doesn't wait to finish for (let's say the the 3rd command) to clean the c:\Program files\ABC or run the batch file to clean that and jumps to the forth command. This is where I have to put the "Pause" in there for it to actually make sure it runs the command or run the batch file to clean that and then move to next one instead of just going to next one. Now again the question is, does wise offer any other alternative to "Pause" function?

Sorry if my question caused any confusion.

Thanks.
Answered 12/05/2011 by: 786_ak
Second Degree Green Belt

Please log in to comment
0
see post #2 and make sure the option to wait is checked
Answered 12/05/2011 by: kardock
Second Degree Green Belt

Please log in to comment
0
See post #3......[:)]
Answered 12/05/2011 by: 786_ak
Second Degree Green Belt

Please log in to comment
0
I have never bothered with WiseScript, but I know that it can access Windows APIs so why not use that capability to find the set-up process's handle and then wait for that process to end? And no, I can't help with the code for that but I'm pretty sure I saw a fragment on Symantec Connect.
Answered 12/06/2011 by: VBScab
Red Belt

Please log in to comment
0
Sometimes in WiseScript I've noticed the 'pause' feature causes some sort of weirdness in which all processes halt that are launched in the background instead of just the script pausing while waiting for the set amount of time to pass. To get around that, I've called up sleep.exe available from various sources. When I call up an external pause feature it seems to function properly in those cases.
Answered 12/13/2011 by: icbrkr
Senior Yellow Belt

Please log in to comment
0
VBscript might help for this problem :)
Answered 12/14/2011 by: pratikpawar
Senior Yellow Belt

Please log in to comment
0
Ok, so VBscript is the best answer thus far.

Case Closed.

Thank you all

AK
Answered 12/15/2011 by: 786_ak
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity