[SOLVED] Install location of MediaMonkey

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: [SOLVED] Install location of MediaMonkey

Re: Install location of MediaMonkey

by 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!

Re: Install location of MediaMonkey

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

Re: Install location of MediaMonkey

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

Re: Install location of MediaMonkey

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

Re: Install location of MediaMonkey

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

Have you considered using a MediaMonkey installation package?

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

Re: Install location of MediaMonkey

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

[SOLVED] Install location of MediaMonkey

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

Top