Skip to content

Commit c582de2

Browse files
committed
Misc Windows CI updates #2
* Modify how RabbitMQ install dir is found in gha-run-tests.ps1 (cherry picked from commit 5f155d1)
1 parent 7f7346b commit c582de2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.ci/gha-run-tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ Write-Host "[INFO] Setting ERLANG_HOME to '$erlang_home'..."
1414
$env:ERLANG_HOME = $erlang_home
1515
[Environment]::SetEnvironmentVariable('ERLANG_HOME', $erlang_home, 'Machine')
1616

17+
$rabbitmq_base_path = (Get-ItemProperty -Name Install_Dir -Path 'HKLM:\SOFTWARE\WOW6432Node\VMware, Inc.\RabbitMQ Server').Install_Dir
1718
$regPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ'
1819
if (Test-Path 'HKLM:\SOFTWARE\WOW6432Node\')
1920
{
2021
$regPath = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ'
2122
}
22-
23-
$rabbitmq_base_path = Split-Path -Parent (Get-ItemProperty $regPath 'UninstallString').UninstallString
2423
$rabbitmq_version = (Get-ItemProperty $regPath "DisplayVersion").DisplayVersion
2524
$rabbitmqctl_path = Join-Path -Path $rabbitmq_base_path -ChildPath "rabbitmq_server-$rabbitmq_version" | Join-Path -ChildPath 'sbin' | Join-Path -ChildPath 'rabbitmqctl.bat'
2625

0 commit comments

Comments
 (0)