When i try to install Microsoft Redistributable package silently through golang i get this error
**
fork/exec C:\Windows2008R2.exe: The requested operation requires elevation.
**
And my code is as follows
package main
import (
"fmt"
"os/exec"
)
func main() {
co := exec.Command("C:\\Windows2008R2.exe","/q","/c:\"msiexec","/i","Windows2008R2.msi","/qn","/l*v","C:\\Windows2008R2_x64.log\"")
if err := co.Run(); err != nil {
fmt.Println("Error: ", err)
}
}
Seems like you are not the owner of the file. In order to change the ownership of the files you can...