This drastic step should never be necessary just to solve an application installation issue.
(1) Run Windows update and be sure all updates are done.
(2) Go to this post and follow instructions to install the Microsoft library dependancies for SketchUp 2017:
Unable to install SketchUp Pro 2017
(3) Then re-install SketchUp 2017, by right-click and “Run as administrator”.