From cd8be64f9eb42e2a5514d275caea70502abbfa0f Mon Sep 17 00:00:00 2001 From: Leilei Zhang Date: Tue, 8 Jul 2025 11:28:52 +0800 Subject: [PATCH] use per-user --- .pipelines/installPowertoys.ps1 | 4 ++-- .pipelines/v2/oneFuzz.yml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.pipelines/installPowertoys.ps1 b/.pipelines/installPowertoys.ps1 index 9cdfc5941b..46b582e757 100644 --- a/.pipelines/installPowertoys.ps1 +++ b/.pipelines/installPowertoys.ps1 @@ -6,7 +6,7 @@ if (-not $ArtifactPath) { throw "BUILD_ARTIFACTSTAGINGDIRECTORY environment variable not set" } -$Installer = Get-ChildItem -Path $ArtifactPath -Recurse -Filter 'PowerToysSetup-*.exe' | Select-Object -First 1 +$Installer = Get-ChildItem -Path $ArtifactPath -Recurse -Filter 'PowerToysUserSetup-*.exe' | Select-Object -First 1 if (-not $Installer) { throw "PowerToys installer not found in artifact directory" @@ -22,7 +22,7 @@ if ($Process.ExitCode -ne 0 -and $Process.ExitCode -ne 3010) { } # Verify installation -$PowerToysPath = "${env:ProgramFiles}\PowerToys\PowerToys.exe" +$PowerToysPath = "${env:LOCALAPPDATA}\PowerToys\PowerToys.exe" if (-not (Test-Path $PowerToysPath)) { $PowerToysPath = "${env:LOCALAPPDATA}\PowerToys\PowerToys.exe" } diff --git a/.pipelines/v2/oneFuzz.yml b/.pipelines/v2/oneFuzz.yml index c5a13709e1..70717026b8 100644 --- a/.pipelines/v2/oneFuzz.yml +++ b/.pipelines/v2/oneFuzz.yml @@ -43,9 +43,6 @@ stages: branchName: 'refs/heads/main' artifactName: 'build-x64-Release' targetPath: '$(Build.ArtifactStagingDirectory)' - - pwsh: |- - & "$(build.sourcesdirectory)\.pipelines\installWiX.ps1" - displayName: Download and install WiX 3.14 development build - pwsh: |- & "$(build.sourcesdirectory)\.pipelines\installPowerToys.ps1" displayName: Install PowerToys