While migrating from V8i or any of the previous versions to CONNECT Edition, CAD Admins will look for silently removing the old application so that the users are not bothered. The attached PowerShell script can be of great use for such uninstallations.
The general syntax for the script is:
Uninstall.ps1 -AppName 'ProductName'
Where, ProductName is name of the product name as seen in the Add/Remove Programs. For example, MicroStation CONNECT Edition
ProductName
In case the product name has a parenthesis ‘(‘ ‘)’, it should be prefixed with a backslash ‘\’. For example, MicroStation V8i (SELECTseries 4), should be written as MicroStation V8i \(SELECTseries 4\)
Note that when you uninstall MicroStation, only MicroStation will be uninstalled. Other post-install components such as DGN Index Service, DGN Thumbnail Provider etc., are not uninstalled. Those need to be uninstalled separately, or you can club multiple applications in one command, by separating each with a comma, like this:
Uninstall.ps1 -AppName ('MicroStation V8i \(SELECTseries 4\)','CONNECTION Client','Bentley DGN IFilter','Bentley DGN Thumbnail Provider','Bentley Dgn Index Service','HDR Preview','Bentley DGN Preview Handler')
Some post-install components such as AutoDesk RealDWG 2016, do not have Uninstall String in the registry key. Hence, these will have to be uninstalled manually.
Allows you to specify the log directory of the uninstallation.
Uninstall.ps1 -AppName 'MicroStation V8i \(SELECTseries 4\)' -LogDir "C:\Temp\Logs\"
Provides verbose output in console of uninstall script.
Uninstall.ps1 -AppName 'MicroStation CONNECT Edition' -Verbose
To debug uninstall script (logs that uninstall commands called by the script).
Uninstall.ps1 -AppName 'MicroStation V8i \(SELECTseries 4\)' -Debug
See Also
Uninstalling MicroStation in Silent Mode (bentley.com)
Translated German Wiki article:CONNECT Edition - MicroStation und die zugehörigen Funktionenim Hintergrund deinstallieren