I like to use this sub in my project. But I do not know whwre the "as Process" comes from.
Can anyone explain which library must be used.
B4X:
Sub UninstallApp
[B] [/B]Dim p As [B]Process[/B]
Dim command As String
command = "powershell -Command ""Get-AppxPackage *ExampleApp* | Remove-AppxPackage"""
p.Initialize("cmd", command, "")
p.Start
End Sub