Skip to content

Commit

Permalink
v4.0.13
Browse files Browse the repository at this point in the history
- nodejs loading issue fixed
- webview and powertoys added
- added nvcleanstall update task manually
- manual webview2 installation deleted
  • Loading branch information
caglaryalcin committed Apr 20, 2024
1 parent d8fc26a commit 8566fa8
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 25 deletions.
8 changes: 4 additions & 4 deletions files/apps/check.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{"PackageIdentifier": ["Code"]},
{"PackageIdentifier": ["notepad"]},
{"PackageIdentifier": ["*SDK"]},
{"PackageIdentifier": ["Node.js"]},
{"PackageIdentifier": ["Nodejs"]},
{"PackageIdentifier": ["Python"]},
{"PackageIdentifier": ["Git"]},
{"PackageIdentifier": ["AnyDesk"]},
Expand All @@ -40,12 +40,12 @@
{"PackageIdentifier": ["OpenRGB"]},
{"PackageIdentifier": ["tailscale"]},
{"PackageIdentifier": ["WinFsp"]},
{"PackageIdentifier": ["NVCleanstall"]},
{"PackageIdentifier": ["nvidia"]},
{"PackageIdentifier": ["rufus"]},
{"PackageIdentifier": ["regshot"]},
{"PackageIdentifier": ["handbrake"]},
{"PackageIdentifier": ["runtime"]}
{"PackageIdentifier": ["runtime"]},
{"PackageIdentifier": ["webview"]},
{"PackageIdentifier": ["powertoys"]}
]
}
]
Expand Down
3 changes: 2 additions & 1 deletion files/apps/choco-apps.config
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
<package id="openrgb" />
<package id="tailscale" />
<package id="winfsp" />
<package id="NVCleanstall" />
<package id="rufus" />
<package id="regshot" />
<package id="handbrake" />
<package id="dotnet-8.0-desktopruntime" />
<package id="webview2-runtime" />
<package id="powertoys" />
</packages>
5 changes: 3 additions & 2 deletions files/apps/winget.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@
{"PackageIdentifier": "CalcProgrammer1.OpenRGB"},
{"PackageIdentifier": "tailscale.tailscale"},
{"PackageIdentifier": "WinFsp.WinFsp"},
{"PackageIdentifier": "TechPowerUp.NVCleanstall"},
{"PackageIdentifier": "Rufus.Rufus"},
{"PackageIdentifier": "HandBrake.HandBrake"},
{"PackageIdentifier": "Rem0o.FanControl"},
{"PackageIdentifier": "Microsoft.DotNet.DesktopRuntime.8"},
{"PackageIdentifier": "Google.PlayGames.Beta"}
{"PackageIdentifier": "Google.PlayGames.Beta"},
{"PackageIdentifier": "Microsoft.EdgeWebView2Runtime"},
{"PackageIdentifier": "Microsoft.PowerToys"}
]
}
]
Expand Down
53 changes: 35 additions & 18 deletions set.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,41 @@ Function SystemSettings {

DisableSnap

Function NVCleanUpdateTask {
Write-Host "Importing Nvidia Clean task in Task Scheduler..." -NoNewline
$nvcleanstall = "https://de1-dl.techpowerup.com/files/l9SiMvumFxZTMUEX2nQ39A/1713636608/NVCleanstall_1.16.0.exe"
$nvcleanpath = "C:\Program Files\NVCleanstall"

New-Item -ItemType Directory -Force -Path $nvcleanpath | Out-Null

Silent
Invoke-WebRequest -Uri $nvcleanstall -Outfile "$nvcleanpath\NVCleanstall_1.16.0.exe" -ErrorAction Stop

#update task
$action = New-ScheduledTaskAction -Execute "$nvcleanpath\NVCleanstall_1.16.0.exe" -Argument "/check"
$description = "Check for new graphics card drivers"
$trigger1 = New-ScheduledTaskTrigger -AtLogon
$trigger2 = New-ScheduledTaskTrigger -AtLogon
$principal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -LogonType ServiceAccount -RunLevel Highest
$taskname = "NVCleanstall"

$settings = New-ScheduledTaskSettingsSet

$task = Register-ScheduledTask -TaskName $taskname -Trigger $trigger1, $trigger2 -Action $action -Principal $principal -Settings $settings -Description $description

# Remove repetition for trigger1
$task.Triggers[0].Repetition = $null

# Set repetition interval for trigger2
$task.Triggers[1].Repetition.Interval = "PT4H"

$task | Set-ScheduledTask *>$null

Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
}

NVCleanUpdateTask

# Disable Gallery
Function DisableGallery {
try {
Expand Down Expand Up @@ -2964,24 +2999,6 @@ Detecting programs that cannot be installed with winget...
catch {
Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black
}

Function Webview2 {
$uri = "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/5afa70b3-c1d2-499e-b1a9-fe27ccf094b4/MicrosoftEdgeWebView2RuntimeInstallerX64.exe"
$outfile = "c:\webview2.exe"

# Download webview2
Silent #silently
Invoke-WebRequest -Uri $uri -Outfile $outfile

# Install webview2
Start-Process $outfile -ArgumentList "/silent", "/install" -Wait

# Remove downloaded file
Remove-Item $outfile -Recurse -ErrorAction SilentlyContinue

}

Webview2

}

Expand Down

0 comments on commit 8566fa8

Please sign in to comment.