Saturday, January 8, 2011

How to run 32 bit Application on a 64 bit OS

  1. CorFlags.exe does the trick by setting the application to run on 32 bit mode.
  2. You can search the CorFlags.exe directly from windows explorer or from the command prompt by the following command (i would prefer using the cmd prompt since we will be running the CorFlags on it).
    - Open the cmd prompt (Start -> Run -> Type "cmd" -> OK or hit Enter Key).
    - Type "cd\" then hit Enter key. (This will change your current location to the root folder or top most folder)
    - Type "DIR /S CorFlags.exe" then hit Enter Key. (This will tell your computer to search for CorFlags.exe in your entire C drive)
  3. If you are unable to find the file, you may download and install Windows or .NET SDK's from microsoft.com. My preference would be Microsoft .NET Framework SDK (64 bit version).
  4. Once installed, change directory to where the CorFlags.exe was installed using the command "CD <path>", where <path> in my case would be any of the following folders;
    - C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin
    - C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64
    - C:\Program Files\Microsoft.NET\SDK\v2.0 64bit\Bin
  5. Run CorFlags using the syntax: CorFlags <application> /force /32BIT+, where <application> is the application name including its full path.
    Example: CorFlags "C:\Program Files (x86)\Veeam\Veeam Backup and FastSCP\VeeamShell.exe" /force /32BIT+
  6. In any case you get an error message like this: corflags : error CF001 : Could not open file for writing. This can be resolved by giving write permission to the current user on the path where the application is located. For instance, in our example would be on "C:\Program Files (x86)\Veeam\Veeam Backup and FastSCP" folder.
  7. To enable write access to the current user using windows explorer;
    - Launch Windows Explorer and go the folder where the application is located.
    - Right click on the folder and select Properties. Click Security tab and then Edit button just below the Group or user names list.
    - Select Users (<pc name>/Users) then check allow Full control check box.
  8. Again run the CorFlags.exe. This time it should successfully flag the application to run on 32 bit mode.

No comments:

Post a Comment