Skip to content

Commit 7603673

Browse files
committed
Fixed pwshl command
1 parent 0c35e49 commit 7603673

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/setup_utilities/host_tools.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ export async function installWindowsHostTools(context: vscode.ExtensionContext,
4040
//Step 2
4141
// If winget is installed then we can install the required dependencies with this one liner;
4242

43-
let result = await executeTaskHelper("Install Host Tools", "winget install Kitware.CMake Ninja-build.Ninja oss-winget.gperf python Git.Git oss-winget.dtc wget 7zip.7zip; Start-Process powershell -Verb RunAs -ArgumentList \"[System.Environment]::SetEnvironmentVariable('Path', [System.Environment]::GetEnvironmentVariable('Path', 'Machine') + ';C:\\Program Files\\7-Zip', 'Machine')\"", "");
43+
let result = await executeTaskHelper(
44+
"Install Host Tools",
45+
"winget install Kitware.CMake Ninja-build.Ninja oss-winget.gperf python Git.Git oss-winget.dtc wget 7zip.7zip; Start-Process powershell -Verb RunAs -ArgumentList '-NoExit', '-Command', '[System.Environment]::SetEnvironmentVariable(''Path'', ([System.Environment]::GetEnvironmentVariable(''Path'', ''Machine'') + '';C:\\Program Files\\7-Zip''), ''Machine'')'",
46+
""
47+
);
4448

4549
return result;
4650
}

0 commit comments

Comments
 (0)