mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,45 +1,45 @@
|
||||
################################################################################
|
||||
## File: Validate-WinAppDriver.ps1
|
||||
## Desc: Validate WinAppDriver installation
|
||||
################################################################################
|
||||
|
||||
$wad = "Windows Application Driver";
|
||||
if (${Env:ProgramFiles(x86)})
|
||||
{
|
||||
$wadPath = "${Env:ProgramFiles(x86)}\$wad"
|
||||
}
|
||||
else
|
||||
{
|
||||
$wadPath = "${Env:ProgramFiles}\$wad"
|
||||
}
|
||||
|
||||
if(Test-Path $wadPath -PathType Any)
|
||||
{
|
||||
Write-Host "WinAppDriver directory found."
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Failed to locate WinAppDriver directory. Exiting."
|
||||
exit 1
|
||||
}
|
||||
|
||||
#Validate if Developer Mode is enabled
|
||||
$path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock";
|
||||
if((Get-ItemProperty -Path $path | Select-Object -ExpandProperty "AllowDevelopmentWithoutDevLicense") -eq 1)
|
||||
{
|
||||
Write-Host "Developer Mode is successfully provisioned."
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Developer Mode was not successfully provisioned."
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "WinAppDriver"
|
||||
$version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe").FileVersion
|
||||
$Description = @"
|
||||
_Version:_ $version<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
################################################################################
|
||||
## File: Validate-WinAppDriver.ps1
|
||||
## Desc: Validate WinAppDriver installation
|
||||
################################################################################
|
||||
|
||||
$wad = "Windows Application Driver";
|
||||
if (${Env:ProgramFiles(x86)})
|
||||
{
|
||||
$wadPath = "${Env:ProgramFiles(x86)}\$wad"
|
||||
}
|
||||
else
|
||||
{
|
||||
$wadPath = "${Env:ProgramFiles}\$wad"
|
||||
}
|
||||
|
||||
if(Test-Path $wadPath -PathType Any)
|
||||
{
|
||||
Write-Host "WinAppDriver directory found."
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Failed to locate WinAppDriver directory. Exiting."
|
||||
exit 1
|
||||
}
|
||||
|
||||
#Validate if Developer Mode is enabled
|
||||
$path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock";
|
||||
if((Get-ItemProperty -Path $path | Select-Object -ExpandProperty "AllowDevelopmentWithoutDevLicense") -eq 1)
|
||||
{
|
||||
Write-Host "Developer Mode is successfully provisioned."
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Developer Mode was not successfully provisioned."
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "WinAppDriver"
|
||||
$version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe").FileVersion
|
||||
$Description = @"
|
||||
_Version:_ $version<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user