This will explain how to setup EQBC to run in Windows as a service. No more needing to start up the program manually, and it will remove the console window from displaying for those who find no need for it. It will run in the background open and ready to be connected to. This information can be found buried away in the MQ2 forums. I haven't seen anyone reference it here so I figured I would recreate it as its great information for any program not just EQBC, including malware for you assholes out there! Original thread at: http://www.macroquest2.com/phpBB2/viewtopic.php?t=12147&postdays=0&postorder=asc&start=195
Step 1. Download Windows Resource Kit at http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
Step 2. Install the kit. If you use the default location it will be installed to "C:\Program Files\Windows Resource Kits\". The rest of this guide will assume you have it there, so change the location if you put it elsewhere.
Step 3. Click Start and select Run. Type in or copy paste the following command:
Step 4. You need to decide the location of your EQBotChat server file. I put mine right in the C drive of my server, so I will use that as an example. Place the eqbcs.exe file in the location you want (It has been included in the precompile here at MMOBugs for quite some time).
Step 5. Click Start and select Run. Type in regedit and click OK or press enter. Navigate to the following registry key:
Be sure to Left Click and HIGHLIGHT the EQ Bot Chat key (looks like a folder) so that it is selected.
Step 6. Click the Edit menu in the Registry Editor, and select New and then Key. A new key is created ready to be typed into, type in Parameters for the name and press enter so it takes. This needs to have the capital P.
Step 7. Now Left Click and HIGHLIGHT the Parameters key that you've just made so that it is selected.
Step 8. Click the Edit menu again and select New and then String Value. A new value is created, again ready to be typed into. Type in Application for the name and press enter so it takes. This needs to have the capital A.
Step 9. Now Left Click and HIGHLIGHT the new value, this time it will be on the right side.
Step 10. Click the Edit menu again and select Modify. A box pops up showing you the current value (nothing) and an input box to type in the new value. This is where you will type in the location you have placed your eqbcs.exe file. Mine is located at C:\eqbcs.exe, so I would type in:
or if you use custom ports or other parameters, include the full information such as mine:
...and press enter. Now we have the service created, let's set it to run always.
Step 11. Click Start and select Run. Type services.msc and click OK or press enter. This will open your services configuration.
Step 12. On the right you will see all of your existing services. If you left click Name, it will sort them alphabetically for you. Scroll down the list until you get to EQ Bot Chat. Right click on this, and select Properties.
Step 13. On the General tab, which is displayed first, change the Startup type drop-down box to Automatic. Click Apply and then move to the Recovery tab. Change all three: First failure, Second failure, and Subsequent failures to be Restart the service. Click OK and the service will run on its own.
Step 14. To start up the service immediately, Right click on EQ Bot Chat and select Start.
EQBC is now always running and without a console window.
Step 1. Download Windows Resource Kit at http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
Step 2. Install the kit. If you use the default location it will be installed to "C:\Program Files\Windows Resource Kits\". The rest of this guide will assume you have it there, so change the location if you put it elsewhere.
Step 3. Click Start and select Run. Type in or copy paste the following command:
Code:
"C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" "EQ Bot Chat" "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"
Step 4. You need to decide the location of your EQBotChat server file. I put mine right in the C drive of my server, so I will use that as an example. Place the eqbcs.exe file in the location you want (It has been included in the precompile here at MMOBugs for quite some time).
Step 5. Click Start and select Run. Type in regedit and click OK or press enter. Navigate to the following registry key:
Code:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EQ Bot Chat
Step 6. Click the Edit menu in the Registry Editor, and select New and then Key. A new key is created ready to be typed into, type in Parameters for the name and press enter so it takes. This needs to have the capital P.
Step 7. Now Left Click and HIGHLIGHT the Parameters key that you've just made so that it is selected.
Step 8. Click the Edit menu again and select New and then String Value. A new value is created, again ready to be typed into. Type in Application for the name and press enter so it takes. This needs to have the capital A.
Step 9. Now Left Click and HIGHLIGHT the new value, this time it will be on the right side.
Step 10. Click the Edit menu again and select Modify. A box pops up showing you the current value (nothing) and an input box to type in the new value. This is where you will type in the location you have placed your eqbcs.exe file. Mine is located at C:\eqbcs.exe, so I would type in:
Code:
C:\eqbcs.exe
or if you use custom ports or other parameters, include the full information such as mine:
Code:
C:\eqbcs.exe -p 2222
...and press enter. Now we have the service created, let's set it to run always.
Step 11. Click Start and select Run. Type services.msc and click OK or press enter. This will open your services configuration.
Step 12. On the right you will see all of your existing services. If you left click Name, it will sort them alphabetically for you. Scroll down the list until you get to EQ Bot Chat. Right click on this, and select Properties.
Step 13. On the General tab, which is displayed first, change the Startup type drop-down box to Automatic. Click Apply and then move to the Recovery tab. Change all three: First failure, Second failure, and Subsequent failures to be Restart the service. Click OK and the service will run on its own.
Step 14. To start up the service immediately, Right click on EQ Bot Chat and select Start.
EQBC is now always running and without a console window.