set PACKAGE_RELEASE=%1
set PACKAGE_BUILD=%2

REM Preliminary support for windows, 64bit agent hard coded
REM https://cfengine-package-repos.s3.amazonaws.com/enterprise/Enterprise-3.7.0/agent/windows_x86_64/cfengine-nova-3.7.0-x86_64.msi

echo "Open Port 5308 for Report Collection"
netsh advfirewall firewall add rule name="CFEngine cf-serverd" dir=in action=allow protocol=TCP localport=5308

echo "Installing CFEngine Enterprise Windows agent %PACKAGE_RELEASE%"
msiexec /quiet /log C:\cfengine-nova-install-%PACKAGE_RELEASE%.log /i C:\vagrant\packages\windows_x86_64\cfengine-nova-%PACKAGE_RELEASE%-x86_64.msi
