본문으로 바로가기

Visual Studio 설치 시 경로 선택 불가 해결

category Errors 2020. 8. 27. 13:15

문제

 

기존 Visual Studio 를 다른 드라이브에 설치하고 드라이브를 변경해서 설치 시에 경로 선택이 불가능한 문제가 발생했습니다.

 

 

해결방법

 

powershell 를 이용해서 psmsi 패키지를 설치합니다.

install-package msi -provider PowerShellGet

 

패키지가 정상적으로 설치되면 다음 명령어를 사용할 수 있습니다.

get-msicomponentinfo '{777CBCAC-12AB-4A57-A753-4A7D23B484D3}' | get-msiproductinfo
ProductCode                            ProductVersion      ProductName
-----------                            --------------      -----------
{166EEF5C-F996-390E-91F6-DD6DFD008E9B} 14.0.25420          Microsoft Visual Studio 2015 Shell (Minimum) Interop Asse...
{4100F789-5312-4A41-817C-3118F6F44CAB} 14.0.25431          Microsoft Visual Studio 2015 Windows Diagnostic Tools
{2230AE9A-A95A-4C15-A4D1-6536F4B24B7D} 14.0.25431          Microsoft Visual Studio 2015 XAML Application Timeline
{FD733BA2-59BF-4BF1-ADD4-14A1F3EB98CD} 14.0.25431          Microsoft Visual Studio 2015 XAML Visual Diagnostics

 

파이프라인을 이용해서 위에 보이는 목록을 제거하는 명령어입니다.

get-msicomponentinfo '{777CBCAC-12AB-4A57-A753-4A7D23B484D3}' | get-msiproductinfo | uninstall-msiproduct -properties IGNOREDEPENDENCIES=ALL

 

 

참고

 

How to install Visual Studio to another directory when a pre-release is installed | Visual Studio Setup

If you’ve installed pre-release versions of Visual Studio – or even another edition of the same release – you may find you can’t change the installation target directory. This is because once a set of shared components is installed, we install all

devblogs.microsoft.com