Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a .Net application, written in C#. The application has been compiled with the "any" flag, allowing it to run as both 64 and 32 bits, depending on the OS that it's deployed on.

I'm wondering if it's possible to force the application to run as a 32 bit application, on a 64 bit version of windows (any 64 bit version of windows).

share|improve this question
up vote 2 down vote accepted

Yup, use CorFlags to set the 32BIT flag on the executable. E.g:

corflags.exe myapp.exe /32BIT+

This will modify your exe, so you might wanna keep a backup just in case. You can also revert the flag using /32BIT- instead of /32BIT+

share|improve this answer
Just for the sake of completeness: That will actually modify myapp.exe, so keep a backup around if you want it to run in 64-Bit at some point. – Michael Stum Sep 24 '09 at 20:23
yup, I'll add that to the answer, thanks – Mauricio Scheffer Sep 24 '09 at 20:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .