Skip to content

Commit ec7e30a

Browse files
denelonmattwojo
andauthored
Update install (#5547)
* Update install * Update screenshot format --------- Co-authored-by: Matt Wojciakowski <[email protected]>
1 parent 5674fce commit ec7e30a

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed
59.3 KB
Loading
11.9 KB
Loading

hub/package-manager/winget/install.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
---
22
title: install Command
33
description: Installs the specified application.
4-
ms.date: 07/11/2024
4+
ms.date: 07/15/2025
55
ms.topic: overview
6-
ms.localizationpriority: medium
76
---
87

98
# install command (winget)
109

11-
The **install** command of the [winget](index.md) tool installs the specified application. Use the [**search**](search.md) command to identify the application you want to install.
10+
The **install** command of [WinGet](index.md) installs the specified application. Use the [**search**](search.md) command to identify the application you want to install. Use the [**show**](show.md) command to view details about the application and the installer selected by WinGet for your system.
1211

1312
The **install** command requires that you specify the exact string to install. If there is any ambiguity, you will be prompted to further filter the **install** command to an exact application.
1413

1514
## Usage
1615

1716
`winget install [[-q] <query> ...] [<options>]`
1817

19-
![install command](./images/install.png)
18+
:::image type="content" source="./images/install.png" alt-text="Screenshot listing winget import command help options." lightbox="./images/install.png":::
2019

2120
## Aliases
2221

@@ -86,7 +85,7 @@ The options allow you to customize the install experience to meet your needs.
8685
The following example installs a specific version of an application.
8786

8887
```CMD
89-
winget install powertoys --version 0.15.2
88+
winget install powertoys --version 0.91.1
9089
```
9190

9291
The following example installs an application from its ID.
@@ -98,12 +97,12 @@ winget install --id Microsoft.PowerToys
9897
The following example installs an application by version and ID.
9998

10099
```CMD
101-
winget install --id Microsoft.PowerToys --version 0.15.2
100+
winget install --id Microsoft.PowerToys --version 0.91.1
102101
```
103102

104103
## Multiple selections
105104

106-
If the query provided to **winget** does not result in a single application, then **winget** will display the results of the search. This will provide you with the additional data necessary to refine the search for a correct install.
105+
If the query provided to **WinGet** does not result in a single application, then **WinGet** will display the results of the search. This will provide you with the additional data necessary to refine the search for a correct install.
107106

108107
The best way to limit the selection to one file is to use the **id** of the application combined with the **exact** query option. For example:
109108

@@ -117,12 +116,18 @@ If multiple sources are configured, it is possible to have duplicate entries. Sp
117116
winget install --id Git.Git -e --source winget
118117
```
119118

120-
The **msstore** source uses unique identifiers as the "Id" for packages. These do not require the **exact** query toption. For example:
119+
The **msstore** source uses unique identifiers as the "Id" for packages. These do not require the **exact** query option. For example:
121120

122121
```CMD
123122
winget install XP9KHM4BK9FZ7Q -s msstore
124123
```
125124

125+
You may also use the install command to install multiple packages. For example:
126+
127+
```CMD
128+
winget install Microsoft.Edit Microsoft.NuGet
129+
```
130+
126131
## Local install
127132

128133
The **manifest** option enables you to install an application by passing in a YAML file directly to the client. If the manifest is a multi-file manifest, the directory containing the files must be used. The **manifest** option has the following usage.
@@ -133,18 +138,18 @@ Usage: `winget install --manifest \<path>`
133138
|---------|-------------|
134139
| **-m, --manifest** | The path to the manifests of the application to install. |
135140

136-
> [!NOTE]
137-
> Installing packages from local manifest files may have risks. As an extra measure of precaution this feature needs to be enabled by an administrator. To enable this feature run `winget settings --enable LocalManifestFiles`. To disable this feature run `winget settings --disable LocalManifestFiles`.
141+
Installing packages from local manifest files may have risks. As an extra measure of precaution this feature needs to be enabled by an administrator. To enable this feature run `winget settings --enable LocalManifestFiles`. To disable this feature run `winget settings --disable LocalManifestFiles`.
138142

139143
### Log files
140144

141-
The log files for winget unless redirected, will be located in the following folder: **\%temp%\\AICLI\\*.log**
145+
The log files for WinGet unless redirected, will be located in the following folder:
146+
`\%LOCALAPPDATA%\\Packages\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\\LocalState\\DiagOutputDir\\*.log`
142147

143148
## License Agreements
144149

145150
Some applications when installed will require the user to agree to the license or other agreements before installing. When this occurs, the Windows Package Manager will prompt the user to agree to the agreements. If the user does not agree, the application will not install.
146151

147-
![Image of agreement](./images/agreements.png)
152+
:::image type="content" source="./images/agreements.png" alt-text="Screenshot of user agreement prompt in winget." lightbox="./images/agreements.png":::
148153

149154
From the command line, you can auto accept the agreements by passing the following option **--accept-package-agreements** on the command line. This can be beneficial when scripting the Windows Package Manager.
150155

0 commit comments

Comments
 (0)