Good morning,

I have a batch file with the following code which works fine:
MsiExec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0160020} /q

I would like to execute it from within the .net environment, however I can't seem to execute that command using the shell syntax.
I tried Shell (cmd "MsiExec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0150070}",vbHide), and various variations but i can't quite seem to make it work.
I would like to avoid having to call the batch file from within the .net environment which I was able to do.

Thank you for your help,

John

Good morning,

I have a batch file with the following code which works fine:
MsiExec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0160020} /q

I would like to execute it from within the .net environment, however I can't seem to execute that command using the shell syntax.
I tried Shell (cmd "MsiExec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0150070}",vbHide), and various variations but i can't quite seem to make it work.
I would like to avoid having to call the batch file from within the .net environment which I was able to do.

Thank you for your help,

John

Found what I was looking for here is my solution:

Dim P As Process
        P = New Process
        P.StartInfo.FileName = "MsiExec.exe"
        P.StartInfo.Arguments = "/x " & "{3248F0A8-6813-11D6-A77B-00B0D0160030}" & " /q"
        P.Start()
        P.WaitForExit()
        P.Close()
        P = Nothing

Thank you for this site:
http://bytes.com/topic/visual-basic-net/answers/554327-how-uninstall-msi-silently

John

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.