From 01dbee1a99e4b47087754cfb2ff024dc13abf765 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sat, 26 Mar 2022 08:49:53 +0100 Subject: [PATCH] Update to approved verbs --- Winget-AutoUpdate-Install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index ac51224..544d15e 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -34,7 +34,7 @@ param( <# FUNCTIONS #> -function Check-Prerequisites{ +function Install-Prerequisites{ #Check if Visual C++ 2019 installed $app = "Microsoft Visual C++*2019*" $path = Get-Item HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object { $_.GetValue("DisplayName") -like $app} @@ -181,7 +181,7 @@ Write-host "# #" Write-host "###################################`n" Write-host "Installing to $WingetUpdatePath\" -Check-Prerequisites +Install-Prerequisites Install-WingetAutoUpdate