Appveyor build machines come with Chocolatey pre installed so a good first stop would be to go here to see if they have a package that suits your requirements. If so, its an easy one line addition to your appveyor.yml install section.
on 02 May, 2018 02:59 PM
Thank you so much for this advice. I tried to follow it, but the build hangs and times out here:
Chocolatey timed out waiting for the command to finish. The timeout
specified (or the default value) was '2700' seconds. Perhaps try a
higher `--execution-timeout`? See `choco -h` for details.
I realized that the problem is that the installer tries to add to the machine path environment variable which makes a system dialog pop up notifying that the path variable is too large.
Workaround is to modify that variable,
Do this before you run the choco install gpg4win command.
However, i'm not sure if the removal of all those values in the path will affect your build. You may have to add what you need to the process path with a simple SET PATH=%PATH%;<whatever-you-need>
The installer itself will put gpg in the in the path (that is what was preventing the installer from exiting in the first place!). Furthermore, when you set the path with SET PATH=%PATH%;<whatever-you-need> you are setting the process path variable not the variable for the machine.