Skip to content

Instantly share code, notes, and snippets.

@Novakov
Created March 24, 2014 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Novakov/9740924 to your computer and use it in GitHub Desktop.
Save Novakov/9740924 to your computer and use it in GitHub Desktop.
Task InstallEventStore {
echo "Installing EventStore service from $($eventStoreBin)"
$srvAnyPath = [System.IO.Path]::Combine($(Get-Location), '..\tools\srvany.exe')
New-Service -Name EventStore -BinaryPathName $srvAnyPath -DisplayName EventStore -StartupType Manual | Out-Null
New-Item HKLM:\SYSTEM\CurrentControlSet\services\EventStore\Parameters -ItemType Key | Out-Null
Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\EventStore\Parameters -Name Application -Value $eventStoreBin | Out-Null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment