Cleanup old markdown documenation approach (#979)

This commit is contained in:
Aleksandr Chebotov
2020-06-02 20:07:12 +03:00
committed by GitHub
parent 8c8f384a61
commit 43e26fa96b
72 changed files with 133 additions and 1541 deletions

View File

@@ -3,43 +3,35 @@
## Desc: Validate WinAppDriver installation
################################################################################
$wad = "Windows Application Driver";
if (${Env:ProgramFiles(x86)})
$wad = "Windows Application Driver"
if (${env:ProgramFiles(x86)})
{
$wadPath = "${Env:ProgramFiles(x86)}\$wad"
$wadPath = "${env:ProgramFiles(x86)}\$wad"
}
else
{
$wadPath = "${Env:ProgramFiles}\$wad"
$wadPath = "${env:ProgramFiles}\$wad"
}
if(Test-Path $wadPath -PathType Any)
if (Test-Path $wadPath -PathType Any)
{
Write-Host "WinAppDriver directory found."
Write-Host "WinAppDriver directory found."
}
else
{
Write-Host "Failed to locate WinAppDriver directory. Exiting."
exit 1
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)
if ((Get-ItemProperty -Path $path | Select-Object -ExpandProperty "AllowDevelopmentWithoutDevLicense") -eq 1)
{
Write-Host "Developer Mode is successfully provisioned."
Write-Host "Developer Mode is successfully provisioned."
}
else
{
Write-Host "Developer Mode was not successfully provisioned."
exit 1
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