How to uninstall msi silently

  • Thread starter Thread starter Milan
  • Start date Start date
M

Milan

Hi,

How to uninstall msi silently ? I m using VS2005
would like to uninstalled privious version silently.

Kindly guide

Milan
 
How 'bout:

Dim P as Process

p = New Process
p.StartInfo.FileName = "MsiExec.exe"
p.StartInfo.Arguments = "/x " & s & " /Qb" ' s is the name listed in
Add/Remove Programs
p.Start()
p.WaitForExit()
p.Close()
p = Nothing

Also, you can type MsiExec.exe /? on a command line to get a list of
switchs.
 
Back
Top