Magic Jack as a service - a better way

magicJack Tips and Tricks

Moderators: Pilot, Bill Smith

User avatar
antoinefinch
magicJack Apprentice
Posts: 20
Joined: Sat May 31, 2008 12:46 pm
Location: Fayetteville, NC
Contact:

Re: does this work for Vista?

Post by antoinefinch »

[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.

Image


GET MAJICBLOCK

[url=http://www.download.com/MagicBlock/3000-2349_4-10838528.html?hhTest]MAGICBLOCK


Will recheck vista for running as service
daisyanne
MagicJack Newbie
Posts: 2
Joined: Wed Jul 09, 2008 6:17 pm

Thanks

Post by daisyanne »

That work great, your my hero.

thanks!
mufon
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

Post by mufon »

daisyanne wrote:That work great, your my hero.

thanks!
Don't forget to thank the late, great, Frank Zappa. Author of the original spec.

Absence of Bibliography withstanding.
"Looking for a new job. I have worked for Adelphia, Enron, Health South, Worldcom, and most recently British Petroleum."
cltdba
MagicJack Newbie
Posts: 5
Joined: Mon Jul 21, 2008 9:20 pm
Location: Kannapolis, NC

Complete, clean

Post by cltdba »

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! :D heheh)

Again, thanks for the contribution. It saved me a lot of time and my perfectionist appetite has been satiated.
-cltdba-
greginky
MagicJack Newbie
Posts: 5
Joined: Thu Jul 24, 2008 11:54 am
Location: Frankfort Kentucky

Post by greginky »

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????
noneyah
MagicJack Newbie
Posts: 1
Joined: Sun Jun 29, 2008 12:48 pm

Differences?

Post by noneyah »

:?: 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? :?:
cltdba
MagicJack Newbie
Posts: 5
Joined: Mon Jul 21, 2008 9:20 pm
Location: Kannapolis, NC

Post by cltdba »

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????
Need to know what error is being reported.

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-
cltdba
MagicJack Newbie
Posts: 5
Joined: Mon Jul 21, 2008 9:20 pm
Location: Kannapolis, NC

Re: Differences?

Post by cltdba »

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? :?:
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.

Good luck!
-cltdba-
cltdba
MagicJack Newbie
Posts: 5
Joined: Mon Jul 21, 2008 9:20 pm
Location: Kannapolis, NC

Re: Differences?

Post by cltdba »

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? :?:
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.

Good luck!
-cltdba-
hanuman67
MagicJack Newbie
Posts: 2
Joined: Fri May 09, 2008 7:51 pm

Minimum requirements for MagicBlock 1.2

Post by hanuman67 »

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?
hanuman67
MagicJack Newbie
Posts: 2
Joined: Fri May 09, 2008 7:51 pm

Minimum requirements for MagicBlock 1.2

Post by hanuman67 »

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?
xdurus
MagicJack Newbie
Posts: 3
Joined: Fri Aug 15, 2008 7:11 pm

Post by xdurus »

Excellent!!!!!!!!!!!!!!!!! THANK YOU, THANK YOU, THANK YOU! Poster :D
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?
booyah5
Dan isn't smart enough to hire me
Posts: 108
Joined: Fri Aug 01, 2008 12:12 am

Post by booyah5 »

Look at this post. You can run that with a runas /user:user type command.
Matt9876
Dan Should Pay Me
Posts: 504
Joined: Sat Jul 26, 2008 9:38 pm

Post by Matt9876 »

Now that I have MJ running the way it should the next logical step is to run it as a service.

Thanks!
angel-78
magicJack Apprentice
Posts: 28
Joined: Wed Jul 02, 2008 10:45 am
Location: SAN DIEGO

Post by angel-78 »

This is a thread that works great for that. When i set up my little Optiplex this is what I used and it works great.
Bendle
Dan isn't smart enough to hire me
Posts: 103
Joined: Thu Mar 27, 2008 5:14 pm
Location: proxy1.nashville.talk4free.com

Post by Bendle »

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????
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...
User avatar
antoinefinch
magicJack Apprentice
Posts: 20
Joined: Sat May 31, 2008 12:46 pm
Location: Fayetteville, NC
Contact:

MAGIC LOCAL SERVICE

Post by antoinefinch »

I RUN MJ on my WINXP SP3 PC as local service set to automatic. with no problems
Bendle
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

Post by Bendle »

antoinefinch wrote:I RUN MJ on my WINXP SP3 PC as local service set to automatic. with no problems
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....
k8bebop
MagicJack Newbie
Posts: 1
Joined: Mon Aug 25, 2008 11:00 am

error sort of

Post by k8bebop »

I get a dialog box that states:
Image

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
t0mmyd
MagicJack Newbie
Posts: 3
Joined: Tue Aug 26, 2008 9:49 pm

Post by t0mmyd »

Thanks guys! Mine appears to be working as a service flawlessly. Is it normal for this sevice to use 26,000k memory as a service while it's running or did I do something wrong?
louie37

Post by louie37 »

has anyone tried or used firedaemon pro to run MJ as a service, if so what were the results?
TheShanMan
MagicJack Newbie
Posts: 7
Joined: Wed Jun 25, 2008 4:50 pm

Post by TheShanMan »

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.
JohnODon
MagicJack Contributor
Posts: 59
Joined: Mon Oct 06, 2008 4:55 pm

Post by JohnODon »

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
JohnODon
MagicJack Contributor
Posts: 59
Joined: Mon Oct 06, 2008 4:55 pm

Post by JohnODon »

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
solarpower
MagicJack Newbie
Posts: 6
Joined: Fri Sep 26, 2008 12:26 am

Post by solarpower »

Will this work for thinclient (XP Embedded)?
rick.1973
MagicJack Newbie
Posts: 6
Joined: Wed Oct 01, 2008 2:39 am

Post by rick.1973 »

Is a thin client really nessesary? my MJ has been running great since i bought it.
doncabrn
MagicJack Newbie
Posts: 8
Joined: Wed Oct 22, 2008 10:40 pm

Magic Jack as a service - a better way

Post by doncabrn »

Thanks this was the easiest setup! works great. :D :)
ralfo
MagicJack Newbie
Posts: 2
Joined: Mon Nov 17, 2008 9:57 am

