Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forcing a .Net Windows service to run as 32-bit on a 64-bit machine

I've been given a windows service which references a COM component that only runs on 32-bit. My machine is x64, so the service tries to start, fails to create the COM component, and dies.

I don't have the source, just the .exe file. Is there any way to force a service to start in 32-bit mode on a win64 machine?

like image 403
Steve Cooper Avatar asked Jul 03 '09 12:07

Steve Cooper


People also ask

How do I force a program to run in 32-bit mode?

Drop the application "corflags.exe" into the \windows\system32 folder. Open a command line as administrator and type... This will force the application to run as a 32-bit process instead of 64-bit. This edits the executable file though.

How can I run 32-bit exe on 64-bit Windows?

WOW64 is the x86 emulator that allows 32-bit Windows-based applications to run seamlessly on 64-bit Windows. This allows for 32-bit (x86) Windows applications to run seamlessly in 64-bit (x64) Windows, as well as for 32-bit (x86) and 32-bit (ARM) Windows applications to run seamlessly in 64-bit (ARM64) Windows.

How do I change from 64bit to 32-bit?

Use the Media Creation Tool http://www.microsoft.com/en-us/software-download/windows10 boot from the media you have created and select to install 32bit of the edition you have. When asked for a key select Skip or Do this later or whatever allows you to move to the next step.

Can a 64-bit system run a 32bit program?

Summary. The 64-bit versions of Windows use the Microsoft Windows-32-on-Windows-64 (WOW64) subsystem to run 32-bit programs without modifications. The 64-bit versions of Windows don't provide support for 16-bit binaries or 32-bit drivers.


1 Answers

Maybe the .NET tool corflags will help:

corflags /32bit+ myservice.exe

like image 155
Thomas Freudenberg Avatar answered Oct 28 '22 08:10

Thomas Freudenberg