Unofficial magicJack Forum

Unofficial magicJack Forum

Your Unofficial magicJack and magicJack Plus phone service information resource
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Magic Jack as a service - a better way
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    Unofficial magicJack Forum -> magicJack Tips, Tricks, and Hacks
View previous topic :: View next topic  
Author Message
antoinefinch
magicJack Apprentice


Joined: 31 May 2008
Posts: 20
Location: Fayetteville, NC

PostPosted: Thu Jul 10, 2008 4:40 pm    Post subject: Re: does this work for Vista?

daisyanne wrote:
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.


[URL=http://g.imageshack.us/g.php?h=91&i=mybarez6


GET MAJICBLOCK

MAGICBLOCK

Will recheck vista for running as service
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
daisyanne
MagicJack Newbie


Joined: 09 Jul 2008
Posts: 2

PostPosted: Thu Jul 10, 2008 6:14 pm    Post subject: Thanks

That work great, your my hero.

thanks!
Back to top
View user's profile Send private message
mufon
Dan isn't smart enough to hire me


Joined: 25 Jan 2008
Posts: 296
Location: HIghland Village, Texas

PostPosted: Sat Jul 12, 2008 4:19 pm    Post subject: Re: Thanks

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.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
cltdba
MagicJack Newbie


Joined: 21 Jul 2008
Posts: 5
Location: Kannapolis, NC

PostPosted: Thu Jul 24, 2008 9:12 pm    Post subject: 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! Very Happy heheh)

Again, thanks for the contribution. It saved me a lot of time and my perfectionist appetite has been satiated.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
greginky
MagicJack Newbie


Joined: 24 Jul 2008
Posts: 5
Location: Frankfort Kentucky

PostPosted: Sun Jul 27, 2008 2:58 pm    Post subject:

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????
Back to top
View user's profile Send private message Yahoo Messenger
noneyah
MagicJack Newbie


Joined: 29 Jun 2008
Posts: 1

PostPosted: Sun Jul 27, 2008 5:44 pm    Post subject: Differences?

Question 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? Question
Back to top
View user's profile Send private message AIM Address
cltdba
MagicJack Newbie


Joined: 21 Jul 2008
Posts: 5
Location: Kannapolis, NC

PostPosted: Sun Jul 27, 2008 6:14 pm    Post subject:

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.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
cltdba
MagicJack Newbie


Joined: 21 Jul 2008
Posts: 5
Location: Kannapolis, NC

PostPosted: Sun Jul 27, 2008 10:46 pm    Post subject: Re: Differences?

noneyah wrote:
Question 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? Question


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!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
cltdba
MagicJack Newbie


Joined: 21 Jul 2008
Posts: 5
Location: Kannapolis, NC

PostPosted: Sun Jul 27, 2008 10:50 pm    Post subject: Re: Differences?

noneyah wrote:
Question 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? Question


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!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
hanuman67
MagicJack Newbie


Joined: 09 May 2008
Posts: 2

PostPosted: Tue Jul 29, 2008 8:39 pm    Post subject: 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?
Back to top
View user's profile Send private message
hanuman67
MagicJack Newbie


Joined: 09 May 2008
Posts: 2

PostPosted: Tue Jul 29, 2008 8:39 pm    Post subject: 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?
Back to top
View user's profile Send private message
xdurus
MagicJack Newbie


Joined: 15 Aug 2008
Posts: 3

PostPosted: Sat Aug 16, 2008 10:32 am    Post subject:

Excellent!!!!!!!!!!!!!!!!! THANK YOU, THANK YOU, THANK YOU! Poster Very Happy
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?
Back to top
View user's profile Send private message
booyah5
Dan isn't smart enough to hire me


Joined: 01 Aug 2008
Posts: 108

PostPosted: Sat Aug 16, 2008 11:22 am    Post subject:

Look at this post. You can run that with a runas /user:user type command.
Back to top
View user's profile Send private message
Matt9876
Dan Should Pay Me


Joined: 26 Jul 2008
Posts: 504

PostPosted: Sat Aug 16, 2008 11:57 am    Post subject:

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

Thanks!
Back to top
View user's profile Send private message
angel-78
magicJack Apprentice


Joined: 02 Jul 2008
Posts: 28
Location: SAN DIEGO

PostPosted: Sat Aug 16, 2008 2:16 pm    Post subject:

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.
Back to top
View user's profile Send private message MSN Messenger
Bendle
Dan isn't smart enough to hire me


