Sql Server Management Studio closes immediately after startup : <p>Sql Server Management Studio closes in about five seconds after startup. No messages are being displayed (even in a console) and no logs occur in a Windows Event Viewer. I have tried to install different SSMS versions , i.e. 16.X, 17.Y, but it have not helped. I have also tried to <i>repair</i> VS 2017 and SSMS.</p>

<p>This problem occured for the first time, when I unistalled Visual Studio 2015 and its related components, like SSMS, and installed VS 2017 and newer version of SSMS (16.X).</p>

<p>What can I do to make SSMS not closing immediately after startup?</p>
