Help - Search - Members - Calendar
Full Version: Media Player Classic file associating?
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
CrashUK
I removed windows media player from WIndow XP setup and have Windows Media Player Classic in its place how can I make all video files associati with Media Player Classic.. this they a reg setting or some thing??
kyuuzo
mplayerc.exe /regvid
Piksou
and /regaud for the audiofiles
more switches with mplayerc /? or in the Help menu
fourte3n
if someone WANTS to install MPC rather than just copying the files how does one go about that silently and add accosications?

Or how do you just add the associations during unattended installation?
RogueSpear
The only way to "install" MPC that I know of is to do it as part of installing either Real Alternative or QuickTime Alternative since the latest version of MPC is included in the installs for those products. There are silent switches for them on the sticky for Application Switches.

Personally I repack them both using Installshield Repackager.
Acheron
You can just copy mplayerc.exe to a directory. But I prefer to install Quicktime Alternative and Real Alternative. There it is already included with. From runonceex.cmd I use the following command to register all filetypes with Media Player Classic:

CODE
REG ADD %KEY%\012 /VE /D "Quicktime Alternative 1.38" /f
REG ADD %KEY%\012 /V 1 /D "%CDDRIVE%install\Quicktime\quicktimealt138.exe /VERYSILENT" /f
REG ADD %KEY%\013 /VE /D "Real Alternative 1.28" /f
REG ADD %KEY%\013 /V 1 /D "%CDDRIVE%install\Real\realalt128.exe /VERYSILENT" /f
REG ADD %KEY%\013 /V 2 /D "\"%programfiles%\Media Player Classic\mplayerc.exe\" /regaud /regvid" /f


Look at the backslashes!!
JohnS
Hi, I am using RunOnceEx metlhod and installing Media Player Classic as part of Real and Quicktime Alternative.
By default, Media Player Classic install on \Programs\Media Player Classic folder.
Since it doesn't need any installation, can I move it from \Programs\Media Player Classic after being installed by Real or Quicktime Alternative to, let's say, \Programs\Music\Media Player Classic? If yes, how?
And then register all filetypes to Media Player Classic?
Thanks
ZileXa
Just Copy and paste huh!
after that you can just reassociate to be sure via Options and File Types.
blinkdt
MPC comes bundled in a variety of forms. I install it as part of the K-Lite Codec Pack, for example. Does a great job of playing DVDs, but although I use /regvid I'm still prompted to select MPC as my preferred player when inserting a DVD. Only after I manually configure Options-->Formats-->Autoplay to play Video and DVD will it load up by default. Another thing I like to do is launch the movies in fullscreen. But I would rather not configure all of this manually. I expect all of this could be done with some registry settings imported during unattended after the install? Looks like a job for RegSnap.
JohnS
QUOTE (ZileXa @ May 24 2005, 11:48 PM)
Just Copy and paste huh!
after that you can just reassociate to be sure via Options and File Types.
*

Well, if I did that it would not be an unattended install, would it smile.gif ?
By the way, I played around and found out that I can't proceed the way I wanted, because it doesn't stay registered after I move it to the folder I want. I have to re-register the filetypes.
So, now Quicktime Alternative install Media Player Classic and after, with cleanup.cmg file, I move it to where I want to and register the filetypes.
This may seem newbie thoughts, but I am newbie!
And I am so happy: I found by myself how to move a program with a batch command.
A week ago I didn't know what a batch was. smile.gif
I have just one (another) newbie question:
I use MOVE command to move this from one place to another.
And I use "*.*" to move all files in a certain folder, but it doesn't move sub-folder.
How can I move everything with one command?
Thanks
Sonic
hi,

you can use
CODE
xcopy /e /y Path1 Path2

and after delete the old directory by
CODE
rd /q /s Path1
blinkdt
Hmmm, setting MPC to play all video in fullscreen mode by default was trickier than initially suspected. RegSnap wasn't much help, turned out to be a job for AutoIt:
CODE
AutoItSetOption("TrayIconHide", 1)
AutoItSetOption("WinTitleMatchMode", 4)
BlockInput(1)

;open MPC
Run(@ProgramFilesDir & "\K-Lite Codec Pack\Media Player Classic\mplayerc.exe")

;open Options dialogue
WinWait("classname=MediaPlayerClassicW")
WinActivate("classname=MediaPlayerClassicW")
Send("!v")
Sleep("500")
Send("o")

WinWaitActive("Options", "Open options")
ControlClick("Options", "Open options", "Button3")
ControlClick("Options", "Open options", "Button19")
ControlFocus("Options", "Open options", "SysTreeView321")
Send("{DOWN}")
Send("!v")
Sleep("500")
Send("!a")
Sleep("500")
Send("{ENTER}")
Sleep("500")
WinClose("classname=MediaPlayerClassicW")

