pc:winget
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
pc:winget [2023/05/02 18:07] – [インストール先のこと] nipa28 | pc:winget [2023/05/04 10:26] (現在) – [Wingetの使い方] nipa28 | ||
---|---|---|---|
行 37: | 行 37: | ||
アプリを探す | アプリを探す | ||
+ | インストールしたいアプリの正確な名前(ID、モニカー)を確認する。 | ||
``` | ``` | ||
- | winget search <appname> | + | winget search <キーワード> |
``` | ``` | ||
+ | |||
+ | |||
アプリをインストールする | アプリをインストールする | ||
行 68: | 行 70: | ||
{{: | {{: | ||
- | ` | + | |
インストール先のこと | インストール先のこと | ||
---------- | ---------- | ||
行 208: | 行 211: | ||
特にsettingを変更せずに、winget install でインストールすると、どちらになるかは、アプリによってまちまちのようだ。 | 特にsettingを変更せずに、winget install でインストールすると、どちらになるかは、アプリによってまちまちのようだ。 | ||
+ | |||
+ | こうしておくと、System権限でインストールされるみたい。 | ||
+ | |||
+ | ``` | ||
+ | winget install winmerge --scope machine | ||
+ | |||
+ | ``` | ||
行 213: | 行 223: | ||
アプリのインストーラにオプションを渡して、System権限(/ | アプリのインストーラにオプションを渡して、System権限(/ | ||
+ | |||
+ | ``` | ||
+ | winget install winscp --silent --override "/ | ||
+ | |||
+ | ``` | ||
+ | |||
行 228: | 行 244: | ||
++++ | ++++ | ||
- | |||
スクリプト | スクリプト | ||
--------- | --------- | ||
- | ※すべてのユーザーにインストールする | ||
- | ``` | ||
- | winget install winscp --silent --override "/ | ||
- | ``` | + | <file batch installApps.cmd> |
+ | powershell -ExecutionPolicy RemoteSigned -File .\installApps.ps1 | ||
+ | </ | ||
- | ``` | + | <file powershell installApps.ps1> |
- | winget install winmerge --scope machine | + | $list = " |
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
- | ``` | + | foreach ($item in $list) { |
+ | echo " | ||
+ | winget install $item --silent --scope machine | ||
+ | if ($?) { echo " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | 文字化けを避けるには、エンコードを「UTF-8-BOM」にする。 |
pc/winget.1683018452.txt.gz · 最終更新: 2023/05/02 18:07 by nipa28