Skip to content

Commit 6690826

Browse files
committed
Reinstate Install Section, Update Indenting
1 parent fb1027b commit 6690826

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

appveyor.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ init:
1111
- choco install -y erlang
1212
- choco install -y rabbitmq
1313

14+
install:
15+
- copy "Local.props.example" "Local.props"
16+
- ps: |
17+
$localpropsitem = Get-ChildItem ".\Local.props"
18+
$xml = New-Object -TypeName XML
19+
$xml.Load($localpropsitem)
20+
$xml.Project.PropertyGroup.PropAssemblyVersion = ${env:APPVEYOR_BUILD_VERSION}
21+
$xml.Save($localpropsitem)
22+
- ps: |
23+
$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ"
24+
if (Test-Path "HKLM:\SOFTWARE\Wow6432Node\") { $regPath = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ" }
25+
$path = Split-Path -Parent (Get-ItemProperty $regPath "UninstallString").UninstallString
26+
$version = (Get-ItemProperty $regPath "DisplayVersion").DisplayVersion
27+
[Environment]::SetEnvironmentVariable("RABBITMQ_HOME", "$path\rabbitmq_server-$version", "User")
28+
[Environment]::SetEnvironmentVariable("RABBITMQ_RABBITMQCTL_PATHen", "$path\rabbitmq_server-$version\sbin\rabietmqctl.bat", "User")
29+
1430
build:
1531
parallel: true
1632
project: RabbitMQDotNetClient.sln

0 commit comments

Comments
 (0)