bentonstark / starksoft-aspen

.net / mono security and cryptography library that provides client support for ftps, gnupg, smartcard, and socks / http proxies
106 stars 49 forks source link

Support 64bit Windows #5

Closed msnelling closed 9 years ago

msnelling commented 9 years ago

The library is unable to locate the installed version of GPG4Win on our 64bit Windows workstations or servers. I can see the library is looking for the binary path in the registry at SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GnuPG SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GPG4Win and by default at C:\Program Files\GNU\GnuPG.

However on our 64bit machines the registry locations are HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\GPG4Win HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\GnuPG

And the default install location is at C:\Program Files (x86)\GNU\GnuPG

bentonstark commented 9 years ago

You should be able to override the default location for the GPG binary by setting the property BinaryPath or by supplying the path on the constructor.