mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-30 08:30:53 +00:00
7 lines
347 B
PowerShell
7 lines
347 B
PowerShell
|
$installationPath = vswhere.exe -latest -property installationPath
|
||
|
if ($installationPath -and (test-path "$installationPath\Common7\Tools\vsdevcmd.bat")) {
|
||
|
& "${env:COMSPEC}" /s /c "`"$installationPath\Common7\Tools\vsdevcmd.bat`" -no_logo && set" | foreach-object {
|
||
|
$name, $value = $_ -split '=', 2
|
||
|
set-content env:\"$name" $value
|
||
|
}
|
||
|
}
|