Error 193: %1 is not a valid Win32 application

You get an error when starting a Windows Service:

Error 193: %1 is not a valid Win32 application

This could be caused by a folder on your hard drive that has a similar name to the folder that contains the path to the service. For example, if the path of the executable file for a service is C:\Program Files\ProgramName\ServiceName.exe, and if a folder that is named C:\Program also exists on your hard disk, Windows locates the C:\Program folder on your hard disk before the C:\Program Files\ProgramName\ServiceName.exe file, and then tries to run it.

You can get rid of the Program folder, or perform the following steps:

1. Click Start > Run and type REGEDIT and click OK.

2. Click the plus sign next to HKEY_LOCAL_MACHINE
then SYSTEM
then CurrentControlSet
then Services
then ServiceName

3. Right-click ImagePath on the right side. In the Value data box, place quotes in the path.

Example:

Change: C:\Program Files\ProgramName\ServiceName.exe

To: “C:\Program Files\ProgramName\ServiceName.exe”

4. Click OK and close REGEDIT. Restart the computer.

Comments

  1. Anthony Donat says

    To everyone trying to find a service name, go to the start button and type in services.msc
    Click on it, Scroll through the list of programs until you find the program that you need the service name for, double click on it and the details on that service will pop up and the programs service name will be shown at the top.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>