Exit

Works for me when MPC is installed as part of the K-Lite Codec Pack. The compiled executable is run as part of my WPI post-install routine.
ZileXa
The Regaud and Regvid switches don't apply for all users...
so i am doing it with an autoitscript now...
donbi
for unattended settings, you can also configure any setting in mpc and then check the option in the menu view/options/player "store settings to .ini file" and copy the file (C:\Program Files\Media Player Classic\mplayerc.ini) at install time...

donbi
Wesmosis
QUOTE (donbi @ Sep 6 2005, 01:14 PM) *
for unattended settings, you can also configure any setting in mpc and then check the option in the menu view/options/player "store settings to .ini file" and copy the file (C:\Program Files\Media Player Classic\mplayerc.ini) at install time...

donbi

for unknown reasons, the file association option not stored in the ini file, others options is ok
ZileXa
Simply add mplayerc.exe to a 7z file and extract it with RunOnceEx.
Use /regvid switch after that for file association.

BUT in my experience /regvid doesn't work at all. Same for /regaud.
unregvid and unregaud do work.

So I use an AutoIt script to associate with videofiles.
Wesmosis
nothing worked
Shark007
QUOTE (Wesmosis @ Oct 26 2006, 01:10 PM) *
nothing worked


There is an unattended installer on my repository of MPC. It is specific to my liking.
It is a WinRAR archive making it easy for you to manipulate the install commands.
You can change the install directory etc, hope it solves your issues.

shark
Wesmosis
QUOTE (Shark007 @ Oct 26 2006, 10:22 PM) *
QUOTE (Wesmosis @ Oct 26 2006, 01:10 PM) *

nothing worked


There is an unattended installer on my repository of MPC. It is specific to my liking.
It is a WinRAR archive making it easy for you to manipulate the install commands.
You can change the install directory etc, hope it solves your issues.

shark

You da man shark!
but does the MPC when silently installed take the VIDEO file association?
that's my object
I made a self-extractor silent installer via WinRAR (mplayerc.exe + mplayerc.ini) but still facing the ASSOCIATION prob, I hope your file can solve it


EDIT
QUOTE
It registers video file-types and places a shortcut in the quicklaunch bar

Oh thanx, but can you teach me how you made the association trick?!


EDIT2
btw, your Repository Bookmarked!
Shark007
QUOTE (Wesmosis @ Oct 27 2006, 05:29 AM) *
Oh thanx, but can you teach how you made the association trick?!

It is no trick. It is a well documented feature. Provide a proper path and use mplayerc.exe /regvid. One note about using my installer, if you are changing the installation path, you must also change the path in the vbs file to reflect the changes to get the shortcut properly created in the quicklaunch.

If you're still having problems I'm willing to modify my installer to meet your specific needs. Just PM me where you want it installed and what you want associated [video/audio]. Also include what shortcut(s) you'd prefer. I'll reply to the PM with a download url. I'll use WinRAR so you can easily replace the ini file with your own just in case you havent seen the light and begun to use my codec package too.

shark
Wesmosis
thanx sharky, you always bin a great help laugh.gif
Wesmosis
I took this line from you self-extractor rar file:

CODE
Setup="%programfiles%\Wesmosis\mplayerc.exe" /regvid


it wad so good and worked with my self-extractor rar file named (MPC.exe)
but one more stupid thing, how to disable the association with Playlists?!
I'm using MPC only for Videos, Winamp for sure for Audio files
JohnS
QUOTE (Wesmosis @ Nov 1 2006, 01:59 PM) *
but one more stupid thing, how to disable the association with Playlists?!
I'm using MPC only for Videos, Winamp for sure for Audio files

Try this: /unregaud
Like this
QUOTE
Setup="%programfiles%\Wesmosis\mplayerc.exe" /regvid /unregaud
Wesmosis
@ JohnS
thanx but it didn't work
Shark007
QUOTE (Wesmosis @ Nov 1 2006, 05:39 AM) *
thanx sharky, you always bin a great help laugh.gif
you're welcome. thumbup.gif

QUOTE (Wesmosis @ Nov 1 2006, 09:59 AM) *
but one more stupid thing, how to disable the association with Playlists?! I'm using MPC only for Videos, Winamp for sure for Audio files
I suggest you run the winamp installation after the mpc installation.

shark
Wesmosis
QUOTE
I suggest you run the winamp installation after the mpc installation.

yeah good idea newwink.gif




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.