use per-user

This commit is contained in:
Leilei Zhang
2025-07-08 11:28:52 +08:00
parent d8020542bc
commit cd8be64f9e
2 changed files with 2 additions and 5 deletions

View File

@@ -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"
}

View File

@@ -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