3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windows Sandboxでwingetをインストールする

Last updated at Posted at 2021-03-07

結論

powershellを開き下記を実行

@(
  "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx",
  "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
)|foreach-object{
  [System.IO.Path]::GetTempFileName() | Tee  -Variable TempFile
  iwr -useb $_ -OutFile $TempFile
  Add-AppxPackage $TempFile
  del $TempFile
}

説明

windows sandboxはstoreが使えないのでAdd-AppxPackageコマンドレットを用いて自分でインストールをする。その時にVCLibsが依存しているがstoreが使えないと自動でインストールしてくれないのでそれも手動でインストールする必要がある。

参考

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?