MODPlug Central Forum Index    
  Log in Register   Profile Log in to check your private messages Usergroups Search Memberlist  
(S=C) [REQ] Recognizing openable files by MPT
Goto page 1, 2  Next
 
Post new topic   Reply to topic    MODPlug Central Forum Index -> Feature Requests (New Posts)
View previous topic :: View next topic  
Author Message
Harbinger



Joined: 19 Apr 2006
Posts: 823
Location: Florida

PostPosted: Tue Mar 09, 2010 4:23 pm    Post subject: (S=C) [REQ] Recognizing openable files by MPT Reply with quote

I can't get Windows XP to allow MPT to be an "opening" program. That is, when i "Open with" for example an .it file, Windows will not allow me to choose mptrack.exe as a valid application. Is there something that can be done about this? Confused

Last edited by Harbinger on Sat Mar 20, 2010 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
LPChip
Site Admin / Site-Builder


Joined: 01 Jan 1970
Posts: 4101
Location: The Netherlands

PostPosted: Tue Mar 09, 2010 4:27 pm    Post subject: Re: (S=O) [REQ] Recognizing openable files by MPT Reply with quote

Harbinger wrote:
I can't get Windows XP to allow MPT to be an "opening" program. That is, when i "Open with" for example an .it file, Windows will not allow me to choose mptrack.exe as a valid application. Is there something that can be done about this? Confused


Can't you select: the program is not listed, and I want to select it myself?

If you did that once before and it is now gone, then there's a corruption in your registry. The program is in your registry, but most likely the path changed and thus windows decide to not show it. When adding it back again though, windows says: hey, its already there, so lets not add it twice.

By manually removing it from the registry, it should work again. If this is the case, I can look the registry location up for you.
_________________

"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs
"I'm not sure how to fix it yet and I don't have time ATM anyway! (gotta finish my new website godverdomme!)" - Jojo
Back to top
View user's profile Send private message Visit poster's website
Harbinger



Joined: 19 Apr 2006
Posts: 823
Location: Florida

PostPosted: Tue Mar 09, 2010 4:41 pm    Post subject: Reply with quote

Great! What file am i looking for? Or should i do an index search for characters in files in a certain folder?
Back to top
View user's profile Send private message
Jojo
OpenMPT Developer


Joined: 07 Aug 2006
Posts: 3364
Location: Germany

PostPosted: Tue Mar 09, 2010 4:45 pm    Post subject: Reply with quote

Actually, the "known programs" list is quite random, and programs might randomly disappear from the list, there's nothing wrong with that.
Can you probably provide a screenshot of this? I'm not sure what you mean with "Windows doesn't allow (...)".
_________________
No support, bug reports, feature requests via PM - they will not be answered. Use the forums.
» Download music, samples, vst plugins: Saga Musix Website
» Official German OpenMPT Wiki
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
LPChip
Site Admin / Site-Builder


Joined: 01 Jan 1970
Posts: 4101
Location: The Netherlands

PostPosted: Tue Mar 09, 2010 5:21 pm    Post subject: Reply with quote

Harbinger wrote:
Great! What file am i looking for? Or should i do an index search for characters in files in a certain folder?


Doubleclick on the file you want to open with OpenMPT, then browse to the exe: mptrack.exe
_________________

"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs
"I'm not sure how to fix it yet and I don't have time ATM anyway! (gotta finish my new website godverdomme!)" - Jojo
Back to top
View user's profile Send private message Visit poster's website
Harbinger



Joined: 19 Apr 2006
Posts: 823
Location: Florida

PostPosted: Tue Mar 09, 2010 5:28 pm    Post subject: Reply with quote

That's already been covered. If you choose "Open with" from the contextual menu of an unrecognized file (such as an .it track), you are allowed to select the list of programs to open it with. Well, MPT doesn't show up, so you can click on the button to Browse and find the application. I find mptrack.exe, open it so it will be recognized, but it doesn't get added to the list.

