You need srvany and instsrv, which come from microsoft.
Windows Server Resource kit can be downloaded and installed from: http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
Next, do: instsrv NameOfServiceSuchAsMercury "c:\wherever_it_is\srvany.exe"
or less verbose:
cd \program files\Windows Resource Kits\Tools
instsrv Mercury "c:\program files\Windows Resource Kits\Tools\srvany.exe"
Now open registry editor, and go to:
hklm\SYSTEM\CurrentControlSet\Services\NameOfServiceSuchAsMercury
add a key called Parameters
add a string called Application, and make that string point to the app you want to run, such as loader.exe
add a string called AppDirectory, and make that string point to the working directory folder, such as where mercury.exe and loader.exe are
Go to service settings and make it interact with desktop
Start the service
That's all
Print | posted on Monday, March 2, 2009 3:35 PM