Tip

FireDaemon runs app as service, shows or suppresses GUI

Several tools out there allow you to take a Windows executable and run it as a system service. I can think of two reasons why running an executable as a system service is useful:

  1. You can start any application before any user login takes place.
  2. You can run applications consistently across user sessions no matter what else is going on.

The tool for implementing this concept that may be the most well thought out is

Requires Free Membership to View

FireDaemon. Like other programs in this space, it takes a Windows application and runs it as a service rather than a console or desktop application.

FireDaemon's strength lies in how it allows an application's GUI to be managed even while the program itself is running non-interactively. The GUI for the "wrapped" program can be shown or suppressed entirely, and FireDaemon can be programmed to supply automatic responses to any dialog boxes that the program might generate (for instance, to say yes to confirmation dialogs).

Programs can be granted or denied the ability to interact with the desktop, or run under any user or system account as needed. A "Graceful Shutdown" option lets you close the program in question by sending the proper console or GUI API event notifications (and close any pending dialog boxes as well, if the GUI has popped them up).

There are options for handling other program behaviors aside from the GUI. If a program writes output to stdout—for instance, a console program that returns results to the console—those results can be captured or appended to a file. Another handy function is the pre-service/post-service applications setting, which lets you set other programs to run before and after the application is launched as a service. Other behaviors can be triggered to run in the event of the application crashing, including "flap detection", which limits the number of times a program is restarted if it shuts down unexpectedly.

FireDaemon is a commercial program, rather than shareware or open source. But there is a 30-day trial version of the program that's fully functional, so you can get a feel for whether or not it does the job of "wrapping" a particular program as a service.

About the author: Serdar Yegulalp is editor of the Windows Insight, (formerly the Windows Power Users Newsletter), a blog site devoted to hints, tips, tricks and news for users and administrators of Windows NT, Windows 2000, Windows XP, Windows Server 2003 and Vista. He has more than 12 years of Windows experience under his belt, and contributes regularly to SearchWinComputing.com and SearchSQLServer.com.

More information on this topic:

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.