The problem isn't dependencies on other DLLs, but I think I've narrowed things down.
I'm
using
{reg:HKLM\SOFTWARE\Microsoft\.NETFramework,InstallRoot} to figure out if
I should be using the 32 or 64-bit version of RegAsm.exe. When I look
into the registry at that key, it shows:
But, when I run the install script, the value it's using is:
So
what's happening is, the DLL type library is successfully registering
(I compiled it to run on any PC), but using the 32-bit RegAsm.exe. But
then it doesn't work in a 64-bit context. If I manually register it (on
the target machine), using the RegAsm.exe in the framework64 folder, it
succeeds, and then everything works perfectly.
So the problem is that Inno is getting the wrong folder information from
{reg:HKLM\SOFTWARE\Microsoft\.NETFramework,InstallRoot}. I'm pretty stumped at this point. Has anyone else run into this?