Hello there, it has now come to a point where i would like to implement an "auto-update" feature in my windows service - but i am having issues getting the service to uninstall itself like so:
But for some reason it just doesnt work, ive put it in a form application and it works no problem, but not in a service. How can i solve this problem?
I have also tried outputting the command into a .bat file and executing that but that also doesn't work...i think it might be because of the SYSTEM account permissions but im not sure.
Thanks in advance!
VB.NET:
With oProc.StartInfo
.UseShellExecute = False
.RedirectStandardOutput = True
.CreateNoWindow = False
.RedirectStandardError = True
.FileName() = "msiexec"
.Arguments() = "/quiet /uninstall {ABF82AAA-4D7B-4DDD-827E-7D47E5A3CB02}"
End With
oProc.Start()
But for some reason it just doesnt work, ive put it in a form application and it works no problem, but not in a service. How can i solve this problem?
I have also tried outputting the command into a .bat file and executing that but that also doesn't work...i think it might be because of the SYSTEM account permissions but im not sure.
Thanks in advance!