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
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)
Please log in to answer
Posted by:
WiseUser
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.