I am trying to make a vbscript uninstall a .msi and wait for the uninstall to complete before continuing to the next line. I am using the below code, the last part ,7,True should make it wait but doesn't seem to work, am I missing something?


msiexec = C:\windows\system32\msiexec.exe /x " & msiname & " /QN"
addwait = ",7,True"
msiexecwithwait = msiexec & addwait

Shell.Run (msiexecwithwait)


***************

Fixed.... it needed to be;

msiexec = C:\windows\system32\msiexec.exe /x " & msiname & " /QN"
Shell.Run (msiexec), 7, true
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
You should check the return code too - so you know whether the install succeeded or whether a reboot might be required, etc.
Answered 02/01/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
0
I wouldn't know how to interpret them?
Answered 02/02/2005 by: Naffcat
Senior Purple Belt

Please log in to comment
0
Check the SDK.
Answered 02/04/2005 by: WiseUser
Fourth Degree Brown Belt

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