winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Collect-ConfigurationOOPTests.ps1 (457B)


      1 # Copyright (c) Microsoft Corporation.
      2 # Licensed under the MIT License.
      3 [CmdletBinding()]
      4 param(
      5     [string]$TargetLocation
      6 )
      7 
      8 $Local:settingsExport = ConvertFrom-Json (wingetdev.exe settings export)
      9 $Local:logsFilePath = Join-Path (Split-Path $Local:settingsExport.userSettingsFile -Parent) "DiagOutputDir"
     10 
     11 Get-AppxPackage WinGetDevCLI | Remove-AppxPackage
     12 
     13 Copy-Item $Local:logsFilePath $TargetLocation -Recurse -Force -ErrorAction Ignore