TightVNC Install as a Service through GP
Is there a switch that I can include in my script that will install TightVNC as a service?
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
airwolf
14 years ago
Posted by:
syn
14 years ago
I haven't used tight VNC before but you could use instsrv.exe & srvany.exe to create a service and then point the application using a reg entry to that service name. Bit of a stuff around but handy for running dodgy apps as a service when required.
example:
(cmd line)
instsrv.exe MYSERVICENAME "c:\program files\APPFOLDER\srvany.exe"
(reg)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME\Parameters]
@=""
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME\Parameters]
"Application"="C:\\Program Files\\APPFOLDER\\MYAPP.exe"
"AppDirectory"="C:\\Program Files\\APPFOLDER\\"
example:
(cmd line)
instsrv.exe MYSERVICENAME "c:\program files\APPFOLDER\srvany.exe"
(reg)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME\Parameters]
@=""
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME\Parameters]
"Application"="C:\\Program Files\\APPFOLDER\\MYAPP.exe"
"AppDirectory"="C:\\Program Files\\APPFOLDER\\"
Posted by:
rvdsabu4life
14 years ago
example:
(cmd line)
instsrv.exe MYSERVICENAME "c:\program files\APPFOLDER\srvany.exe"
(reg)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME\Parameters]
@=""
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSERVICENAME\Parameters]
"Application"="C:\\Program Files\\APPFOLDER\\MYAPP.exe"
"AppDirectory"="C:\\Program Files\\APPFOLDER\\"
I am going to try this. Thanks!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.