OfficeDev / Office-IT-Pro-Deployment-Scripts

A collection of useful PowerShell scripts to make deploying Office 2016 and Office 365 ProPlus easier for IT Pros and administrators. If you have any feature requests or ideas for future scripts please add the idea to the issues list in this repository
http://officedev.github.io/Office-IT-Pro-Deployment-Scripts
MIT License
887 stars 841 forks source link

Call a method on a null-valued expression - Visio not detected #295

Open scoterland opened 6 years ago

scoterland commented 6 years ago

Same issue call method on null-valued expression but now when no Visio is installed.

Can you fix this?

Thanks for your hard work on this project.

scoterland commented 6 years ago

Message : You cannot call a method on a null-valued expression. InnerException :

FullyQualifiedErrorId : InvokeMethodOnNull ScriptStackTrace : at Remove-PreviousOfficeInstalls, C:\Windows\ccmcache\2\Files\Remove-PreviousOfficeInstalls.ps1: line 278 at , C:\Windows\ccmcache\2\Deploy-Application.ps1: line 128

PositionMessage : At C:\Windows\ccmcache\2\Files\Remove-PreviousOfficeInstalls.ps1:278 char:28