Merge branch 'master' of github.com:dmitry-shibanov/virtual-environments into v-dmshib/add-netcore-path-docs

This commit is contained in:
Dmitry Shibanov
2020-02-03 17:48:32 +03:00
10 changed files with 647 additions and 530 deletions
+3
View File
@@ -12,6 +12,9 @@ export ACCEPT_EULA=Y
# Install MySQL Client
apt-get install mysql-client -y
# InstallMySQL database development files
apt-get install libmysqlclient-dev -y
# Install MySQL Server
MYSQL_ROOT_PASSWORD=root
echo "mysql-server mysql-server/root_password password $MYSQL_ROOT_PASSWORD" | debconf-set-selections
+3 -2
View File
@@ -77,9 +77,10 @@
"systemctl disable apt-daily.timer",
"systemctl disable apt-daily-upgrade.timer",
"systemctl disable apt-daily-upgrade.service",
"echo '* soft nofile 50000 \n* hard nofile 50000' >> /etc/security/limits.conf",
"echo '* soft nofile 65536 \n* hard nofile 65536' >> /etc/security/limits.conf",
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session",
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive"
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive",
"echo 'DefaultLimitNOFILE=65536' >> /etc/systemd/system.conf"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
+3 -2
View File
@@ -80,9 +80,10 @@
"systemctl disable apt-daily.timer",
"systemctl disable apt-daily-upgrade.timer",
"systemctl disable apt-daily-upgrade.service",
"echo '* soft nofile 50000 \n* hard nofile 50000' >> /etc/security/limits.conf",
"echo '* soft nofile 65536 \n* hard nofile 65536' >> /etc/security/limits.conf",
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session",
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive"
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive",
"echo 'DefaultLimitNOFILE=65536' >> /etc/systemd/system.conf"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
+12
View File
@@ -354,6 +354,12 @@
"{{ template_dir }}/scripts/Installers/Install-Chrome.ps1"
]
},
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Install-Edge.ps1"
]
},
{
"type": "powershell",
"scripts":[
@@ -655,6 +661,12 @@
"{{ template_dir }}/scripts/Installers/Validate-Chrome.ps1"
]
},
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Validate-Edge.ps1"
]
},
{
"type": "powershell",
"scripts":[
+84 -72
View File
@@ -1,6 +1,6 @@
# Windows Server 2016
The following software is installed on machines with the 20191009.1 update.
The following software is installed on machines with the 20200120.1 update.
Components marked with **\*** have been upgraded since the previous version of the image.
@@ -13,33 +13,32 @@ _Environment:_
## Docker
_Version:_ 19.03.3<br/>
_Version:_ 19.03.5<br/>
_Environment:_
* PATH: contains location of docker.exe
## Docker-compose
_Version:_ 1.24.0<br/>
_Version:_ 1.25.1<br/>
_Environment:_
* PATH: contains location of docker-compose.exe
## Powershell Core
_Version:_ 6.2.3
<br/>
_Version:_ 6.2.3␍<br/>
## Docker images
The following container images have been cached:
* mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2016 (Digest: sha256:f247ce2cdad4711b6a597bf3a84581278251e13176a2129158e3138fa7c6730d)
* mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2016 (Digest: sha256:ebb0693431d47cbd070f8b6473b5a3b79896e8a146d202f78b92cabf6ceb4b3d)
* mcr.microsoft.com/windows/servercore:ltsc2016 (Digest: sha256:45469202b1d2630e502330c0c4e977fac9b4540611c9778dedfc140f683f8f68)
* mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2016 (Digest: sha256:a1bd1a6dc00f2734b5071b9295f715f36a653e4b2d259c1a4a4d9e8cd6f3ade8)
* mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2016 (Digest: sha256:7e81f462be36ba1362062306426c65547e6d63b2eab0b5583808581081393a79)
* mcr.microsoft.com/windows/servercore:ltsc2016 (Digest: sha256:42be24b8810c861cc1b3fe75c5e99f75061cb45fdbae1de46d151c18cc8e6a9a)
* microsoft/aspnetcore-build:1.0-2.0 (Digest: sha256:9ecc7c5a8a7a11dca5f08c860165646cb30d084606360a3a72b9cbe447241c0c)
* mcr.microsoft.com/windows/nanoserver:10.0.14393.953 (Digest: sha256:fc60bd5ae0e61b334ce1cf1bcbf20c10c36b4c5482a01da319c9c989f9e6e268)
## Visual Studio 2017 Enterprise
_Version:_ VisualStudio/15.9.16+28307.858<br/>
_Version:_ VisualStudio/15.9.19+28307.1000<br/>
_Location:_ C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
The following workloads including required and recommended components are installed with Visual Studio 2017:
@@ -157,8 +156,8 @@ _Version:_ 10.0.17763.0<br/>
## Azure Service Fabric
_SDK Version:_ 3.3.617.9590<br/>
_Runtime Version:_ 6.4.617.9590
_SDK Version:_ 4.0.457.9590<br/>
_Runtime Version:_ 7.0.457.9590
## WinAppDriver
@@ -326,33 +325,6 @@ _Location:_ C:\Program Files (x86)\Android\android-sdk\platforms\android-21
_Location:_ C:\Program Files (x86)\Android\android-sdk\platforms\android-19
## Azure/AzureRM Powershell modules
#### 2.1.0
This version is installed and is available via Get-Module -ListAvailable
#### 3.8.0
This version is saved but not installed
_Location:_ C:\Modules\azurerm_3.8.0\AzureRM\3.8.0\AzureRM.psd1
#### 4.2.1
This version is saved but not installed
_Location:_ C:\Modules\azurerm_4.2.1\AzureRM\4.2.1\AzureRM.psd1
#### 5.1.1
This version is saved but not installed
_Location:_ C:\Modules\azurerm_5.1.1\AzureRM\5.1.1\AzureRM.psd1
#### 6.7.0
This version is saved but not installed
_Location:_ C:\Modules\azurerm_6.7.0\AzureRM\6.7.0\AzureRM.psd1
## TLS12
_Version:_ 1.2<br/>
@@ -360,25 +332,29 @@ _Description:_ .NET has been configured to use TLS 1.2 by default
## Azure CLI
_Version:_ 2.0.74
_Version:_ 2.0.80
_Environment:_
* PATH: contains location of az.cmd
## Azure DevOps Cli extension
_Version:_ azure-devops 0.13.0
_Version:_ azure-devops 0.17.0
## Python
_Version:_ 2.7.16 (x64)<br/>_Version:_ 2.7.16 (x86)<br/>_Version:_ 3.4.4 (x64)<br/>_Version:_ 3.4.4 (x86)<br/>_Version:_ 3.5.4 (x64)<br/>_Version:_ 3.5.4 (x86)<br/>_Version:_ 3.6.8 (x64)<br/>_Version:_ 3.6.8 (x86)<br/>_Version:_ 3.7.4 (x64)<br/>_Version:_ 3.7.4 (x86)<br/><br/>
_Version:_ 2.7.17 (x64)<br/>_Version:_ 3.5.4 (x64)<br/>_Version:_ 3.6.8 (x64)<br/>_Version:_ 3.7.6 (x64)<br/>_Version:_ 3.8.1 (x64)<br/>
## Python
_Version:_ 2.7.17 (x64)<br/>_Version:_ 3.5.4 (x64)<br/>_Version:_ 3.6.8 (x64)<br/>_Version:_ 3.7.6 (x64)<br/>_Version:_ 3.8.1 (x64)<br/>_Version:_ 2.7.17 (x86)<br/>_Version:_ 3.5.4 (x86)<br/>_Version:_ 3.6.8 (x86)<br/>_Version:_ 3.7.6 (x86)<br/>_Version:_ 3.8.1 (x86)<br/>
## PyPy
_Version:_ 2.7.13 (x86)<br/>_Version:_ 3.5.3 (x86)<br/><br/>
_Version:_ 2.7.13 (x86)<br/>_Version:_ 3.6.9 (x86)<br/>
## Ruby
_Version:_ 2.4.6 (x64)<br/>_Version:_ 2.5.5 (x64)<br/>_Version:_ 2.6.3 (x64)<br/><br/>
_Version:_ 2.4.9 (x64)<br/>_Version:_ 2.5.7 (x64)<br/>_Version:_ 2.6.5 (x64)<br/>_Version:_ 2.7.0 (x64)<br/>
## Python (64 bit)
@@ -386,19 +362,19 @@ _Version:_ 2.4.6 (x64)<br/>_Version:_ 2.5.5 (x64)<br/>_Version:_ 2.6.3 (x64)<br/
_Environment:_
* PATH: contains location of python.exe
#### Python 2.7.16
#### Python 2.7.17
_Location:_ C:/hostedtoolcache/windows/Python/2.7*/x64
## Git
_Version:_ 2.23.0<br/>
_Version:_ 2.25.0<br/>
_Environment:_
* PATH: contains location of git.exe
## Git Large File Storage (LFS)
_Version:_ 2.8.0<br/>
_Version:_ 2.9.2<br/>
_Environment:_
* PATH: contains location of git-lfs.exe
* GIT_LFS_PATH: location of git-lfs.exe
@@ -444,26 +420,30 @@ _Environment:_
## PHP (x64)
#### 7.3.10
#### 7.4.1
_Environment:_
* PATH: contains the location of php.exe version 7.3.10
* PHPROOT: root directory of the PHP 7.3.10 installation
* PATH: contains the location of php.exe version 7.4.1
* PHPROOT: root directory of the PHP 7.4.1 installation
## Ruby (x64)
#### 2.5.5p157
#### 2.5.7p206
_Environment:_
* Location: C:\hostedtoolcache\windows\Ruby\2.5.5\x64\bin
* PATH: contains the location of ruby.exe version 2.5.5p157
* Location: C:\hostedtoolcache\windows\Ruby\2.5.7\x64\bin
* PATH: contains the location of ruby.exe version 2.5.7p206
## Rust (64-bit)
#### 1.38.0
#### 1.40.0
_Location:_ C:\Rust\.cargo\bin
_Environment:_
* PATH: contains the location of rustc.exe
## sbt
## Subversion
_Version:_ 1.8.17<br/>
@@ -473,12 +453,12 @@ _Environment:_
## Google Chrome
_version:_
77.0.3865.90
79.0.3945.130
## Mozilla Firefox
_version:_
69.0.1
72.0.1
## Selenium Web Drivers
@@ -486,7 +466,7 @@ _version:_
#### Chrome Driver
_version:_
77.0.3865.40
79.0.3945.36
_Environment:_
* ChromeWebDriver: location of chromedriver.exe
@@ -510,18 +490,18 @@ _Environment:_
## Node.js
_Version:_ 10.16.3<br/>
_Version:_ 12.14.1<br/>
_Architecture:_ x64<br/>
_Environment:_
* PATH: contains location of node.exe<br/>
* Gulp CLI version: 2.2.0 Local version: Unknown<br/>
* Grunt grunt-cli v1.3.2<br/>
* Bower 1.8.8<br/>
* Yarn 1.19.1<br/>
* Yarn 1.21.1<br/>
## npm
_Version:_ 6.9.0<br/>
_Version:_ 6.13.4<br/>
_Environment:_
* PATH: contains location of npm.cmd
@@ -537,9 +517,9 @@ _Environment:_
_Location:_ C:\Program Files\Java\zulu-7-azure-jdk_7.31.0.5-7.0.232-win_x64
#### 11.0.4
#### 1.7.0_232
_Location:_ C:\Program Files\Java\zulu-11-azure-jdk_11.33.15-11.0.4-win_x64
_Location:_
## Ant
@@ -558,13 +538,13 @@ _Environment:_
## Gradle
_Version:_ 5.6.2<br/>
_Version:_ 6.0.1<br/>
_Environment:_
* PATH: contains location of gradle
## Cmake
_Version:_ 3.15.4<br/>
_Version:_ 3.16.2<br/>
_Environment:_
* PATH: contains location of cmake.exe
@@ -580,15 +560,22 @@ _Environment:_
* PATH: contains location of dotnet.exe
_SDK:_
* 3.1.101 C:\Program Files\dotnet\sdk\3.1.101
* 3.1.100 C:\Program Files\dotnet\sdk\3.1.100
* 3.0.102 C:\Program Files\dotnet\sdk\3.0.102
* 3.0.101 C:\Program Files\dotnet\sdk\3.0.101
* 3.0.100 C:\Program Files\dotnet\sdk\3.0.100
* 2.2.402 C:\Program Files\dotnet\sdk\2.2.402
* 2.2.401 C:\Program Files\dotnet\sdk\2.2.401
* 2.2.301 C:\Program Files\dotnet\sdk\2.2.301
* 2.2.300 C:\Program Files\dotnet\sdk\2.2.300
* 2.2.207 C:\Program Files\dotnet\sdk\2.2.207
* 2.2.206 C:\Program Files\dotnet\sdk\2.2.206
* 2.2.205 C:\Program Files\dotnet\sdk\2.2.205
* 2.2.204 C:\Program Files\dotnet\sdk\2.2.204
* 2.2.203 C:\Program Files\dotnet\sdk\2.2.203
* 2.2.202 C:\Program Files\dotnet\sdk\2.2.202
* 2.2.110 C:\Program Files\dotnet\sdk\2.2.110
* 2.2.109 C:\Program Files\dotnet\sdk\2.2.109
* 2.2.108 C:\Program Files\dotnet\sdk\2.2.108
* 2.2.107 C:\Program Files\dotnet\sdk\2.2.107
@@ -599,15 +586,20 @@ _SDK:_
* 2.2.102 C:\Program Files\dotnet\sdk\2.2.102
* 2.2.101 C:\Program Files\dotnet\sdk\2.2.101
* 2.2.100 C:\Program Files\dotnet\sdk\2.2.100
* 2.1.803 C:\Program Files\dotnet\sdk\2.1.803
* 2.1.802 C:\Program Files\dotnet\sdk\2.1.802
* 2.1.801 C:\Program Files\dotnet\sdk\2.1.801
* 2.1.701 C:\Program Files\dotnet\sdk\2.1.701
* 2.1.700 C:\Program Files\dotnet\sdk\2.1.700
* 2.1.608 C:\Program Files\dotnet\sdk\2.1.608
* 2.1.607 C:\Program Files\dotnet\sdk\2.1.607
* 2.1.606 C:\Program Files\dotnet\sdk\2.1.606
* 2.1.605 C:\Program Files\dotnet\sdk\2.1.605
* 2.1.604 C:\Program Files\dotnet\sdk\2.1.604
* 2.1.603 C:\Program Files\dotnet\sdk\2.1.603
* 2.1.602 C:\Program Files\dotnet\sdk\2.1.602
* 2.1.511 C:\Program Files\dotnet\sdk\2.1.511
* 2.1.510 C:\Program Files\dotnet\sdk\2.1.510
* 2.1.509 C:\Program Files\dotnet\sdk\2.1.509
* 2.1.508 C:\Program Files\dotnet\sdk\2.1.508
* 2.1.507 C:\Program Files\dotnet\sdk\2.1.507
@@ -627,6 +619,12 @@ _SDK:_
* 1.1.14 C:\Program Files\dotnet\sdk\1.1.14
_Runtime:_
* 3.1.1 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.1
* 3.1.0 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.0
* 3.0.2 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.0.2
* 3.0.1 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.0.1
* 3.0.0 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.0.0
* 2.2.8 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.8
* 2.2.7 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.7
* 2.2.6 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.6
* 2.2.5 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.5
@@ -643,6 +641,8 @@ _Runtime:_
* 2.1.4 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.4
* 2.1.3 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.3
* 2.1.2 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.2
* 2.1.15 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.15
* 2.1.14 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.14
* 2.1.13 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.13
* 2.1.12 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.12
* 2.1.11 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.11
@@ -665,7 +665,7 @@ _Version:_ 1.0
## SQLServer PS
_Version:_ 21.1.18179
_Version:_ 21.1.18218
## MinGW
@@ -675,7 +675,7 @@ _Environment:_
## TypeScript
_Version:_ Version 3.6.3<br/>
_Version:_ Version 3.7.5<br/>
## Miniconda
@@ -685,7 +685,7 @@ _Environment:_
## Azure CosmosDb Emulator
_Version:_ 2.5.7.0<br/>
_Version:_ 2.7.2.0<br/>
_Location:_ C:\Program Files\Azure Cosmos DB Emulator\
## 7zip
@@ -702,7 +702,7 @@ _Version:_ jq-1.6<br/>
## Inno Setup
_Version:_ 6.0.2<br/>
_Version:_ 6.0.3<br/>
## Perl
@@ -710,19 +710,31 @@ _Version:_ v5.26.2<br/>
## GitVersion
_Version:_ 5.0.1.0<br/>
_Version:_ 5.1.3.0<br/>
## OpenSSL
_Version:_ 1.1.1c at C:\Program Files\Git\usr\bin\openssl.exe<br/>_Version:_ 1.1.1c at C:\Program Files\Git\mingw64\bin\openssl.exe<br/>_Version:_ 1.0.2j at C:\Program Files (x86)\Subversion\bin\openssl.exe<br/>_Version:_ 1.1.1b at C:\Strawberry\c\bin\openssl.exe<br/>_Version:_ 1.1.1 at C:\Program Files\OpenSSL\bin\openssl.exe<br/>
_Version:_ 1.1.1d at C:\Program Files\Git\mingw64\bin\openssl.exe<br/>_Version:_ 1.1.1d at C:\Program Files\Git\usr\bin\openssl.exe<br/>_Version:_ 1.0.2j at C:\Program Files (x86)\Subversion\bin\openssl.exe<br/>_Version:_ 1.1.1c at C:\Strawberry\c\bin\openssl.exe<br/>_Version:_ 1.1.1 at C:\Program Files\OpenSSL\bin\openssl.exe<br/>
## Cloud Foundry CLI
_Version:_ 6.46.1<br/>
_Version:_ 6.49.0<br/>
## Vcpkg
_Version:_ 2019.09.12-nohash<br/>
_Version:_ 2020.01.17-nohash<br/>
_Environment:_
* PATH: contains location of the vcpkg directory
* VCPKG_INSTALLATION_ROOT: root directory of the vcpkg installation
## Kubectl
_Version:_ Client Version: v1.17.1<br/>
_Environment:_
* PATH: contains location of kubectl.exe
## Kind
_Version:_ v0.5.1<br/>
_Environment:_
* PATH: contains location of kind.exe
+12
View File
@@ -323,6 +323,12 @@
"{{ template_dir }}/scripts/Installers/Install-Chrome.ps1"
]
},
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Install-Edge.ps1"
]
},
{
"type": "powershell",
"scripts":[
@@ -624,6 +630,12 @@
"{{ template_dir }}/scripts/Installers/Validate-Chrome.ps1"
]
},
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Validate-Edge.ps1"
]
},
{
"type": "powershell",
"scripts":[
@@ -0,0 +1,6 @@
################################################################################
## File: Install-Edge.ps1
## Desc: Install latest stable version of Microsoft Edge browser
################################################################################
choco install microsoft-edge -y
@@ -17,11 +17,13 @@ catch {
Expand-Archive -Path $DriversZipFile -DestinationPath $DestinationPath -Force;
Remove-Item $DriversZipFile;
$ChromeDriverPath = "$DestinationPath\SeleniumWebDrivers\ChromeDriver";
$ChromeDriverPath = "${DestinationPath}SeleniumWebDrivers\ChromeDriver";
Write-Host "Chrome driver path: [$ChromeDriverPath]";
Remove-Item -Path "$ChromeDriverPath\*" -Force;
$ChromePath = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(default)';
# Reinstall Chrome Web Driver
$RegistryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"
$ChromePath = (Get-ItemProperty "$RegistryPath\chrome.exe").'(default)';
[version]$ChromeVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($ChromePath).ProductVersion;
Write-Host "Chrome version: [$ChromeVersion]";
@@ -44,16 +46,39 @@ Write-Host "Chrome driver install....";
Expand-Archive -Path "$ChromeDriverPath\chromedriver_win32.zip" -DestinationPath $ChromeDriverPath -Force;
Remove-Item -Path "$ChromeDriverPath\chromedriver_win32.zip" -Force;
Write-Host "Setting the environment variables";
# Install Microsoft Edge Web Driver
Write-Host "Microsoft Edge driver download...."
$EdgeDriverPath = "${DestinationPath}SeleniumWebDrivers\EdgeDriver"
if (-not (Test-Path -Path $EdgeDriverPath)) {
New-Item -Path $EdgeDriverPath -ItemType "directory"
}
$EdgePath = (Get-ItemProperty "$RegistryPath\msedge.exe").'(default)'
[version]$EdgeVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($EdgePath).ProductVersion
$EdgeDriverVersionUrl = "https://msedgedriver.azureedge.net/LATEST_RELEASE_$($EdgeVersion.Major)"
$EdgeDriverVersionFile = "$EdgeDriverPath\versioninfo.txt"
Invoke-WebRequest -Uri $EdgeDriverVersionUrl -OutFile $EdgeDriverVersionFile
$EdgeDriverLatestVersion = Get-Content -Path $EdgeDriverVersionFile
$EdgeDriverDownloadUrl="https://msedgedriver.azureedge.net/${EdgeDriverLatestVersion}/edgedriver_win64.zip"
$DestFile = "$EdgeDriverPath\edgedriver_win64.zip"
Invoke-WebRequest -Uri $EdgeDriverDownloadUrl -OutFile $DestFile
Write-Host "Microsoft Edge driver install...."
Expand-Archive -Path $DestFile -DestinationPath $EdgeDriverPath -Force
Remove-Item -Path $DestFile -Force
Write-Host "Setting the environment variables"
setx IEWebDriver "C:\SeleniumWebDrivers\IEDriver" /M;
setx GeckoWebDriver "C:\SeleniumWebDrivers\GeckoDriver" /M;
setx ChromeWebDriver "C:\SeleniumWebDrivers\ChromeDriver" /M;
setx ChromeWebDriver "$ChromeDriverPath" /M;
setx EdgeWebDriver "$EdgeDriverPath" /M;
$regEnvKey = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\';
$PathValue = Get-ItemPropertyValue -Path $regEnvKey -Name 'Path';
$PathValue += ";C:\SeleniumWebDrivers\ChromeDriver\";
$PathValue += ";$ChromeDriverPath\";
$PathValue += ";$EdgeDriverPath\";
Set-ItemProperty -Path $regEnvKey -Name 'Path' -Value $PathValue;
exit 0;
@@ -0,0 +1,25 @@
################################################################################
## File: Validate-Edge.ps1
## Desc: Validate Microsoft Edge installation.
################################################################################
$RegistryKey = "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe"
if (Test-Path $RegistryKey)
{
$SoftwareName = "Microsoft Edge"
$VersionInfo = (Get-Item (Get-ItemProperty $RegistryKey).'(Default)').VersionInfo
$VersionInfo
$Description = @"
_version:_
$($VersionInfo.FileVersion)
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
exit 0
}
else
{
Write-Host "Microsoft Edge is not installed."
exit 1
}
@@ -6,24 +6,36 @@
$IEDriverPath = $env:IEWebDriver
$GeckoDriverPath = $env:GeckoWebDriver
$ChromeDriverPath = $env:ChromeWebDriver
$EdgeDriverPath = $env:EdgeWebDriver
if(($IEDriverPath -like "C:\SeleniumWebDrivers\IEDriver") -and ($GeckoDriverPath -like "C:\SeleniumWebDrivers\GeckoDriver") -and ($ChromeDriverPath -like "C:\SeleniumWebDrivers\ChromeDriver"))
if (
($IEDriverPath -like "C:\SeleniumWebDrivers\IEDriver") -and
($GeckoDriverPath -like "C:\SeleniumWebDrivers\GeckoDriver") -and
($ChromeDriverPath -like "C:\SeleniumWebDrivers\ChromeDriver") -and
($EdgeDriverPath -like "C:\SeleniumWebDrivers\EdgeDriver")
)
{
Write-Host "IEDriver installed at "
(Get-Item "C:\SeleniumWebDrivers\IEDriver\IEDriverServer.exe").VersionInfo
(Get-Item "$IEDriverPath\IEDriverServer.exe").VersionInfo
Write-Host "Gecko Driver installed at "
(Get-Item "C:\SeleniumWebDrivers\GeckoDriver\geckodriver.exe").VersionInfo
(Get-Item "$GeckoDriverPath\geckodriver.exe").VersionInfo
Write-Host "Chrome Driver installed at "
(Get-Item "C:\SeleniumWebDrivers\ChromeDriver\chromedriver.exe").VersionInfo
(Get-Item "$ChromeDriverPath\chromedriver.exe").VersionInfo
$chromedriverversion = Get-Content -Path "C:\SeleniumWebDrivers\ChromeDriver\versioninfo.txt"
$geckodriverversion = Get-Content -Path "C:\SeleniumWebDrivers\GeckoDriver\versioninfo.txt"
$iedriverversion = Get-Content -Path "C:\SeleniumWebDrivers\IEDriver\versioninfo.txt"
Write-Host "Edge Driver installed at "
(Get-Item "$EdgeDriverPath\msedgedriver.exe").VersionInfo
$versionFileName = "versioninfo.txt";
$chromedriverversion = Get-Content -Path "$IEDriverPath\$versionFileName"
$geckodriverversion = Get-Content -Path "$GeckoDriverPath\$versionFileName"
$iedriverversion = Get-Content -Path "$ChromeDriverPath\$versionFileName"
$edgedriverversion = Get-Content -Path "$EdgeDriverPath\$versionFileName"
# Adding description of the software to Markdown
$SoftwareName = "Selenium Web Drivers"
@@ -54,6 +66,14 @@ $iedriverversion
_Environment:_
* IEWebDriver: location of IEDriverServer.exe
#### Microsoft Edge Driver
_version:_
$edgedriverversion
_Environment:_
* EdgeWebDriver: location of msedgedriver.exe
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description