Uninstalling OpenPlant Project Administrator in Silent Mode
If you have the Setup.exe of OpenPlant Project Administrator, simply use the -Uninstall -Quiet commands to uninstall OpenPlant Project Administrator. For example,
Uninstalling Post-Install Components
- Get the product GUID using
one of the following commands:
gci "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | foreach { gp $_.PSPath } | ? { $_ -match "ProductName" } | select UninstallString
or
gci "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | foreach { gp $_.PSPath } | ? { $_ -match "ProductName" } | select UninstallString
Where, ProductName is the name of post-install component, such as Bentley DGN Index Service.
You will get product GUID, something like this:UninstallString --------------- MsiExec.exe /X{2E873893-A883-4C06-8308-7B491D58F3D6}
- Use the string from the
above step in the following command:
Start-Process "MsiExec.exe" -ArgumentList "/X{2E873893-A883-4C06-8308-7B491D58F3D6} /quiet" -Wait