commit
ba83f2b531
|
@ -33,7 +33,7 @@ param(
|
||||||
function Check-Prerequisites{
|
function Check-Prerequisites{
|
||||||
#Check if Visual C++ 2019 installed
|
#Check if Visual C++ 2019 installed
|
||||||
$app = "Microsoft Visual C++*2019*"
|
$app = "Microsoft Visual C++*2019*"
|
||||||
$path = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -like $app } | Select-Object -Property Displayname, DisplayVersion
|
$path = Get-Item HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object { $_.GetValue("DisplayName") -like $app}
|
||||||
|
|
||||||
#If not installed, ask for installation
|
#If not installed, ask for installation
|
||||||
if (!($path)){
|
if (!($path)){
|
||||||
|
@ -173,4 +173,4 @@ Check-Prerequisites
|
||||||
Install-WingetAutoUpdate
|
Install-WingetAutoUpdate
|
||||||
|
|
||||||
Write-host "End of process."
|
Write-host "End of process."
|
||||||
Start-Sleep 3
|
Start-Sleep 3
|
||||||
|
|
Loading…
Reference in New Issue