MATLAB: Matlab Runtime 7.15 (MCR) issue for Window 7

MATLAB Compilermatlab runtime 7.15window 7

I got an issue with Matlab Runtime 7.15 on Window 7.
I use Matlab Runtime 7.15 to create one standalone exe file with a Window XP computer, which requires many other input files. This exe file will call one of other three exe files in the same folder depending on conditions. When I install this package into the folder of Program Files (x86) of a Window 7 computer, it will run the standalone exe file, but the program will hang there and never quit when it calls one of the three exe files. However, If I install the package into any of local folder rather than Program Files or Program Files (x86), it works fine. The questions are
What is the reason to cause this issue? Do I need 64 bit MCR to deploy the exe program for Window 7? Can I install the files that are created by XP window into Program Files of Window 7?

Best Answer

Is/was your Windows XP 32-bit? (I assume yes) Is your Windows 7 64-bit? (I assume yes)
The "Program Files" folder on a 64-bit Windows system is for 64-bit applications. The "Program Files (x86)" directory is for 32-bit applications.
Windows 7 also has "UAC" (User Access Control), which is a security feature designed to make it harder for malware/viruses to infect your computer. This imposes restrictions on what should be going on in the Program Files directories, as well as the Windows system directories. So depending on what your executable files are doing, they may be denied the ability to write in the directory, so if you were expecting that to happen, you are out of luck -- and that would be consistent with it working in other directories.