mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Revert "Another mop up commit to add missing changes from the last mop-up."
This reverts commit 1dcd276b1e.
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
################################################################################
|
||||
## File: Validate-Chrome.ps1
|
||||
## Desc: Validate Google Chrome installation.
|
||||
################################################################################
|
||||
|
||||
if(Test-Path "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe")
|
||||
{
|
||||
(Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo
|
||||
|
||||
$SoftwareName = "Google Chrome"
|
||||
$fileVersion = (Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo.FileVersion
|
||||
$Description = @"
|
||||
_version:_
|
||||
$fileVersion
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
exit 0
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Google Chrome is not installed."
|
||||
exit 1
|
||||
}
|
||||
################################################################################
|
||||
## File: Validate-Chrome.ps1
|
||||
## Desc: Validate Google Chrome installation.
|
||||
################################################################################
|
||||
|
||||
if(Test-Path "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe")
|
||||
{
|
||||
(Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo
|
||||
|
||||
$SoftwareName = "Google Chrome"
|
||||
$fileVersion = (Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo.FileVersion
|
||||
$Description = @"
|
||||
_version:_
|
||||
$fileVersion
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
exit 0
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Google Chrome is not installed."
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user