/build/static/layout/Breadcrumb_cap_w.png

Uninstall MSI with wait

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

Answers (3)

Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
0
You should check the return code too - so you know whether the install succeeded or whether a reboot might be required, etc.
Posted by: Naffcat 19 years ago
Senior Purple Belt
0
I wouldn't know how to interpret them?
Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
0
Check the SDK.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