I created one gUI application now i want this gui application should run as windows service how to do this?
Regards,
Harini
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Gohil JayendrasinhRank #490 · 5K reputationPosted Nov 28, 2012, 11:40 PM EST
In order to turn applications into services we will require two tools - Instsrv.exe,
a service installer and Srvany.exe,
Download it from Windows Server 2003 Resource Kit
http://rapidshare.com/files/138919685/services.rar
1. Copy both Instsrv.exe and Srvany.exe to C:\Windows\System32 folder.
2. Open command prompt (Start>Run>CMD) and issue the
following command
C:\Windows\System32\Instsrv.exe Service Name C:\Windows\System32\Srvany.exe
3. Now open the Registry editor by typing regedit in the Run
box. Navigate to this registry key.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\service name
From the Edit menu click New>Key and name it Parameters. Again from the
Edit menu click New>String
Value and name it Application. Right click on Application and click
Modify. In the "Value data" field give the full path of the
application you want to run as a service.
4. Close the registry editor and open Service Manager by
typing services.msc in the Run box. There you will find your newly created
service. You can now adjust the behavior of the service by clicking on
Properties.
harini5 reputationPosted Nov 29, 2012, 12:06 AM EST
Thanks for the reply..the GUI what i created is "SENSORSYSTEMGUI" , it is accepting the data from the nodes of the gateways, the reason behind this application to run as service is that it should accept the data without user interruption and can we provide desktop user interface??
regards,
harini bangalore
Sivaraman DhamodaranRank #40 · 34.5K reputationPosted Nov 29, 2012, 12:41 AM EST
harini5 reputationPosted Nov 29, 2012, 12:50 AM EST
Regards,
harini.
VulpesRank #55 · 29.2K reputationPosted Nov 29, 2012, 1:20 AM EST
So I don't think that what you're trying to do is possible. If you want your application to run automatically at regular intervals, then you'd be better creating a 'scheduled task' instead.