That's what i want to change...
Back to top
View user's profile Send private message
uncloned



Joined: 21 Apr 2008
Posts: 2453

PostPosted: Tue Mar 09, 2010 5:31 pm    Post subject: Reply with quote

are you checking the check box that says "always use this program....?"
_________________
http://www.chrisvaisvil.com
http://www.notonlymusic.com
music/art/video
Back to top
View user's profile Send private message Visit poster's website
Jojo
OpenMPT Developer


Joined: 07 Aug 2006
Posts: 3364
Location: Germany

PostPosted: Tue Mar 09, 2010 5:35 pm    Post subject: Reply with quote

Harbinger: I think that only programs that reside in C:\Program Files\ are added to this list (just in case you have your OpenMPT somewhere else...)
_________________
No support, bug reports, feature requests via PM - they will not be answered. Use the forums.
» Download music, samples, vst plugins: Saga Musix Website
» Official German OpenMPT Wiki
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Harbinger



Joined: 19 Apr 2006
Posts: 823
Location: Florida

PostPosted: Tue Mar 09, 2010 5:41 pm    Post subject: Reply with quote

No, it's in that folder....

Let's get back to the registry idea. I know very little about Windows' registry files or what it's used for. But i HAVE moved the main application from the original folder (actually when 1.18 came out, i moved the "OpenMPT" folder out of C/Program Files, and kept ModPlug in the "MPT 1.18" folder), but i can't believe that would make Windows think it's not a valid program.

This has also happened with a couple of other executables i have as well...
Back to top
View user's profile Send private message
Jojo
OpenMPT Developer


Joined: 07 Aug 2006
Posts: 3364
Location: Germany

PostPosted: Tue Mar 09, 2010 5:46 pm    Post subject: Reply with quote

Well, since WinXP the whole file association stuff just got a lot more complicated and frustrating, since they wanted to make it easier for the occasional user... I guess you could wait for the OpenMPT installer since it will also be able to change file associations.
_________________
No support, bug reports, feature requests via PM - they will not be answered. Use the forums.
» Download music, samples, vst plugins: Saga Musix Website
» Official German OpenMPT Wiki
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Sam_Zen
Super Moderator


Joined: 14 Oct 2005
Posts: 3690
Location: NL

PostPosted: Wed Mar 10, 2010 1:38 am    Post subject: Reply with quote

Quote:
..only programs that reside in C:\Program Files\ are added to this list

(Running XP) This is not correct. With some extensions I have quite a big "Open with.." list of applications,
and about 75 % of them are not installed in C:\Program Files\.

It appeared that I had the .it format only directly ('enter' on icon) associated with MPPlayer for a quick listen,
so this was a good test to add mptrack.exe to the "Open with.." list.
No problem. After the first time, it re-appeared in the list (even while not enabling "always use this program..").

Jojo wrote:
I'm not sure what you mean with "Windows doesn't allow (...)".

I wondered about that too. You couldn't start mptrack.exe after a OK ? Some error message ?

If this problem is hard to solve, you could consider using Total Commander, because it has an option to set its own
internal associations, next to those of windows.

But I go along with the intuition about a crippled registry. Because :
Quote:
i moved the "OpenMPT" folder out of C/Program Files, and kept ModPlug in the "MPT 1.18" folder

If you install a program, whether in Program Files or somewhere else, (very often) some registry keys are added about that path.
So just moving the contents of a dir to another location, or moving the complete dir, is not a good idea.
Because the registry isn't clever enough to detect that, and correct it.

If you want to move a program to another location, it's better to first uninstall it, and then install it again at the new spot.
Then the old registry keys should have been removed, and the new situation should have been added.
Quote:
This has also happened with a couple of other executables i have as well...

This is also an indication of a mashed up registry.
You could try Auslogics Registry Cleaner
This one is specialized in detecting broken associations with file extensions and fixing that.

Of course there's always the possibility of some probs with admin rights on your sys, but I'm happy to know little about that.
_________________
0.618033988
Back to top
View user's profile Send private message Visit poster's website
Really Weird Person



