added icon for uninstall panel

pull/87/head
Romain 2022-05-23 19:02:47 +02:00
parent f30250b4f3
commit 056acae8aa
2 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,7 @@ function Install-WingetAutoUpdate{
$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate" $regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate"
New-Item $regPath -Force New-Item $regPath -Force
New-ItemProperty $regPath -Name DisplayName -Value "Winget-AutoUpdate (WAU)" -Force New-ItemProperty $regPath -Name DisplayName -Value "Winget-AutoUpdate (WAU)" -Force
New-ItemProperty $regPath -Name DisplayIcon -Value "C:\Windows\System32\shell32.dll,-16739" -Force
New-ItemProperty $regPath -Name DisplayVersion -Value 1.11.0 -Force New-ItemProperty $regPath -Name DisplayVersion -Value 1.11.0 -Force
New-ItemProperty $regPath -Name InstallLocation -Value $WingetUpdatePath -Force New-ItemProperty $regPath -Name InstallLocation -Value $WingetUpdatePath -Force
New-ItemProperty $regPath -Name UninstallString -Value "powershell.exe -noprofile -executionpolicy bypass -file `"$WingetUpdatePath\WAU-Uninstall.ps1`"" -Force New-ItemProperty $regPath -Name UninstallString -Value "powershell.exe -noprofile -executionpolicy bypass -file `"$WingetUpdatePath\WAU-Uninstall.ps1`"" -Force

View File

@ -10,6 +10,7 @@ function Invoke-PostUpdateActions {
if (!(test-path $regPath)) { if (!(test-path $regPath)) {
New-Item $regPath -Force New-Item $regPath -Force
New-ItemProperty $regPath -Name DisplayName -Value "Winget-AutoUpdate (WAU)" -Force New-ItemProperty $regPath -Name DisplayName -Value "Winget-AutoUpdate (WAU)" -Force
New-ItemProperty $regPath -Name DisplayIcon -Value "C:\Windows\System32\shell32.dll,-16739" -Force
New-ItemProperty $regPath -Name NoModify -Value 1 -Force New-ItemProperty $regPath -Name NoModify -Value 1 -Force
New-ItemProperty $regPath -Name NoRepair -Value 1 -Force New-ItemProperty $regPath -Name NoRepair -Value 1 -Force
New-ItemProperty $regPath -Name Publisher -Value "Romanitho" -Force New-ItemProperty $regPath -Name Publisher -Value "Romanitho" -Force