Stroths MagicJack Update Script v1.3a

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
stroths
Dan isn't smart enough to hire me
Posts: 470
Joined: Wed Apr 02, 2008 11:45 pm
Location: Dallas, TX

Stroths MagicJack Update Script v1.3a

Post by stroths »

Stroths MagicJack Update Script 1.3a

UPDATE: As of 1/5/09, I have discontinued updates in this thread. This application has been incorporated into to my MagicJack Utilities Suite. Any future versions off this application will be in the suite. - LINK

I felt bad taking over Trebuin's thread, so I created my own here.

**WARNING** I take no responsibility for anything this may do to your system. Use at your own risk and please make a backup before running.

Download
Stroths MagicJack Update Script v1.3a

Description
This script will check if there is an updated version of upgrade.exe on the MJ servers. If so, it will download it and run the update.

Instructions
1. Unzip the whole MJAutoUpdate folder to the appropriate directory. The MJAutoUpdate folder should be at the same level your mjusbsp folder is at. For example, if your MJ data is at C:\users\Default\AppData\Roaming\mjusbspsp, then this folder should be at C:\users\Default\AppData\Roaming\MJAutoUpdate. See the example below for more clarification.

Code: Select all

 Volume in drive C is Vista
 Directory of C:\Users\Default\AppData\Roaming

12/29/2008  02:13 AM    <DIR>          .
12/29/2008  02:13 AM    <DIR>          ..
12/29/2008  12:34 AM    <DIR>          MJAutoUpdate
12/28/2008  11:26 PM    <DIR>          mjusbsp
12/28/2008  10:31 PM    <DIR>          mjusbspbak
               0 File(s)              0 bytes
               6 Dir(s)  30,466,351,104 bytes free
2. Modify the variables in the MJUpdate.ini to match your system's configuration. You can use any text editor to do this (i.e. notepad).

3. Once done, you can run one of the 3 MJupdate files (described below) as needed.

4. (Optional) - Create a shortcut to CurrentMJ_Version.exe and the appropriate MJupdate executable on your desktop. This will make it easier to check your version or do an update in the future.

5. (Optional) Setup a scheduled task to run the appropriate MJUpdate executable as needed. Task Scheduler should be in your Windows Control Panel if installed. If you do no have it installed, you can try a freeware alternative like Pycron which is what I use.

NOTE: A backup of your files is made prior to an upgrade in a folder called mjusbspbak. You can see it in the example on step 1 above.

File Descriptions
MJupdate.exe - Main app designed for those running their MagicJacks as a service.
MJupdate_ThinClient.exe - Designed for thin clients or those running EWF. Same as above, but includes a command at the end to commit the changes.
MJupdate_NonService.exe - Designed for those running their MJ's in native mode (not as a service).
CurrentMJ_Version.exe - Provides the version number and date stamp for your magicjack.exe
MJUpdate.ini - This is the configuration file that you MUST update with your system's settings.

Changelog
1.3a
- Fixed a bad path variable (typo) introduced into v1.3

1.3
-Fixed issue where MJ would not restart if running in nonservice mode
-Reorganized MJUpdate.ini for clarification

1.2
- Corrected issues encountered if run from a shortcut with working directory not set

1.1
- Added support for those not running their MJ in service mode

1.0
- Initial Release
- Thin Client Support
- Vista and XP Compatible
- MJUpdate and MJupdate_ThinClient will delete the cdloader from the registry startup

Credits
The initial idea came from Trebuin, so I tip my hat to him.
Last edited by stroths on Mon Jan 05, 2009 11:14 am, edited 5 times in total.
OG1502
magicJack Apprentice
Posts: 17
Joined: Thu May 22, 2008 12:48 am

Invalid Path1

Post by OG1502 »

I try to run the updater and I get an error message telling me that my Path1 in the .ini file is wrong but I'm pretty sure it's correct.

How it looks:


[MJServiceMode]
Path1 = C:\Users\Default\AppData\Roaming
Path2 = C:\Users\Omar\AppData\Roaming
MJService = magicJack

[MJNONServiceMode]
MJFlashDriveLetter = E
Path1 = C:\users\Default\AppData\Roaming

[ScriptVer]
scriptver = v1.3

/Path1 is the correct location of my mjusbsp folder, path2 has been changed with my user name but there isn't any folder affiliated with magicjack in there as I am running it as a service and thus it has been relocated to path1. The Service name is "magicJack" (with out quotation marks). The drive letter is J on my computer but I dont believe it's of any importance since I am running it as a service although I have tried running the program with that modification.

Any suggestions?
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 »

OG1502,

Make sure you are running the 1.3a version (latest). I had a bug in 1.3 with the paths that I fixed in 1.3a.

You only have to update the fields below since you are running in Service mode. The Path2 is required because if you run the update manually it will run as your user (Omar). The files end up being installed to your directory and the script will move them to Path1 at the end.

The only other thing I can think of is that your MJAutoUpdate folder is not in the correct location. It should be at C:\Users\Default\AppData\Roaming\MJAutoUpdate in your setup.

Let me know if any of this helps.


[MJServiceMode]
Path1 = C:\Users\Default\AppData\Roaming
Path2 = C:\Users\Omar\AppData\Roaming
MJService = magicJack
OG1502
magicJack Apprentice
Posts: 17
Joined: Thu May 22, 2008 12:48 am

Path1 Error

Post by OG1502 »

Figured it out. I was running version 1.3 not 1.3a, weird thing is that I downloaded the program, through the link on the post, just a couple of minutes before I posted my problem. When did you update the link?

Anyway thanks, it seems to work.
stroths
Dan isn't smart enough to hire me
Posts: 470
Joined: Wed Apr 02, 2008 11:45 pm
Location: Dallas, TX

Re: Path1 Error

Post by stroths »

OG1502 wrote:Figured it out. I was running version 1.3 not 1.3a, weird thing is that I downloaded the program, through the link on the post, just a couple of minutes before I posted my problem. When did you update the link?

Anyway thanks, it seems to work.
I'm glad that fixed it. I should have updated it somewhere between 12 and 12:30 CST.
OG1502
magicJack Apprentice
Posts: 17
Joined: Thu May 22, 2008 12:48 am

Path1 Error

Post by OG1502 »

Ah, I downloaded the file at 11:56 am CST. I see.
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 »

UPDATE: As of 1/5/09, I have discontinued updates in this thread. This application has been incorporated into to my MagicJack Utilities Suite. Any future versions off this application will be in the suite. - LINK
Last edited by stroths on Mon Jan 05, 2009 11:15 am, edited 3 times in total.
mcbelisle
MagicJack Contributor
Posts: 56
Joined: Sat Feb 16, 2008 1:10 pm

Post by mcbelisle »

that link doesn't work. just points to the main board
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 »

mcbelisle wrote:that link doesn't work. just points to the main board
Works for me..hmm. I updated it with a different link that might work better for you. See if that works.
Günter Höhn
magicJack Apprentice
Posts: 10
Joined: Thu Feb 28, 2008 5:58 pm
Location: Germany
Contact:

Post by Günter Höhn »

stroths wrote:UPDATE: As of 1/5/09, I have discontinued updates in this thread. All work has been moved to my MagicJack Utilities Suite - LINK
Mr. Stroths,

Your links do not work because they are missing the www in front of the magicjacksupport.

Change your link to www.phoneservicesupport.com/stroths-mj-utilities-suite-sip-grabber-upgrader-and-more-t4230.html

and people will be able to view and use your extremely creative tool. The same logic needs to be applied to your signature, for those links to work as well.

Your humble servant,

Günter
Post Reply