Joined: 27 Mar 2008
Posts: 103
Location: proxy1.nashville.talk4free.com

PostPosted: Thu Aug 21, 2008 12:51 pm    Post subject:

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...
Back to top
View user's profile Send private message
antoinefinch
magicJack Apprentice


Joined: 31 May 2008
Posts: 20
Location: Fayetteville, NC

PostPosted: Thu Aug 21, 2008 1:10 pm    Post subject: MAGIC LOCAL SERVICE

I RUN MJ on my WINXP SP3 PC as local service set to automatic. with no problems
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Bendle
Dan isn't smart enough to hire me


Joined: 27 Mar 2008
Posts: 103
Location: proxy1.nashville.talk4free.com

PostPosted: Thu Aug 21, 2008 1:30 pm    Post subject: Re: MAGIC LOCAL SERVICE

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....
Back to top
View user's profile Send private message
k8bebop
MagicJack Newbie


Joined: 25 Aug 2008
Posts: 1

PostPosted: Mon Aug 25, 2008 11:43 am    Post subject: 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
Back to top
View user's profile Send private message
t0mmyd
MagicJack Newbie


Joined: 26 Aug 2008
Posts: 3

PostPosted: Thu Aug 28, 2008 10:29 pm    Post subject:

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?
Back to top
View user's profile Send private message
louie37
Guest





PostPosted: Mon Sep 01, 2008 2:07 am    Post subject:

has anyone tried or used firedaemon pro to run MJ as a service, if so what were the results?
Back to top
TheShanMan
MagicJack Newbie


Joined: 25 Jun 2008
Posts: 7

PostPosted: Mon Sep 01, 2008 4:01 pm    Post subject:

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.
Back to top
View user's profile Send private message
JohnODon
MagicJack Contributor


Joined: 06 Oct 2008
Posts: 59

PostPosted: Thu Oct 09, 2008 5:49 pm    Post subject:

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
Back to top
View user's profile Send private message
JohnODon
MagicJack Contributor


Joined: 06 Oct 2008
Posts: 59

PostPosted: Fri Oct 10, 2008 2:04 pm    Post subject:

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
Back to top
View user's profile Send private message
solarpower
MagicJack Newbie


Joined: 26 Sep 2008
Posts: 6

PostPosted: Sun Oct 26, 2008 11:38 am    Post subject:

Will this work for thinclient (XP Embedded)?
Back to top
View user's profile Send private message
rick.1973
MagicJack Newbie


Joined: 01 Oct 2008
Posts: 6

PostPosted: Mon Oct 27, 2008 12:53 am    Post subject:

Is a thin client really nessesary? my MJ has been running great since i bought it.
Back to top
View user's profile Send private message
doncabrn
MagicJack Newbie


Joined: 22 Oct 2008
Posts: 8

PostPosted: Tue Oct 28, 2008 8:37 pm    Post subject: Magic Jack as a service - a better way

Thanks this was the easiest setup! works great. Very Happy Smile
Back to top
View user's profile Send private message
ralfo
MagicJack Newbie


Joined: 17 Nov 2008
Posts: 2

PostPosted: Mon Nov 17, 2008 11:33 pm    Post subject:

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?
Back to top
View user's profile Send private message
johnnyr41
MagicJack Newbie


Joined: 30 Sep 2008
Posts: 5

PostPosted: Sun Nov 23, 2008 3:58 pm    Post subject: 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?
Back to top
View user's profile Send private message
OG1502
magicJack Apprentice


Joined: 22 May 2008
Posts: 17

PostPosted: Sun Nov 30, 2008 6:25 am    Post subject: Re: Can it be done with Vista

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.
Back to top
View user's profile Send private message
OG1502
magicJack Apprentice


Joined: 22 May 2008
Posts: 17

PostPosted: Sun Nov 30, 2008 6:27 am    Post subject:

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.
Back to top
View user's profile Send private message
30secs
MagicJack User


Joined: 17 Sep 2008
Posts: 36

PostPosted: Thu Dec 04, 2008 9:19 pm    Post subject:

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?
Back to top
View user's profile Send private message
cruz878
MagicJack Newbie


Joined: 09 Dec 2008
Posts: 2

PostPosted: Fri Dec 19, 2008 3:27 pm    Post subject:

Purchased a MagicJack 2 nights ago and set it up to run as a service immediately after plugging it in. Instructions were perfect!
Back to top
View user's profile Send private message
Brent Egger
MagicJack Newbie


Joined: 17 Dec 2008
Posts: 1

