winget-cli

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

InSandboxScript.ps1 (763B)


      1 Param(
      2   [String[]] $DesktopAppInstallerDependencyPath
      3 )
      4 
      5 $ProgressPreference = 'SilentlyContinue'
      6 
      7 $desktopPath = "C:\Users\WDAGUtilityAccount\Desktop"
      8 
      9 Write-Host @"
     10 --> Installing WinGet
     11 
     12 "@
     13 
     14 foreach($dependency in $DesktopAppInstallerDependencyPath)
     15 {
     16   Write-Host @"
     17   ----> Installing $dependency
     18 "@
     19   Add-AppxPackage -Path $dependency
     20 }
     21 
     22 Write-Host @"
     23   ----> Enabling dev mode
     24 "@
     25 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
     26 
     27 $devPackageManifestPath = Join-Path $desktopPath "DevPackage\AppxManifest.xml"
     28 Write-Host @"
     29   ----> Installing $devPackageManifestPath
     30 "@
     31 Add-AppxPackage -Path $devPackageManifestPath -Register