Changed based on reddit
This commit is contained in:
parent
dd6395e7ef
commit
d3b84021e4
@ -27,7 +27,7 @@ $settingsJson = @{installBehavior = @{
|
|||||||
$settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8
|
$settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8
|
||||||
|
|
||||||
function InstallTheApps([array]$AppList) {
|
function InstallTheApps([array]$AppList) {
|
||||||
Foreach ($app in $apps) {
|
Foreach ($app in $AppList) {
|
||||||
$listApp = winget list --exact -q $app.name
|
$listApp = winget list --exact -q $app.name
|
||||||
if (![String]::Join('', $listApp).Contains($app.name)) {
|
if (![String]::Join('', $listApp).Contains($app.name)) {
|
||||||
Write-Host 'Installing:' $app.name
|
Write-Host 'Installing:' $app.name
|
||||||
@ -119,7 +119,7 @@ do {
|
|||||||
InstallTheApps $Apps
|
InstallTheApps $Apps
|
||||||
}
|
}
|
||||||
'4' {
|
'4' {
|
||||||
$apps = @( ## LAPTOP
|
$AppList = @( ## LAPTOP
|
||||||
@{name = 'Intel.IntelDriverAndSupportAssistant' },
|
@{name = 'Intel.IntelDriverAndSupportAssistant' },
|
||||||
@{name = '9WZDNCRFJ4MV'; source = 'msstore' }, # Lenovo Vantage from MS Store
|
@{name = '9WZDNCRFJ4MV'; source = 'msstore' }, # Lenovo Vantage from MS Store
|
||||||
@{name = 'j5create.Driver-JUA365' } ## Not sure if this is correct yet!
|
@{name = 'j5create.Driver-JUA365' } ## Not sure if this is correct yet!
|
||||||
|
Loading…
Reference in New Issue
Block a user