Post by ralfo »

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?
johnnyr41
MagicJack Newbie
Posts: 5
Joined: Tue Sep 30, 2008 11:54 am

Can it be done with Vista

Post by johnnyr41 »

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?
OG1502
magicJack Apprentice
Posts: 17
Joined: Thu May 22, 2008 12:48 am

Re: Can it be done with Vista

Post by OG1502 »

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?
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.
OG1502
magicJack Apprentice
Posts: 17
Joined: Thu May 22, 2008 12:48 am

Post by OG1502 »

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
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.
30secs
MagicJack User
Posts: 36
Joined: Wed Sep 17, 2008 9:11 pm

Post by 30secs »

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?
cruz878
MagicJack Newbie
Posts: 2
Joined: Tue Dec 09, 2008 10:56 pm

Post by cruz878 »

Purchased a MagicJack 2 nights ago and set it up to run as a service immediately after plugging it in. Instructions were perfect!
Brent Egger
MagicJack Newbie
Posts: 1
Joined: Wed Dec 17, 2008 10:36 pm

Running Magic Jack as a service in Vista

Post by Brent Egger »

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"
OrionnoirO
MagicJack Newbie
Posts: 7
Joined: Fri Dec 19, 2008 11:50 am

Post by OrionnoirO »

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. :D
kazoo37
MagicJack Newbie
Posts: 1
Joined: Mon Dec 22, 2008 2:21 pm

Post by kazoo37 »

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?
I am also wondering this. I have seen it asked a few times in this thread with no response.

Thanks
stroths
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

Post by stroths »

kazoo37 wrote:
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?
I am also wondering this. I have seen it asked a few times in this thread with no response.

Thanks
I have a solution that I just created tonight and posted in another thread. Here is the info I posted there:

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 :D

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
murdercity305
MagicJack Newbie
Posts: 1
Joined: Mon Nov 24, 2008 6:12 pm

cannot find magic in registry

Post by murdercity305 »

cannot find magic in registry

I follow directions but can not find it :x
arcadia2uk
Dan isn't smart enough to hire me
Posts: 187
Joined: Sun Dec 07, 2008 9:03 pm

Post by arcadia2uk »

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.
stroths
Dan isn't smart enough to hire me
Posts: 470
Joined: Wed Apr 02, 2008 11:45 pm
Location: Dallas, TX

Post by stroths »

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.
If you use my utilities suite, it has a button you can click to remove the startup entry if you want.
arcadia2uk
Dan isn't smart enough to hire me
Posts: 187
Joined: Sun Dec 07, 2008 9:03 pm

Post by arcadia2uk »

Thanks,
I saw that option, but didn't make the connection. I'll try it.
NiteShdw
magicJack Apprentice
Posts: 12
Joined: Thu Jan 15, 2009 2:58 am

Post by NiteShdw »

I'm using Vista Ultimate, and I followed the instructions adjusted for Vista Home (using C:\ProgramData). Everything went great.

I can make and receive calls without the dang software popping up. Thanks!
bishop-360
MagicJack Newbie
Posts: 6
Joined: Mon Jan 12, 2009 6:56 am

MJ as a Service batch file

Post by bishop-360 »

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!
brownsfan
MagicJack Newbie
Posts: 3
Joined: Tue Dec 16, 2008 7:53 pm

Re: MJ as a Service batch file

Post by brownsfan »

Tried it this way and keep getting error msg " Invalid Path1 in MJUpdat.ini. Correct and try again".
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!
semicharm
MagicJack Contributor
Posts: 67
Joined: Thu Apr 24, 2008 7:34 am

Post by semicharm »

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!
semicharm
MagicJack Contributor
Posts: 67
Joined: Thu Apr 24, 2008 7:34 am

Post by semicharm »

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
jwscode
MagicJack Newbie
Posts: 2
Joined: Tue Jan 20, 2009 11:10 am

Post by jwscode »

Thanks bishop-360 this batch file worked great and improved my call quality also.
Along with portfording , magic jack works like a land line.

Thanks again :D
MJuser403
magicJack Apprentice
Posts: 26
Joined: Sat Jan 24, 2009 5:16 pm

Re: Magic Jack as a service - a better way

Post by MJuser403 »

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.
carebear
MagicJack Newbie
Posts: 2
Joined: Thu Jan 01, 2009 2:28 am

Post by carebear »

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.
Hi semicharm,

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\.
Inside each of the different folders' Local Settings folders there is also a hidden \Application Data\ folder.

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.

:)
tinko
MagicJack Newbie
Posts: 6
Joined: Sat Feb 14, 2009 1:54 am

PLEASE HELP Its Not Running for me

Post by tinko »

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
Post Reply