pc:winget
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
pc:winget [2023/05/03 19:03] – [スクリプト] 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 "/ | ||
+ | |||
+ | ``` | ||
+ | |||
行 231: | 行 247: | ||
--------- | --------- | ||
- | ※すべてのユーザーにインストールする | ||
- | |||
- | ``` | ||
- | winget install winscp --silent --override "/ | ||
- | |||
- | ``` | ||
- | |||
- | ``` | ||
- | winget install winmerge --scope machine | ||
- | |||
- | ``` | ||
行 258: | 行 263: | ||
echo " | echo " | ||
winget install $item --silent --scope machine | winget install $item --silent --scope machine | ||
+ | if ($?) { echo " | ||
} | } | ||
</ | </ | ||
+ | |||
+ | 文字化けを避けるには、エンコードを「UTF-8-BOM」にする。 |
pc/winget.1683108216.txt.gz · 最終更新: 2023/05/03 19:03 by nipa28