Magic Jack as a service - a better way
Moderators: Pilot, Bill Smith
- antoinefinch
- magicJack Apprentice
- Posts: 20
- Joined: Sat May 31, 2008 12:46 pm
- Location: Fayetteville, NC
- Contact:
Re: does this work for Vista?
[quote="daisyanne"]i didnt see cdloader2 in msconfig.
what im trying to do is make magic jack not pop up after every call. Also it is on my tool bar and won't close even if i right click and hit close.
if i want to use the interface i rather double click on the icon next to the clock to see it but i hate the fact that it pops up at every call.
GET MAJICBLOCK
[url=http://www.download.com/MagicBlock/3000-2349_4-10838528.html?hhTest]MAGICBLOCK
Will recheck vista for running as service
what im trying to do is make magic jack not pop up after every call. Also it is on my tool bar and won't close even if i right click and hit close.
if i want to use the interface i rather double click on the icon next to the clock to see it but i hate the fact that it pops up at every call.
GET MAJICBLOCK
[url=http://www.download.com/MagicBlock/3000-2349_4-10838528.html?hhTest]MAGICBLOCK
Will recheck vista for running as service
-
- Dan isn't smart enough to hire me
- Posts: 296
- Joined: Fri Jan 25, 2008 9:50 am
- Location: HIghland Village, Texas
- Contact:
Re: Thanks
Don't forget to thank the late, great, Frank Zappa. Author of the original spec.daisyanne wrote:That work great, your my hero.
thanks!
Absence of Bibliography withstanding.
"Looking for a new job. I have worked for Adelphia, Enron, Health South, Worldcom, and most recently British Petroleum."
Complete, clean
Thanks for the how-to. It's well written and I much prefer the methods used over the others suggested.
I'm running Vista x64 so I had to change the paths to match Vista's new structure. (\Documents And Settings\All Users\Application Data -> \ProgramData for example) Otherwise I only changed the service name to "magicJack" from "MagicJack", but that was just my OCD kicking in. (You should see me trying to name tablespaces and datafiles! Heck db architecture breaks me out in hives! heheh)
Again, thanks for the contribution. It saved me a lot of time and my perfectionist appetite has been satiated.
I'm running Vista x64 so I had to change the paths to match Vista's new structure. (\Documents And Settings\All Users\Application Data -> \ProgramData for example) Otherwise I only changed the service name to "magicJack" from "MagicJack", but that was just my OCD kicking in. (You should see me trying to name tablespaces and datafiles! Heck db architecture breaks me out in hives! heheh)
Again, thanks for the contribution. It saved me a lot of time and my perfectionist appetite has been satiated.
-cltdba-
I NEED HELP. First off, I am an A+ certified Tech, so I should be able to follow directions. I am using XP Pro SP 2, I followed the directions to a T, I copy and pasted all the code, I put the correct drive letter in, I have done all of this 3 times to make sure. I get a dial tone, but when I look in Services I still have to start the service, the progress bar runs through, then I get the error message saying (The MagicJack Service on the local computer started then stopped.Some services stop automatically if they have no work to do, for example, the performance logs and alerts service.) Even though the service shows as not being started I still get a dial tone, then I dial and get silence then after a short time I get the dial tone again, what did I do wrong????
Differences?
What is the difference between running mj as a service and running as an application? Is it better to run as a service? Is the audio quality better?
Need to know what error is being reported.greginky wrote:I NEED HELP. First off, I am an A+ certified Tech, so I should be able to follow directions. I am using XP Pro SP 2, I followed the directions to a T, I copy and pasted all the code, I put the correct drive letter in, I have done all of this 3 times to make sure. I get a dial tone, but when I look in Services I still have to start the service, the progress bar runs through, then I get the error message saying (The MagicJack Service on the local computer started then stopped.Some services stop automatically if they have no work to do, for example, the performance logs and alerts service.) Even though the service shows as not being started I still get a dial tone, then I dial and get silence then after a short time I get the dial tone again, what did I do wrong????
Check logs in Event Viewer:
Start -> Run -> eventvwr.msc
- Since it's a service it will more than likely show an error under the System log. Check there and in the Application log for any errors related to Magic Jack and paste the error contents in your reply.
-cltdba-
Re: Differences?
There is no difference in audio quality. The only difference is that instead of the application starting up when you log on it starts up behind the scenes regardless of whether or not you are logged on. (That is if you run it as a system service as the OP instructs.) When the application runs as a service it also no longer interacts with your screen. This means that each time a call comes in the application will not take over your screen. It also means that if you want to use the soft phone features of magicJack you will have to allow the service to interact with your desktop by checking the option in the service properties and then restarting the service. Alternatively you can stop the service and manually launch the application if you need to use the soft phone.noneyah wrote: What is the difference between running mj as a service and running as an application? Is it better to run as a service? Is the audio quality better?
Good luck!
-cltdba-
Re: Differences?
There is no difference in audio quality. The only difference is that instead of the application starting up when you log on it starts up behind the scenes regardless of whether or not you are logged on. (That is if you run it as a system service as the OP instructs.) When the application runs as a service it also no longer interacts with your screen. This means that each time a call comes in the application will not take over your screen. It also means that if you want to use the soft phone features of magicJack you will have to allow the service to interact with your desktop by checking the option in the service properties and then restarting the service. Alternatively you can stop the service and manually launch the application if you need to use the soft phone.noneyah wrote: What is the difference between running mj as a service and running as an application? Is it better to run as a service? Is the audio quality better?
Good luck!
-cltdba-
Minimum requirements for MagicBlock 1.2
Wouldn't install because specified version of .NET wasn't on my machine. Is this a big deal?
Are benefits of this program worth it?
Are benefits of this program worth it?
Minimum requirements for MagicBlock 1.2
Wouldn't install because specified version of .NET wasn't on my machine. Is this a big deal?
Are benefits of this program worth it?
Are benefits of this program worth it?
Excellent!!!!!!!!!!!!!!!!! THANK YOU, THANK YOU, THANK YOU! Poster
It was driving me crazy getting kicked out of Games everytime the phone rang and that annoying pop-up geez. I've tried "MagicBlock" and "Autosizer" to no avail. Run as a service Brilliant!
I have a couple of questions though; is there a way to adjust volumes levels without stopping service and running the softphone and will the levels revert to default once the softphone is closed and the service restarted?
It was driving me crazy getting kicked out of Games everytime the phone rang and that annoying pop-up geez. I've tried "MagicBlock" and "Autosizer" to no avail. Run as a service Brilliant!
I have a couple of questions though; is there a way to adjust volumes levels without stopping service and running the softphone and will the levels revert to default once the softphone is closed and the service restarted?
-
- Dan isn't smart enough to hire me
- Posts: 103
- Joined: Thu Mar 27, 2008 5:14 pm
- Location: proxy1.nashville.talk4free.com
Maybe you are running under local system? You cannot run the service under local system. You need run MJ service under a local admin account. Dial tone will sound if MJ is plugged in and even though MJ is not working...greginky wrote:I NEED HELP. First off, I am an A+ certified Tech, so I should be able to follow directions. I am using XP Pro SP 2, I followed the directions to a T, I copy and pasted all the code, I put the correct drive letter in, I have done all of this 3 times to make sure. I get a dial tone, but when I look in Services I still have to start the service, the progress bar runs through, then I get the error message saying (The MagicJack Service on the local computer started then stopped.Some services stop automatically if they have no work to do, for example, the performance logs and alerts service.) Even though the service shows as not being started I still get a dial tone, then I dial and get silence then after a short time I get the dial tone again, what did I do wrong????
- antoinefinch
- magicJack Apprentice
- Posts: 20
- Joined: Sat May 31, 2008 12:46 pm
- Location: Fayetteville, NC
- Contact:
MAGIC LOCAL SERVICE
I RUN MJ on my WINXP SP3 PC as local service set to automatic. with no problems
-
- Dan isn't smart enough to hire me
- Posts: 103
- Joined: Thu Mar 27, 2008 5:14 pm
- Location: proxy1.nashville.talk4free.com
Re: MAGIC LOCAL SERVICE
Good to know - thanks for clarification... I recall I was getting an error and I changed that and it worked for me... this was back in February, so my memory has faded a bit....antoinefinch wrote:I RUN MJ on my WINXP SP3 PC as local service set to automatic. with no problems
error sort of
I get a dialog box that states:
This is my registry entry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\magicjack]
"Type"=dword:00000110
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):63,00,3a,00,5c,00,72,00,65,00,73,00,6b,00,69,00,74,00,5c,00,\
73,00,72,00,76,00,61,00,6e,00,79,00,2e,00,65,00,78,00,65,00,00,00
This is where this resides ... c:\reskit\srvany.exe
"DisplayName"="magicjack"
"ObjectName"="LocalSystem"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\magicjack\Parameters]
"Application"="\"C:\\Documents and Settings\\All Users\\Application Data\\mjusbsp\\magicJack.exe\" /scf _magicJackPersonalDataRoot \"I:\\magicJack\""
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\magicjack\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\magicjack\Enum]
"0"="Root\\LEGACY_MAGICJACK\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001
This is my registry entry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\magicjack]
"Type"=dword:00000110
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):63,00,3a,00,5c,00,72,00,65,00,73,00,6b,00,69,00,74,00,5c,00,\
73,00,72,00,76,00,61,00,6e,00,79,00,2e,00,65,00,78,00,65,00,00,00
This is where this resides ... c:\reskit\srvany.exe
"DisplayName"="magicjack"
"ObjectName"="LocalSystem"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\magicjack\Parameters]
"Application"="\"C:\\Documents and Settings\\All Users\\Application Data\\mjusbsp\\magicJack.exe\" /scf _magicJackPersonalDataRoot \"I:\\magicJack\""
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\magicjack\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\magicjack\Enum]
"0"="Root\\LEGACY_MAGICJACK\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001
-
- MagicJack Newbie
- Posts: 7
- Joined: Wed Jun 25, 2008 4:50 pm
I turned off autorun, so it doesn't start in the context of the logged on user when plugging it back in, but is there a way to get it to restart the service when plugging it back in, or at least preventing magicjack.exe from closing when you unplug it?
I have magicjack installed on my server, so it would be nice to be able to unplug and plug it back in without having to log onto my server and restart the service.
I have magicjack installed on my server, so it would be nice to be able to unplug and plug it back in without having to log onto my server and restart the service.
I have another question guys...
I releazed that my All Users\Start Menu\Programs\Startup foolder now has a shortcut for "Digital Line Detect". I assume that MJ put this here and understand what it is for. However, since it is in a Startup folder (only runs when a user logs in) and not running as a service, does this have any affect on MJ? Should this also be installed as a service?
Personally, I don't think it has had an effect. I can remove/insert the phone line at will and it does not cause a problem. Just wondering what others think.
John
I releazed that my All Users\Start Menu\Programs\Startup foolder now has a shortcut for "Digital Line Detect". I assume that MJ put this here and understand what it is for. However, since it is in a Startup folder (only runs when a user logs in) and not running as a service, does this have any affect on MJ? Should this also be installed as a service?
Personally, I don't think it has had an effect. I can remove/insert the phone line at will and it does not cause a problem. Just wondering what others think.
John
-
- MagicJack Newbie
- Posts: 6
- Joined: Fri Sep 26, 2008 12:26 am
Magic Jack as a service - a better way
Thanks this was the easiest setup! works great.
Can it be done with Vista
I did this on my XP machine and it work great. The problem is that I upgraded to Vista and the resource kit doesn't work with It.
Is there a way to do the same, but with Vista?
Is there a way to do the same, but with Vista?
Re: Can it be done with Vista
The Resource Kit works. I know that you get a message when installing telling you that SOME stuff is incompatible but what is needed works. Look at page 2 for vista instructions.johnnyr41 wrote:I did this on my XP machine and it work great. The problem is that I upgraded to Vista and the resource kit doesn't work with It.
Is there a way to do the same, but with Vista?
We arent modifying their software. We are changing the directory of the files on OUR computer and telling our computer to run them when and how we want.JohnODon wrote:Just curious...
Has anyone thought of a reason why this may break the MagicJack TOS? Is there anything about "they own the software and you cannot modify it in anyway" (like moving the app data directory).
I love this idea but really don't want my service termintaed.
John
WOW... great post! I tried the original 2 user method and was frustrated because it didn't work. Then i decided to remove all the access user account and try yours before giving up. about 3 minutes later i had MJ running as a service.. and i didn't even need to log in to my (single) account!!!
Thank you!
One thing: What if i disconnect/reconnet MJ? What happens, what do i need to do?
Thank you!
One thing: What if i disconnect/reconnet MJ? What happens, what do i need to do?
-
- MagicJack Newbie
- Posts: 1
- Joined: Wed Dec 17, 2008 10:36 pm
Running Magic Jack as a service in Vista
I had to adjust these Procedures when doing this on Vista Home Basic.
With the following adjustments this seems to work for me:
Steps 1 thru 3 are the same for Vista
Step 4 -- open computer from Vista Start Menu and go to
C:\Users\Your Username\AppData\ and move the mjusbsp folder to C:\ProgramData\. While in computer note the letter for the second drive assigned to the MJ box. If you right click the drive and choose Properties, the correct one will have the name PHONE.
Please note the folders above are hidden by default. Too display them select the C:\ drive then click on Tools | Folder Options. Select the View Tab. In the Advanced settings list box under the "Hidden files and folders" folder node select "Show hidden files and folders"
Step 5 -- Be sure to download the rktools.exe that is related to Windows 2003 server. It will work with Vista. When installing you will get a warning about compatibility. Ignore this warning and continue the install. When the install is complete you will need to open Computer again and browse to where the tools were installed. By default they are here: C:\Program Files\Windows Resource Kits\Tools\. Right click on "intsrv.exe" and select "Properties". Click on the "Compatibility" tab and check "Run this program as an administrator". Click OK to save the change. Do the same thing for srvany.exe in the same folder.
Step 6 is the same.
Step 7 -- Same except Change the Application value to "C:\ProgramData\mjusbsp\magicJack.exe" /scf _magicJackPersonalDataRoot "X:\magicJack" Where X is the second MagicJack drive letter you found earlier.
In Vista to start a service go to Vista Start Menu and click Control Panel. Select "Classic View" on the left of the window. Then double click "Administrative Tools" on the right. When the next window opens double click on Services on the right pane. Find MagicJack service then right click and select "Start"
With the following adjustments this seems to work for me:
Steps 1 thru 3 are the same for Vista
Step 4 -- open computer from Vista Start Menu and go to
C:\Users\Your Username\AppData\ and move the mjusbsp folder to C:\ProgramData\. While in computer note the letter for the second drive assigned to the MJ box. If you right click the drive and choose Properties, the correct one will have the name PHONE.
Please note the folders above are hidden by default. Too display them select the C:\ drive then click on Tools | Folder Options. Select the View Tab. In the Advanced settings list box under the "Hidden files and folders" folder node select "Show hidden files and folders"
Step 5 -- Be sure to download the rktools.exe that is related to Windows 2003 server. It will work with Vista. When installing you will get a warning about compatibility. Ignore this warning and continue the install. When the install is complete you will need to open Computer again and browse to where the tools were installed. By default they are here: C:\Program Files\Windows Resource Kits\Tools\. Right click on "intsrv.exe" and select "Properties". Click on the "Compatibility" tab and check "Run this program as an administrator". Click OK to save the change. Do the same thing for srvany.exe in the same folder.
Step 6 is the same.
Step 7 -- Same except Change the Application value to "C:\ProgramData\mjusbsp\magicJack.exe" /scf _magicJackPersonalDataRoot "X:\magicJack" Where X is the second MagicJack drive letter you found earlier.
In Vista to start a service go to Vista Start Menu and click Control Panel. Select "Classic View" on the left of the window. Then double click "Administrative Tools" on the right. When the next window opens double click on Services on the right pane. Find MagicJack service then right click and select "Start"
-
- MagicJack Newbie
- Posts: 7
- Joined: Fri Dec 19, 2008 11:50 am
Thanks for the great tip on how to run MagicJack as a service! Now it runs great (Dont seem to have the restart/shutdown issues you mentioned) and I dont have it auto picking up calls when I am typing (grr) or crashing the games when I play them (double grr). And it was very simple if you follow the directions exactly.
-
- Dan isn't smart enough to hire me
- Posts: 470
- Joined: Wed Apr 02, 2008 11:45 pm
- Location: Dallas, TX
MJ Update Script for those running MJ in Service Mode
I have a solution that I just created tonight and posted in another thread. Here is the info I posted there:kazoo37 wrote:I am also wondering this. I have seen it asked a few times in this thread with no response.ralfo wrote:The question I have about running MJ as a service is will it still get updates on startup if its needed? Is there anyway of verifying this?
Thanks
Scratch what I was trying to do above as I have a much more refined solution. I took the great idea Trebuin started out with and came up with a very nice app IMO
I have all the files you need (hopefully) zipped up. I have made several versions that should work regardless if you are running MJ as a service or in the regular native mode.
Basically, this will check to see if you are running the most current version of MJ. If not, it will download the upgrade.exe from the MJ servers and run it. Once completed it will restart MJ for you.
Read More here - LINK
-
- MagicJack Newbie
- Posts: 1
- Joined: Mon Nov 24, 2008 6:12 pm
cannot find magic in registry
cannot find magic in registry
I follow directions but can not find it
I follow directions but can not find it
-
- Dan isn't smart enough to hire me
- Posts: 187
- Joined: Sun Dec 07, 2008 9:03 pm
This works great, thank you.
However, a minor nuissance I have is that after every update the cdloader2.exe has to be unchecked in MSConfig, as well as move the C:\Documents and Settings\Your Username\Application Data\mjusbsp folder to its new location.
Also, since it's a "new" program location, make sure this passes through your firewall.
However, a minor nuissance I have is that after every update the cdloader2.exe has to be unchecked in MSConfig, as well as move the C:\Documents and Settings\Your Username\Application Data\mjusbsp folder to its new location.
Also, since it's a "new" program location, make sure this passes through your firewall.
-
- Dan isn't smart enough to hire me
- Posts: 470
- Joined: Wed Apr 02, 2008 11:45 pm
- Location: Dallas, TX
If you use my utilities suite, it has a button you can click to remove the startup entry if you want.arcadia2uk wrote:This works great, thank you.
However, a minor nuissance I have is that after every update the cdloader2.exe has to be unchecked in MSConfig, as well as move the C:\Documents and Settings\Your Username\Application Data\mjusbsp folder to its new location.
Also, since it's a "new" program location, make sure this passes through your firewall.
-
- Dan isn't smart enough to hire me
- Posts: 187
- Joined: Sun Dec 07, 2008 9:03 pm
-
- MagicJack Newbie
- Posts: 6
- Joined: Mon Jan 12, 2009 6:56 am
MJ as a Service batch file
I have created a batch file to put everything in place to run MJ as a service. It worked perfectly for me. The batch file is written in it's most basic form of scripting.
It also incorporates Stroths MagicJack Update Script 1.3 and will automatically schedule and update check at 03:00 everyday.
The only requirements are Windows XP Pro and the drive letter of the MJ USB drive (The one labeled "PHONE") be changed to the "T" drive
The file can be downloaded here:
http://rapidshare.com/files/184334919/MagicService.exe
This is what the script looks like.
ECHO OFF
taskkill /f /IM magicjack.exe /T
taskkill /f /IM magicjackloader.exe /T
taskkill /f /IM mjsetup.exe /T
md "C:\Program Files\Windows Resource Kits\Tools\"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\ar00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\in00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\st00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\ug00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\Upgrade"
copy "c:\Program Files\magicservice\instsrv.exe" "C:\Program Files\Windows Resource Kits\Tools\"
copy "c:\Program Files\magicservice\srvany.exe" "C:\Program Files\Windows Resource Kits\Tools\"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\ar00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\in00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\st00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\ug00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\Upgrade"
md "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate"
md "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\Autohotkey Source"
copy "C:\Program Files\magicservice\MJAutoUpdate" "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate"
copy "C:\Program Files\magicservice\MJAutoUpdate\Autohotkey Source" "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\Autohotkey Source"
"C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" "MagicJack" "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"
"c:\Program Files\magicservice\magicjack.reg"
net stop magicjack
net start magicjack
net start "task scheduler"
at 03:00 /every:M,T,W,Th,F,S,Su "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\MJupdate.exe"
"C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\MJupdate.exe"
Registry info looks like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MagicJack]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MagicJack\Parameters]
"Application"="\"C:\\Documents and Settings\\All Users\\Application Data\\mjusbsp\\MagicJack.exe\" /scf _magicJackPersonalDataRoot \"T:\\magicJack\""
The text above can not be run by its self, it needs the rest of the files that are compressed in the archived file.
I'm sure there are other script files out there to do this but this one I created worked for me and hopefully it can help someone else out.
Note: I think this will work with XP Home but you will have to manually kill the magicjack processes in task manager.
Let me know if it works for you!
It also incorporates Stroths MagicJack Update Script 1.3 and will automatically schedule and update check at 03:00 everyday.
The only requirements are Windows XP Pro and the drive letter of the MJ USB drive (The one labeled "PHONE") be changed to the "T" drive
The file can be downloaded here:
http://rapidshare.com/files/184334919/MagicService.exe
This is what the script looks like.
ECHO OFF
taskkill /f /IM magicjack.exe /T
taskkill /f /IM magicjackloader.exe /T
taskkill /f /IM mjsetup.exe /T
md "C:\Program Files\Windows Resource Kits\Tools\"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\ar00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\in00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\st00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\ug00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\Upgrade"
copy "c:\Program Files\magicservice\instsrv.exe" "C:\Program Files\Windows Resource Kits\Tools\"
copy "c:\Program Files\magicservice\srvany.exe" "C:\Program Files\Windows Resource Kits\Tools\"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\ar00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\in00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\st00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\ug00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\Upgrade"
md "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate"
md "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\Autohotkey Source"
copy "C:\Program Files\magicservice\MJAutoUpdate" "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate"
copy "C:\Program Files\magicservice\MJAutoUpdate\Autohotkey Source" "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\Autohotkey Source"
"C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" "MagicJack" "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"
"c:\Program Files\magicservice\magicjack.reg"
net stop magicjack
net start magicjack
net start "task scheduler"
at 03:00 /every:M,T,W,Th,F,S,Su "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\MJupdate.exe"
"C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\MJupdate.exe"
Registry info looks like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MagicJack]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MagicJack\Parameters]
"Application"="\"C:\\Documents and Settings\\All Users\\Application Data\\mjusbsp\\MagicJack.exe\" /scf _magicJackPersonalDataRoot \"T:\\magicJack\""
The text above can not be run by its self, it needs the rest of the files that are compressed in the archived file.
I'm sure there are other script files out there to do this but this one I created worked for me and hopefully it can help someone else out.
Note: I think this will work with XP Home but you will have to manually kill the magicjack processes in task manager.
Let me know if it works for you!
Re: MJ as a Service batch file
Tried it this way and keep getting error msg " Invalid Path1 in MJUpdat.ini. Correct and try again".
Running Win XP Home w/ Sp3
Running Win XP Home w/ Sp3
bishop-360 wrote:I have created a batch file to put everything in place to run MJ as a service. It worked perfectly for me. The batch file is written in it's most basic form of scripting.
It also incorporates Stroths MagicJack Update Script 1.3 and will automatically schedule and update check at 03:00 everyday.
The only requirements are Windows XP Pro and the drive letter of the MJ USB drive (The one labeled "PHONE") be changed to the "T" drive
The file can be downloaded here:
http://rapidshare.com/files/184334919/MagicService.exe
This is what the script looks like.
ECHO OFF
taskkill /f /IM magicjack.exe /T
taskkill /f /IM magicjackloader.exe /T
taskkill /f /IM mjsetup.exe /T
md "C:\Program Files\Windows Resource Kits\Tools"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\ar00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\in00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\st00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\ug00000"
md "C:\Documents and Settings\All Users\Application Data\mjusbsp\Upgrade"
copy "c:\Program Files\magicservice\instsrv.exe" "C:\Program Files\Windows Resource Kits\Tools"
copy "c:\Program Files\magicservice\srvany.exe" "C:\Program Files\Windows Resource Kits\Tools"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\ar00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\in00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\st00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\ug00000"
copy "C:\Documents and Settings\%username%\Application Data\mjusbsp" "C:\Documents and Settings\All Users\Application Data\mjusbsp\Upgrade"
md "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate"
md "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\Autohotkey Source"
copy "C:\Program Files\magicservice\MJAutoUpdate" "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate"
copy "C:\Program Files\magicservice\MJAutoUpdate\Autohotkey Source" "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\Autohotkey Source"
"C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" "MagicJack" "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"
"c:\Program Files\magicservice\magicjack.reg"
net stop magicjack
net start magicjack
net start "task scheduler"
at 03:00 /every:M,T,W,Th,F,S,Su "C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\MJupdate.exe"
"C:\Documents and Settings\All Users\Application Data\MJAutoUpdate\MJupdate.exe"
Registry info looks like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MagicJack]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MagicJack\Parameters]
"Application"=""C:\\Documents and Settings\\All Users\\Application Data\\mjusbsp\\MagicJack.exe" /scf _magicJackPersonalDataRoot "T:\\magicJack""
The text above can not be run by its self, it needs the rest of the files that are compressed in the archived file.
I'm sure there are other script files out there to do this but this one I created worked for me and hopefully it can help someone else out.
Note: I think this will work with XP Home but you will have to manually kill the magicjack processes in task manager.
Let me know if it works for you!
Sorry for my long absence. I've been really busy and had a few problems with MJ that I wasn't sure was service related or not. After repeated bouts of troubleshooting, I've determined several things:
- 1) The location I was moving the MJ files to was wrong. The updates expect MJ to be installed in the user's home folder, but when running as a service it's really just running under a special system account, so the files need to be moved there instead. I've updated my directions to take that into account.
2) MJ would periodically just quit and lose its drives in My Computer. Turns out that the weight of the POS MJ box has messed up the little extension cable.
3) You can't login to update your 911 data if your email address has an underscore! This is fairly stupid since that doesn't cause any problems with all the other MJ services.
4) Their tech support is utterly useless! They have nothing but a bunch of drones mindlessly reading scripts!
OK, I've updated my install script, which hopefully will work on Vista. It uses various sources to get all the needed info, so there are no restrictions on drive letters and what not. It will also generate a log file, so if anyone has problems with the install, please post the log!
Install-MJ-service.zip
Install-MJ-service.zip
Re: Magic Jack as a service - a better way
semicharm: You still have a few lingering "All Users" in your main post of this topic. They need to be changed to "LocalService".
I also had a problem with InstallMJService.bat, it contains a stray <echo "%nocopy%"> in the middle which screws things up.
I also had a problem with InstallMJService.bat, it contains a stray <echo "%nocopy%"> in the middle which screws things up.
Hi semicharm,semicharm wrote:
1) The location I was moving the MJ files to was wrong. The updates expect MJ to be installed in the user's home folder, but when running as a service it's really just running under a special system account, so the files need to be moved there instead. I've updated my directions to take that into account.
Thanks for all your work.
I'm running XP Home SP3, but I don't have a Documents and Settings\LocalService\ folder as you've changed it to.
I only have:
- A) Documents and Settings\All Users\Application Data\,
B) D and S\MyUsername\Application Data\ -OR- D and S\MyUsername\Local Settings\, and
C) a hidden D and S\Default User\Application Data\ -OR- D and S\Default User\Local Settings\.
In my case, should I be using the Default User? ... and if so, should I use Default User\Application Data\ -OR- Default User\Local Settings\Application Data?
And will your install script not work for me? (I'm guessing that the install script is to be run after MJ updates? but that the instructions on the first page of this thread are for the initial setup? Is my thinking correct?)
...although in my case it simply may not work b/c my folder names appear to be different.
Pls advise. Thanks so much for your assistance.
Update:
Ok, I figured it out and got mJ running as a service on my desktop. Just need to finish the process on my laptop as well.
It turns out that I had to find a way to make the LocalService folder appear in Windows Explorer. I had half of the formula, but the other half really made the difference.
I found the answer at: http://www.tech-archive.net/Archive/Win ... 00893.html
One thing that I've noticed however is that I have cdloader.exe that tries to edit my registry whenever the magicJack is first plugged in. I use Spybot S&D and since I had read that people had challenges with it continuing to run, I simply have not allowed it to be added to the registry.
I hope I am not missing anything by doing this. I'm also wondering if your script would work for me since I don't have cdloader2.exe. If I had allowed cdloader.exe, do you think somehow some files might have been updated/upgraded on my mJ app such that I would now have cdloader.exe? and should it really matter to me one way or another?
I just would like to be sure that I'm not missing out any necessary upgrades I should be getting.
Does anyone have any thoughts on this? Thanks much.
PLEASE HELP Its Not Running for me
i did part 4 as its described
i did part 6
The Service was successfully added
Make sure tat you go into the control panel and use the services applet to change the account name and use
password that this newly installed service will use for
its security context
when it ask for registry edit i follow the steps
MagicJack >New>Key and name it Parameters Now in the Parameters key, right click, choose New>String Value, and name it Application.
Double click the Application value and set it to
i set it exact like this as i write it down
C:\Documents and Settings\All Users\Application Data\mjusbsp\magicJack.exe/scf _magicJackPersonalDataRoot "X:\magicJack"
"I didnt understand this part"
where X is the second MagicJack drive letter you found earlier, then click OK.
then i restart the computer but its not running without usb
Warning Plug the magic jack USB
its only work when i plug in the magic jack
i guess i am close ?
Any help would be appriciated
Thankssss
i did part 6
The Service was successfully added
Make sure tat you go into the control panel and use the services applet to change the account name and use
password that this newly installed service will use for
its security context
when it ask for registry edit i follow the steps
MagicJack >New>Key and name it Parameters Now in the Parameters key, right click, choose New>String Value, and name it Application.
Double click the Application value and set it to
i set it exact like this as i write it down
C:\Documents and Settings\All Users\Application Data\mjusbsp\magicJack.exe/scf _magicJackPersonalDataRoot "X:\magicJack"
"I didnt understand this part"
where X is the second MagicJack drive letter you found earlier, then click OK.
then i restart the computer but its not running without usb
Warning Plug the magic jack USB
its only work when i plug in the magic jack
i guess i am close ?
Any help would be appriciated
Thankssss