Following the guidance from Microsoft,
http://msdn.microsoft.com/en-us/library/ee872121(VS.85).aspx , I can get my program to allow the program to allow the dynamic libraries necessary for it to work.
So, I add the value with the full name and path to my executable file and add a subsection to this entry (named path) with the full directory of the DLL files.
And the magic. It works. I run the start menu and dials myprogram.exe and it starts and now it can correctly find the dll files.
However, if I run the command line using the cmd.exe command and then try to run myprogram.exe, the DLL will no longer be able to resolve. For some reason, the command line does not seem to respect / read registry values if it is set to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Application Paths
Any suggestion on how I can get this behavior to work from the command line, as well as from the Start menu?
source
share