mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
use per-user
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user