Skip to content

Commit

Permalink
Add INSTALLFOLDER to MSI instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler committed Nov 1, 2023
1 parent f7b5700 commit 1302923
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Windows
ms.date: 10/25/2023
ms.date: 11/01/2023
title: Installing PowerShell on Windows
---
# Installing PowerShell on Windows
Expand Down Expand Up @@ -49,10 +49,10 @@ winget search Microsoft.PowerShell
```

```Output
Name Id Version Source
--------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.3.8.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.6 winget
Name Id Version Source
-----------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.3.9.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.101 winget
```

Install PowerShell or PowerShell Preview using the `id` parameter
Expand Down Expand Up @@ -135,6 +135,11 @@ installation options:
environment variable.
- `DISABLE_TELEMETRY` - This property controls the option for disabling PowerShell's telemetry by
setting the `POWERSHELL_TELEMETRY_OPTOUT` environment variable.
- `INSTALLFOLDER` - This property controls the installation directory. The default is
`$env:ProgramFiles\PowerShell\`. This is the location where the installer creates the versioned
subfolder. You can't change the name of the versioned subfolder.
- For current releases, the versioned subfolder is `7`
- For preview releases, the versioned subfolder is `7-preview`

The following example shows how to silently install PowerShell with all the install options enabled.

Expand Down

0 comments on commit 1302923

Please sign in to comment.