Hi,
I have made a q program which works as a pseudo ticker-plant, by
creating and publishing simulated time-series data at regular
intervals… i.e, currently every 3 seconds.
Now I want to turn that q instance into a Windows Service (ws) by
disseminating data to a virtual gadget which I built, using
OpenLaszlo.
To setup the ws, I am following the Cookbook Instructions.
However, because I have never had to deal with registry insertions
until now, I am a bit stumped about Step 3 in the Cookbook
Instructions…
Here’s what I have done so far:
I downloaded and installed rktools containing srvany.exe from MSFT.
… then copied srvany.exe to C:\q folder.
… then typed … C:\q> instsrv.exe q5010 c:\q\srvany.exe … at the
cmd prompt
The console message informed me that: The service was successfully
added! …
I then opened regedit from the cmd line.
In the treeview, I could see that the creation of the service had
added a key folder at branch …
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\q5010
I navigated down to the q5010 folder to inspect the contents. It
contains various items including,
Names, Types and Data, with Data values for each Name in the folder.
The q5010 folder also has a sub-folder named Security, containing some
data.
Now…Cookbook Instruction 3 says prepare the Windows registry file to
setup the parameters for the q5010 service.
i.e…
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
\q5010\Parameters]
“Application”=“c:\q\w32\q.exe”
“AppParameters”=“-p 5010 -q”
“AppDirectory”=“c:\q”
That is the bit I don’t understand. How do I insert these parameter
details into the registry file?
Do I need to put those details in some specific file type and
reference the path to that file in the registry… or do put those
details directly in the the registry file using Edit->New->Key …
once or by making multiple insertions??
Thanks in advance.
Q.