View Full Version : Help for making installation script
maormini
11th May 2003, 09:14
Hi
Is there anyone who can make me a batchfile that Media player classic will be the default player for media files (mpg, avi, ogm...).
My goal is to make an universal installation pack for dummies (which means one click and everything will be installed behind the scenes [no prompts or anything])
The pack will include ffdshow, OGG DS filters, AC3Filters, XCD Filters, MPC, VOBSub.
BTW is there any program to monitor installations? (I mean what files does it install and where to, what registry keys or other files does it create or modify).
With a program like that it will be very easy to make such a script.
Any help will be appreciated. ;)
epere4
12th May 2003, 05:52
I am working on an installer for MPC, but havenīt solved the "associate files" problem, yet.
Gabest gave me a hint (see here (http://forum.doom9.org/showthread.php?s=&postid=310757#post310757)), but I havenīt figured out how to get the MPCīs window id. I am looking into it and let you know when I solve it, but if you solve it first, let me know ;)
CU
int 21h
12th May 2003, 17:18
Originally posted by maormini
BTW is there any program to monitor installations? (I mean what files does it install and where to, what registry keys or other files does it create or modify).
With a program like that it will be very easy to make such a script.
Regmon and Filemon
http://www.sysinternals.com/
int 21h
12th May 2003, 17:32
Originally posted by epere4
I am working on an installer for MPC, but havenīt solved the "associate files" problem, yet.
This is very easy.
The registry holds all of this information, and you need at least two keys for all associations. Lets say you wanted to make an association to make MPC run .doom9 files. And let's also say that MPC was in the root of C:.
So then, we would make two registry entries. The first in HKEY_CLASSES_ROOT\.doom9
The default value in that key would be doom9file, you can also add a string specifying 'Content Type' with its value telling what the file contains. Let's make ours Audio/Video. Then, you make another entry in HKEY_CLASSES_ROOT called doom9file. Then a folder in that entry called shell/open/command then the default value for that key is the full path to your executable. In this case, "C:\MPC.exe".
Here is an example of exported registry keys to show you what I am talking about.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\doom9file]
@="Audio Video File"
[HKEY_CLASSES_ROOT\doom9file\shell\open\command]
@="\"C:\\MPC.exe" %1"
[HKEY_CLASSES_ROOT\.doom9]
@="doom9file"
"Content Type"="Audio/Video"
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.