[SOLVED] Install location of MediaMonkey

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

[SOLVED] Install location of MediaMonkey

Postby Melloware » Sun Dec 13, 2009 11:53 am

For my MonkeyTunes plugin I have written an installer to install into my plugin into MediaMonkey. It uses some clever tricks to find out where your Program Files are located etc. However some users install MediaMonkey in like D:\MediaMonkey.

Is there any registry entry or any way to find out where MediaMonkey was installed? This way I can make my installer bullet proof.
Last edited by Melloware on Mon Dec 14, 2009 5:59 pm, edited 1 time in total.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
MonkeyTunes - DACP Server for MediaMonkey
Intelliremote - Take Back Control of your HTPC!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware
 
Posts: 329
Joined: Mon Aug 18, 2008 9:46 am
Location: Philadelphia, PA, US

Re: Install location of MediaMonkey

Postby rovingcowboy » Sun Dec 13, 2009 12:29 pm

i remember a old vbs script add in for another program. gambit made the code. it used a get or if then function type of code that would check the listed locations in that little code. which were the program files folder on c drive.
then c drive with a blank directory and the name of the program looking for including the 3 letter extentsion.
and then the last one was a blank drive and directory which made it look any place on the user's system.
it looked like this (" :\***\*** ") or something like that. either the ** or ... to give the script free hand at looking for it.

does that make any sense for what you need. i think that as i said was a old vbs code. :-?
roving cowboy / keith hall. My skins viewtopic.php?f=9&t=16724 for some help check on Monkey's helpful messages at viewtopic.php?p=44008#44008 MY SYSTEMS.1.Xp pro sp3, vers 3.2 jukebox, pcchips mb. amd sem... built by me) 2.WinXP pro sp3, vers 2.5.5 and vers 3.2 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.WinXp pro sp 3 version 2.5 and version 3.2 work gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 4.Dell demension, winxp pro sp3, mm3.5 spare jukebox. 5.WinXp pro sp3, vers 2.5.5, moms computer. Sony vaio.)6. Motorola Photon. Android 4.1.2
rovingcowboy
 
Posts: 13399
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)

Re: Install location of MediaMonkey

Postby nohitter151 » Sun Dec 13, 2009 4:00 pm

Have you considered using a MediaMonkey installation package?

http://www.mediamonkey.com/wiki/index.php/Mmip
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?
nohitter151
 
Posts: 21445
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA

Re: Install location of MediaMonkey

Postby Melloware » Sun Dec 13, 2009 4:50 pm

nohitter151 wrote:Have you considered using a MediaMonkey installation package?

http://www.mediamonkey.com/wiki/index.php/Mmip


I had considered that but I am not sure if I wanted to invest that much time as I need to do some custom tasks in my installer such as ...

1. Run netsh to punch holes through Windows Firewall for UDP 5353 and TCP 3689. (Installer script must run at Admin level to do this)

2. Install my object in the registry since it is a COM object. (also admin function)

Maybe I can make it all work using an MMIP, need to research a little more! Thanks for the suggestion.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
MonkeyTunes - DACP Server for MediaMonkey
Intelliremote - Take Back Control of your HTPC!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware
 
Posts: 329
Joined: Mon Aug 18, 2008 9:46 am
Location: Philadelphia, PA, US

Re: Install location of MediaMonkey

Postby trixmoto » Mon Dec 14, 2009 4:57 am

I do (2) in a number of my scripts, Vista won't even allow many simple scripts to install without admin rights anyway, so I think most people do this automatically now. You could even put a message box at the beginning of the installation script to warn that if they are not running as administrator then it may fail.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Install location of MediaMonkey

Postby fizzjob » Mon Dec 14, 2009 9:53 am

Melloware wrote:For my MonkeyTunes plugin I have written an installer to install into my plugin into MediaMonkey. It uses some clever tricks to find out where your Program Files are located etc. However some users install MediaMonkey in like D:\MediaMonkey.

Is there any registry entry or any way to find out where MediaMonkey was installed? This way I can make my installer bullet proof.
Try pulling it from the registry:

Code: Select all
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Media_Monkey_is1\InstallLocation

On a 64-bit machine, that key will in HKLM\SOFTWARE\Wow6432Node\Microsoft... instead. Should be fairly simple to check both locations and use whichever one exists.
Image
fizzjob
 
Posts: 371
Joined: Fri Mar 30, 2007 12:37 pm

Re: Install location of MediaMonkey

Postby Melloware » Mon Dec 14, 2009 12:15 pm

Thanks for everyone's help! For now I will use FizzJob's suggestion of looking in both spots in the registry and use one that is found. I will test on my Vista64 and my XP32 machine to make sure it works!

Thanks!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
MonkeyTunes - DACP Server for MediaMonkey
Intelliremote - Take Back Control of your HTPC!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware
 
Posts: 329
Joined: Mon Aug 18, 2008 9:46 am
Location: Philadelphia, PA, US


Return to Addons developer forum

Who is online

Users browsing this forum: No registered users and 3 guests