mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +01:00
Update install-basic-apps.ps1
This commit is contained in:
parent
7d52b68568
commit
a98528c96e
@ -1,4 +1,4 @@
|
||||
APPNAME, CATEGORY, APPID
|
||||
APPLICATION, CATEGORY, APPID
|
||||
"7-Zip", "file tool", "XPDNKVCX4QD2DC"
|
||||
"Aquile Reader", "ebook reader", "9P08T4JLTQNK"
|
||||
"CrystalDiskInfo", "HDD/SSD tool", "XP8K4RGX25G3GM"
|
||||
|
|
@ -2,8 +2,8 @@
|
||||
.SYNOPSIS
|
||||
Installs basic apps
|
||||
.DESCRIPTION
|
||||
This PowerShell script installs basic Windows apps (browser, e-mail client, etc).
|
||||
Apps from the Microsoft Store are preferred for automatic updates.
|
||||
This PowerShell script installs basic Windows apps such as browser, e-mail client, etc.
|
||||
Apps from the Microsoft Store are preferred (due to security and automatic updates).
|
||||
.EXAMPLE
|
||||
PS> ./install-basic-apps
|
||||
.LINK
|
||||
@ -20,7 +20,7 @@ try {
|
||||
$NumEntries = $Table.count
|
||||
Write-Host " The following $NumEntries basic apps will be installed or upgraded: " -NoNewline
|
||||
foreach($Row in $Table) {
|
||||
[string]$AppName = $Row.AppName
|
||||
[string]$AppName = $Row.APPLICATION
|
||||
Write-Host "$AppName, " -NoNewline
|
||||
}
|
||||
""
|
||||
@ -30,9 +30,9 @@ try {
|
||||
[int]$Step = 2
|
||||
[int]$Failed = 0
|
||||
foreach($Row in $Table) {
|
||||
[string]$AppName = $Row.AppName
|
||||
[string]$Category = $Row.Category
|
||||
[string]$AppID = $Row.AppID
|
||||
[string]$AppName = $Row.APPLICATION
|
||||
[string]$Category = $Row.CATEGORY
|
||||
[string]$AppID = $Row.APPID
|
||||
|
||||
"⏳ ($Step/$($NumEntries + 1)) Installing $AppName ($Category)..."
|
||||
& winget install --id $AppID --accept-package-agreements --accept-source-agreements
|
||||
|
Loading…
Reference in New Issue
Block a user