mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Bug in $PathValue has been fixed
This commit is contained in:
@@ -51,8 +51,8 @@ setx GeckoWebDriver "C:\SeleniumWebDrivers\GeckoDriver" /M;
|
||||
setx ChromeWebDriver "C:\SeleniumWebDrivers\ChromeDriver" /M;
|
||||
|
||||
$regEnvKey = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\';
|
||||
$PathValue = Get-ItemPropertyValue -Path $reg -Name 'Path';
|
||||
$PathValue += ";C:\SeleniumWebDrivers\ChromeDriver";
|
||||
$PathValue = Get-ItemPropertyValue -Path $regEnvKey -Name 'Path';
|
||||
$PathValue += ";C:\SeleniumWebDrivers\ChromeDriver\";
|
||||
Set-ItemProperty -Path $regEnvKey -Name 'Path' -Value $PathValue;
|
||||
|
||||
exit 0;
|
||||
|
||||
Reference in New Issue
Block a user