Uninstalling an application by its GUID
<p>Hi I tried to uninstall a product using a GUID, it worked fine when I directly executed it in command prompt however, I get an error message when I try to execute it using Golang</p>

<p>My Code:</p>

<pre><code>// Powershell_Command
package main

import (
    "fmt"
    "os/exec"
)

func main() {
    out, err := exec.Command("cmd","/C","wmic","product","where","IdentifyingNumber=\"{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\"","call","uninstall").Output()
    fmt.Println("err::",err)
    fmt.Println("out::",string(out))
}
</code></pre>

<p>the output is:</p>

<blockquote>
  <p>err:: exit status 2147749911</p>
  
  <p>out::</p>
</blockquote>

<p>Thanks in Advance</p>