Ron, that's how it works now and how Microsoft arranged things now with
64-bit technology. It's better not to mess with system paths. You found a
good solution so leave it as it is. If you really have to, it would be a
good idea to do modifications for individual scenarios and by using a batch
file that would set the necessary environment variables and invoke the
application. Like I mentioned before, Application Compatibility Toolkit has
a feature for presenting 'fake' environment to apps, so it's worth
investigating if you're preparing for some serious migrations. They call
this 'fake' environment a virtualized environment. What happens is that they
intercept API calls and if the app wants to write to a restricted location
(such as %windir%), a similar folder structure is created inside a user's
profile. Check the Technet site for more info:
http://technet.microsoft.com/en-us/windows/aa905066.aspx
Post by Ron SochanskiDusko, any idea as to why the error would occur with the executable installed
in C:\Program Files (x86) but not when it's installed in C:\Program Files?
Could I perhaps modify the system path so that the error doesn't occur when
installing in C:\Program Files (x86)?
Post by Dusko SavatovicThanks for sharing, Ron
Post by Ron SochanskiI did not yet try the Application Compatibility Toolkit as you had suggested.
I did, however, copy the executable from C:\Program Files (x86)\... to
C:\Program Files\... and then ran the executable from there. The error did
not occur.
Post by Dusko SavatovicTry to download Application Compatibility Toolkit. It is designed for Vista,
but since 2008 is designed on the similar base it may help. ACT
contains
so
called 'shims' that can help you set up a 'fake' environment for your app.
It can also monitor API's used in the app and give you detailed report.
I suppose you already tried the usual trick with 'Run as
Administrator'
during the app install and launch.
Post by Ron SochanskiThe application in question is 32-bit and was developed with Visual
C++
6.0.
Please correct me if I'm wrong, but I don't think that the 64-bit
Visual
C++
2008 redistributable would help, since it's for 64-bit Visual C++ 2008
applications.
Post by Dusko SavatovicHow about downloading and installing
Microsoft Visual C++ 2008 Redistributable Package (x64)
The URL may wrap
http://www.microsoft.com/downloads/details.aspx?familyid=BD2A6171-E2D6-4230-B809-9A8D7548C1B6&displaylang=en
Post by Ron SochanskiHello. I have a 32-bit MFC application that runs fine on Windows
Server
2003
Standard Edition SP2. However, when I try to run it on Windows
Server
2003
Microsoft Visual C++ Runtime Library
Runtime Error!
Program C:\...
This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.
I tried to apply the hotfix described in KB916177, only to find that
Windows
Server 2003 R2 Standard x64 Edition SP2 already contains the fix.
Any help with fixing this error would be greatly appreciated.
Thank
you.