Hi!
I’m trying to execute the following without any prompts
[pre]
$CustomApp = gci “HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall” | foreach { gp $.PSPath } | ? { $ -match “SOFTWARE NAME” } | select UninstallString
$CustomApp = $CustomApp.UninstallString -Replace “msiexec.exe”,“” -Replace “/I”,“” -Replace “/X”,“”
start-process “msiexec.exe” -arg “/X $CustomApp /qn” -Wait
[/pre]
As soon as I execute the script, the Windows Installer “msiexec /option” toolbox opens up.
When I run the following via command prompt, the application uninstalls perfectly:
msiexec.exe /x {B9F71840-996F-462F-8FBB-F3A0A35316D4} /qn
All workstations where I need to uninstall the application has 64-bit Windows. Any help would be appreciated.