PostPosted: Sat Dec 20, 2008 1:17 am    Post subject: 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"
Back to top
View user's profile Send private message
OrionnoirO
MagicJack Newbie


Joined: 19 Dec 2008
Posts: 7

PostPosted: Mon Dec 22, 2008 5:53 pm    Post subject:

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. Very Happy
Back to top
View user's profile Send private message
kazoo37
MagicJack Newbie


Joined: 22 Dec 2008
Posts: 1

PostPosted: Tue Dec 23, 2008 9:06 pm    Post subject:

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
Back to top
View user's profile Send private message
stroths
Dan isn't smart enough to hire me


Joined: 02 Apr 2008
Posts: 470
Location: Dallas, TX

PostPosted: Mon Dec 29, 2008 3:18 am    Post subject: MJ Update Script for those running MJ in Service Mode

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 Very Happy

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
Back to top
View user's profile Send private message
murdercity305
MagicJack Newbie


Joined: 24 Nov 2008
Posts: 1

PostPosted: Tue Jan 06, 2009 9:45 pm    Post subject: cannot find magic in registry

cannot find magic in registry

I follow directions but can not find it Mad
Back to top
View user's profile Send private message
arcadia2uk
Dan isn't smart enough to hire me


Joined: 07 Dec 2008
Posts: 187

PostPosted: Fri Jan 09, 2009 5:34 pm    Post subject:

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.
Back to top
View user's profile Send private message
stroths
Dan isn't smart enough to hire me


Joined: 02 Apr 2008
Posts: 470
Location: Dallas, TX

PostPosted: Fri Jan 09, 2009 9:17 pm    Post subject:

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.
Back to top
View user's profile Send private message
arcadia2uk
Dan isn't smart enough to hire me


Joined: 07 Dec 2008
Posts: 187

PostPosted: Sat Jan 10, 2009 9:01 am    Post subject:

Thanks,
I saw that option, but didn't make the connection. I'll try it.
Back to top
View user's profile Send private message
NiteShdw
magicJack Apprentice


Joined: 15 Jan 2009
Posts: 12

PostPosted: Thu Jan 15, 2009 4:16 am    Post subject:

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!
Back to top
View user's profile Send private message
bishop-360
MagicJack Newbie


Joined: 12 Jan 2009
Posts: 6

PostPosted: Fri Jan 16, 2009 7:23 am    Post subject: 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!
Back to top
View user's profile Send private message
brownsfan
MagicJack Newbie


Joined: 16 Dec 2008
Posts: 3

PostPosted: Tue Jan 20, 2009 4:26 pm    Post subject: 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

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!
Back to top
View user's profile Send private message
semicharm
MagicJack Contributor


Joined: 24 Apr 2008
Posts: 67

PostPosted: Wed Jan 21, 2009 1:55 pm    Post subject:

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!
Back to top
View user's profile Send private message
semicharm
MagicJack Contributor


Joined: 24 Apr 2008
Posts: 67

PostPosted: Wed Jan 21, 2009 4:02 pm    Post subject:

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
Back to top
View user's profile Send private message
jwscode
MagicJack Newbie


Joined: 20 Jan 2009
Posts: 2

PostPosted: Thu Jan 22, 2009 12:09 pm    Post subject:

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 Very Happy
Back to top
View user's profile Send private message
MJuser403
magicJack Apprentice


Joined: 24 Jan 2009
Posts: 26

PostPosted: Sat Jan 24, 2009 5:19 pm    Post subject: 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.
Back to top
View user's profile Send private message
carebear
MagicJack Newbie


Joined: 01 Jan 2009
Posts: 2

PostPosted: Mon Jan 26, 2009 9:36 am    Post subject:

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/WinXP/microsoft.public.windowsxp.general/2008-02/msg00893.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.

Smile
Back to top
View user's profile Send private message
tinko
MagicJack Newbie


Joined: 14 Feb 2009
Posts: 6

PostPosted: Sun Feb 15, 2009 5:48 pm    Post subject: 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 Sad
i guess i am close ?

Any help would be appriciated
Thankssss
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Unofficial magicJack Forum -> magicJack Tips, Tricks, and Hacks All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Powered by phpBB Ultra Turbo Extended Edition Live © 2001-9999, phpBB Group
magicJack and magicJack Plus are trademarks of magicJack LLP. This website is in no way affiliated, endorsed, or sponsored by magicJack LLP, and is an unofficial forum for consumers to openly communicate regarding their experiences with the magicJack products.