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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Nov 29, 2012, 6:20 AM
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.
hariniPosted Nov 29, 2012, 5:50 AM
Regards,
harini.
Sivaraman DhamodaranPosted Nov 29, 2012, 5:41 AM
hariniPosted Nov 29, 2012, 5:06 AM
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
Gohil JayendrasinhPosted Nov 29, 2012, 4:40 AM
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.