64-bit Application fails to launch after launching a 32-bit Application

64-bit Application fails to launch after launching a 32-bit Application

book

Article ID: CTX220407

calendar_today

Updated On:

Description

Whenever we launch a 64-bit application after launching a 32-bit application, the 64-bit application fails to launch. However, each application when launched individually, opens up fine and, it opens up fine when launching the 64-bit application first as well

Resolution

Changed the variable in the "Application Path" and "Working Directory" for the 64-bit application from %ProgramFiles%.... to C:\Program Files...

Problem Cause

%ProgramFiles% variable points to Program Files directory, which stores all the installed program of Windows and others. The default on English-language systems is C:\Program Files. In 64-bit editions of Windows (XP, 2003, Vista), there are also %ProgramFiles(x86)% which defaults to C:\Program Files (x86) and %ProgramW6432% which defaults to C:\Program Files. The %ProgramFiles% itself depends on whether the process requesting the environment variable is itself 32-bit or 64-bit (this is caused by Windows-on-Windows 64-bit redirection).