Fix Packer Windows image build breakage
- Doxygen install failing because Doxygen pushed a new update, and removed their old download link *again*
- Removing use of Chocolatey for Doxygen install, because Chocolatey package isn't maintained and breaks for several weeks each time Doxygen does this

Co-authored-by: Mike Martell <mmartell@pivotal.io>
diff --git a/packer/windows-2016-base.json b/packer/windows-2016-base.json
index cefb0ad..62492e2 100644
--- a/packer/windows-2016-base.json
+++ b/packer/windows-2016-base.json
@@ -40,6 +40,12 @@
       ]
     },
     {
+      "type":"powershell",
+      "scripts":[
+        "windows/install-doxygen.ps1"
+      ]
+    },
+    {
       "type":"file",
       "source":"windows/init-ssh.ps1",
       "destination":"$Env:ProgramData/Amazon/EC2-Windows/Launch/Scripts/init-ssh.ps1"
diff --git a/packer/windows/install-dependencies.ps1 b/packer/windows/install-dependencies.ps1
index f2d73db..6b7ca14 100644
--- a/packer/windows/install-dependencies.ps1
+++ b/packer/windows/install-dependencies.ps1
@@ -17,7 +17,6 @@
 choco install cmake.portable -confirm
 choco install git.install -confirm
 choco install activeperl -confirm
-choco install doxygen.install --allowEmptyChecksums -confirm
 choco install dogtail.dotnet3.5sp1 -confirm
 choco install nunit.install --version 2.6.4 -confirm
 choco install netfx-4.5.2-devpack --allowEmptyChecksums -confirm
diff --git a/packer/windows/install-doxygen.ps1 b/packer/windows/install-doxygen.ps1
new file mode 100644
index 0000000..7afa855
--- /dev/null
+++ b/packer/windows/install-doxygen.ps1
@@ -0,0 +1,11 @@
+$package = 'doxygen.install'
+$url  = 'http://doxygen.nl/files/doxygen-1.8.16-setup.exe'
+$sha256 = 'c0d4bb19e87921b4aad2d0962bac1f6664bfb9d0f103658908af76565386c940'
+
+Import-Module C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1
+Install-ChocolateyPackage $package 'exe' '/VERYSILENT' $url -Checksum $sha256 -ChecksumType 'sha256'
+
+$oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).path
+$newpath = "$oldpath;C:\Program Files\doxygen\bin"
+Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $newPath
+$ENV:PATH=$newpath