I previously wrote a blog post about using PowerShell and the registry editor to modify the default installation path for SQL Server Management Studio here.
Since then, I’ve tried a few alternative approaches, and now I’m back with a new method for installing SQL Server Management Studio via the command line to a user-specified location.
Steps to do so are as follows
1. Download latest version of SSMS from this link
2. Press Win+Q key to open search on your computer and type in cmd you will see below screen
Click on Run as administrator.
3. Browse to recently downloaded SSMS media from URL in step 1, In my case it was in D:\Software
4. Use below command to install it to a different folder, In my case I am installing it on D:\test.
“SSMS-Setup-ENU.exe /Install /quiet /norestart /log D:\Test\log.txt SSMSInstallRoot = D:\test”
And you are all set…