In one of my apps I'm using DB engine which runas normally as a service. My app uses boxedApp functions and the only one nonvirtual thing is the DB engine. I must tell the user to install it or to install it from code.
The better way would be to embed the DB, extract it as a virtual file, install it in the virtual registry and start it
I think I can "pseudo" install the service in the virtual registry by creating needed keys and data in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. But will the SCM (Service Control Manager) be aware of my newly installed "virtual" service? I think not? I would attach the boxedApp to the process of SCM, but the process has PID of?
"The service control manager (SCM) is started at system boot" taken from: http://msdn.microsoft.com/en-us/library/ms685150(VS.85).aspx
Any ideas?
Thanks
Petar