Joined: 23 Oct 2005
Posts: 730

PostPosted: Wed Mar 10, 2010 5:46 am    Post subject: Open With… Reply with quote

My occasional problem was not that Modplug Tracker was not in the list, but rather which one I was selecting. I have found a workaround for this though.
_________________

I love Daisy!
Back to top
View user's profile Send private message Send e-mail
LPChip
Site Admin / Site-Builder


Joined: 01 Jan 1970
Posts: 4101
Location: The Netherlands

PostPosted: Wed Mar 10, 2010 8:18 am    Post subject: Reply with quote

Harbinger, try the guide on this page:

http://windowsxp.mvps.org/OpenWith.htm
_________________

"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs
"I'm not sure how to fix it yet and I don't have time ATM anyway! (gotta finish my new website godverdomme!)" - Jojo
Back to top
View user's profile Send private message Visit poster's website
Harbinger



Joined: 19 Apr 2006
Posts: 823
Location: Florida

PostPosted: Sat Mar 20, 2010 7:25 pm    Post subject: Reply with quote

Yes, indeed it was the registries. I know little about them, as Macs never use this kind of application cache.
Here's a workaround for all those who ever encounter this problem again (in XP at least):

Solution to setting ModPlug as the opening application:

To prevent your system from "losing" ModPlug as a valid application, when upgrading to a new version of MPT, rename the old folder (but remember the current folder name), and name the new folder (where your mpt executable will be) the same name as the old folder was. Alternatively move the applicable files from the old MPT build somewhere else, and move the new build into the current folder. Make sure the MPT executable's name AND PATH are the same as previous. The object here is to keep all the new files the same as the old (registered) files with the same name and the same path.

If you move things around, Windows loses sight of the valid "registered" executable, and can't find it to make it available to the Windows contextual menu (shell) for opening files. When you install an application, Windows sets up its validity by putting it in its registry, including the file path and its name. When you move the application or rename, the registry key is no longer applicable.

If ModPlug is not showing up as an opening executable (an application that can open files that have certain extensions), here's how you can fix it:

1. Either A. click Start, click Run, type %systemroot%\syswow64\regedit, and click OK; or B. open the WINDOWS folder in your main drive (usually C:/WINDOWS) and open the "regedit" executable.

2. On the left side is the directory pane. Open the "HKEY_CLASSES_ROOT" directory (it may be open to it by default already), and scroll down to the Applications folder. This holds the registry keys for all valid applications on your system.

3. Look for the correct name of the current ModPlug executable, such as "mptrack.exe", and open this directory.

4. There should be only one subdirectory "shell." This is the marker for Windows to include this application in your opening executables list. Open this directory, and its subdirectory "open" and ITS subdirectory "command."

5. On the left side of the RegEdit window, you'lll see the Open registry key. The pathname is what you'll need to correct. Double-click the "(Default)" icon, and enter the correct pathname.

6. To verify that what you did was correct, find a track file for MPT to open. Right-click on it to show the contextual menu, and choose "Open With..." The Open With dialog will appear and if you scroll down you should see the current version of ModPlug (or "Open MPT") in the list. If so, you've now corrected the registry.
Back to top
View user's profile Send private message
Jojo
OpenMPT Developer


Joined: 07 Aug 2006
Posts: 3364
Location: Germany

PostPosted: Sat Mar 20, 2010 7:32 pm    Post subject: Reply with quote

Addendum: The above steps might slightly differ on a 32-bit system, for example the path "%systemroot%\syswow64\regedit" does not exist there. But you can simply type "regedit" on both 32-bit and 64-bit systems to start the registry editor anyway.
_________________
No support, bug reports, feature requests via PM - they will not be answered. Use the forums.
» Download music, samples, vst plugins: Saga Musix Website
» Official German OpenMPT Wiki
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    MODPlug Central Forum Index -> Feature Requests All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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 © 2001, 2002 phpBB Group