Run any WinForms program as a Windows Service with AlwaysUp

How to Run any WinForms GUI Application 24/7 as a Windows Service with AlwaysUp

Automatically start your WinForms GUI in the background as a Windows Service, before anyone logs on. No need to modify your code


Last Updated on July 17, 2026

Windows Forms (WinForms) is a widely-used GUI API included with the .NET Framework. Prior to the introduction of WPF in 2006, WinForms was the API of choice for .NET applications presenting a graphical user interface.


To install and run your WinForms application as a Windows Service with AlwaysUp:

  1. Download and install AlwaysUp, if necessary.

  2. Start AlwaysUp.

  3. Select Application > Advisor to launch the Application Advisor:

    Start Application Advisor

  4. Click Next to move past the welcome screen:

    Application Advisor: Introduction

  5. Choose WinForms Application from the list of applications and click Next:

    Application Advisor: Select WinForms Application

  6. The Advisor will take a few seconds to examine your computer and gather information. After that, it will prompt you to enter the full path to the executable you want to run as a service.

    For this tutorial, we'll enter our sample WinForms program, "C:\Apps\winforms-program.exe". It uses WinForms, C#.NET, ADO.NET and MS Access:

    WinForms Application Advisor: Enter the EXE file

    Click Next to move on.

  7. On this screen, enter the password of your Windows account. Your application should run in this context since WinForms is set up correctly there:

    WinForms Application Advisor: Enter Windows Credentials

    Click Next to move on.

  8. As the screen says, the Advisor has composed the best settings to run your WinForms program as a Windows Service. Click Next to open the Add Application window with all the particulars.

    WinForms Application Advisor: Ready to add your program

  9. At this point, the Add Application window contains all the recommended settings for running your WinForms app continuously after your computer boots. You can cycle through the tabs and review the options that have been selected for your environment.

    On the General tab, feel free to change the name to something more suitable for you.

    And when you're ready, click Save to record your new WinForms service:

    Save your WinForms Windows Service settings

  10. In a few seconds, a new entry for your WinForms app will show up in the AlwaysUp window. Your application is now installed as a Windows Service. However, the state will be "Stopped" because the service isn't running yet:

    WinForms Service installed

  11. Finally, to launch your WinForms program as a Windows Service, choose Application > Start. The entry will soon change to "Running" and WinForms will be working away in the background:

    WinForms Service running

    Note that because of Session 0 isolation, your WinForms application will not appear on your screen. It will be running in the background, on an invisible desktop where all Windows Services operate.

    If you wish to see your application, select Application > Restart in this session from the AlwaysUp menu. That instructs AlwaysUp to stop your application in session 0 and restart it visibly on your interactive desktop.

  12. That's it! Next time your computer boots, AlwaysUp will launch your WinForms application immediately, before anyone logs on. Please reboot your computer now and confirm that everything works as expected.

    And when you have some time, be sure to explore the other settings in AlwaysUp that may be helpful in your situation. For example:


WinForms program not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a Windows Service.

  • From AlwaysUp, select Application > Report Activity > Today to bring up an HTML report detailing the interaction between AlwaysUp and your WinForms application. The AlwaysUp Event Log Messages page explains what each message means.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Our 14,000+ customers include...
AlwaysUp is fully compatible with Windows 11 AlwaysUp is fully compatible with Windows Server 2025
Over 97,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 20+ years!