Jump to content

K-Lite Mega Codec Pack extensions


Recommended Posts

At the end of installation of K-lite mega codec pack, when you have NOT selected to install WMP classic it asks you if you want to asociate all filtypes to Windows Media Player. How do i do this unattended???

my sielnt.inf

Setup]
Lang=en
Dir=C:\Programfiler\K-Lite Codec Pack
Group=K-Lite Codec Pack
NoIcons=1
Components=video\divx\dec,video\divx\enc,video\xvid\dec,video\xvid\enc,video\3ivx\dec,video\3ivx\enc,video\wmv9vcm,video\wmv,video\vp3,video\vp6\dec,video\vp6\enc,video\indeo\5,video\indeo\4,video\indeo\32,video\i263,video\huffyuv,video\msmpeg4,video\divxmpeg4,video\mpeg2\splt\mc,video\mpeg2\dec\mc,qt\codec,qt\codec\browser,qt\codec\plugins,qt\directshow,real\codec,real\codec\browser,real\directshow,audio\mp3,audio\wma,audio\ac3,audio\ac3\boostvolume,audio\ac3acm,audio\vorbis,audio\aac,audio\3ivx\dec,audio\3ivx\enc,audio\musepack,audio\voxware,audio\ape,audio\divxwma,audio\mp3lame,filters\mp4,filters\ogg\oggds,filters\matroska\gabest,filters\matroskamuxer,filters\vsfilter,filters\matrixmixer,filters\shoutcast,filters\mmswitch,filters\dcdsp,ffdshow\keepconfig,ffdshow\vfw,compat\dshow

Link to comment
Share on other sites


I don't no if it works but i'm doing it like this,

ECHO.

ECHO Installing K-Lite Codecs.....

ECHO Please wait...

start /wait %systemdrive%\install\Applications\K-LiteCodecs\K-LiteCodecs.exe /VERYSILENT /SP-

Link to comment
Share on other sites

Here is a cut up version of my inf file. I have it set for Zoom player, but you can easily change it to MPC. All that you would need to change is

"""%16422%\Zoom Player\zplayer.exe"" ""%1"""

to where ever MPC is.

[Version]
Signature="$Windows NT$"

[DefaultInstall]
AddReg=Video

[Video]
;Zoom Player-----------------------------------------------
HKCR, "ZoomPlayer.File", , %REG_SZ%, "Zoomplayer media file"
HKCR, "ZoomPlayer.File\Shell", , %REG_SZ%, "Play"
HKCR, "ZoomPlayer.File\Shell\Play\Command", , %REG_SZ%, """%16422%\Zoom Player\zplayer.exe"" ""%1"""
HKCR, "ZoomPlayer.File\DefaultIcon", , %REG_SZ%, "%16422%\Mega Codec Pack\icons\codecs.ico"

;vcd
HKCR, ".bin",  , %REG_SZ%, "ZoomPlayer.File"

;dvd
HKCR, ".ifo",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".vob",  , %REG_SZ%, "ZoomPlayer.File"

;Matroska video
HKCR, ".mka",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".mkv",  , %REG_SZ%, "ZoomPlayer.File"

;MPEG video
HKCR, ".mpg",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".mpeg", , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".mpe",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".m1v",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".m2v",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".mp2v", , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".mpv2", , %REG_SZ%, "ZoomPlayer.File"

;MPEG4 video
HKCR, ".mp4",  , %REG_SZ%, "ZoomPlayer.File"

;OGG Media
HKCR, ".omg",  , %REG_SZ%, "ZoomPlayer.File"

;other media
HKCR, ".divx", , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".xvid", , %REG_SZ%, "ZoomPlayer.File"

;playlists
HKCR, ".asx",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".wax",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".wmx",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".wvx",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".zpl",  , %REG_SZ%, "ZoomPlayer.File"

;video
HKCR, ".avi",  , %REG_SZ%, "ZoomPlayer.File"

;windows media
HKCR, ".asf",  , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".wm",   , %REG_SZ%, "ZoomPlayer.File"
HKCR, ".wmv",  , %REG_SZ%, "ZoomPlayer.File"

[Strings]
REG_SZ                = 0x00000000

Link to comment
Share on other sites

hhhmmmm,

it is wery difficult to me, but can anyone tell how could I make k-lite codec pack "normal" silent install without this section:

I would be wery greatfull

Link to comment
Share on other sites

I really never figured out how to do that, so here is how i solwed it with autoit. This works fine, and will have all files associate with WMP10. (name K-lite Mega Codec Pack v1.31 "klmcodec.exe").

klmcp.ini

[Setup]
Lang=en
;Dir=C:\Program Files\K-Lite Codec Pack
Group=K-Lite Codec Pack
NoIcons=1
Components=video\divx\dec,video\divx\enc,video\xvid\dec,video\xvid\enc,video\3ivx\dec,video\3ivx\enc,video\wmv9vcm,video\wmv,video\vp3,video\vp6\dec,video\vp6\enc,video\indeo\5,video\indeo\4,video\indeo\32,video\i263,video\huffyuv,video\msmpeg4,video\divxmpeg4,video\dvd,video\mpeg2\splt\lg,video\mpeg2\dec\lg,qt\codec,qt\codec\browser,qt\codec\plugins,qt\directshow,real\codec,real\codec\browser,real\directshow,audio\mp3,audio\wma,audio\ac3,audio\ac3\boostvolume,audio\ac3acm,audio\vorbis,audio\aac,audio\3ivx\dec,audio\3ivx\enc,audio\musepack,audio\voxware,audio\ape,audio\divxwma,audio\mp3lame,filters\mp4,filters\ogg\oggds,filters\matroska\gabest,filters\matroskamuxer,filters\vsfilter,filters\matrixmixer,filters\shoutcast,filters\mmswitch,filters\dcdsp,ffdshow,ffdshow\keepconfig,ffdshow\vfw,compat\g400,compat\divxaf,compat\ivideo,compat\dshow

Setup.exe (AutoIt)

; AutoIt Options.
AutoItSetOption("TrayIconHide", 1)
AutoItSetOption("WinTitleMatchMode", 4)

; Verify Only One Instance of Installer is Running.
$installername = "Automatisk installerer v1.0"
If WinExists($installername) Then Exit
AutoItWinSetTitle($installername)

; Installation Variables.
$installerpath = @ScriptDir & "\klmcodec.exe"
$inipath = @ScriptDir & "\klmcp.ini"
$prefspath = @ScriptDir & "\QuickTimePrefs.exe"

; Verify Installation File Paths.
If Not FileExists($installerpath) Then
SplashTextOn("Error", @CRLF & "    File missing:" & @CRLF & "    " & $installerpath, 500, 90, -1, -1, 4, "Arial", 11, 11)
WinActivate("Error")
Sleep(4000)
SplashOff()
Exit
ElseIf Not FileExists ($inipath) Then
SplashTextOn("Error", @CRLF & "    File missing:" & @CRLF & "    " & $inipath, 500, 90, -1, -1, 4, "Arial", 11, 11)
WinActivate("Error")
Sleep(4000)
SplashOff()
Exit
EndIf

; Start Installation.
Run($installerpath & ' /loadinf="' & $inipath & '"')

; Welcome Dialog.
WinWait("Setup - K-Lite Mega Codec Pack", "This will install the K-Lite Mega Codec Pack on your computer.")
ControlClick("Setup - K-Lite Mega Codec Pack", "This will install the K-Lite Mega Codec Pack on your computer.", "TButton1")

; Information.
WinWait("Setup - K-Lite Mega Codec Pack", "Please read the following important information before continuing.")
ControlClick("Setup - K-Lite Mega Codec Pack", "Please read the following important information before continuing.", "TButton2")

; Select Destination Location.
WinWait("Setup - K-Lite Mega Codec Pack", "Where should the K-Lite Mega Codec Pack be installed?")
ControlClick("Setup - K-Lite Mega Codec Pack", "Where should the K-Lite Mega Codec Pack be installed?", "TButton3")

; Select Components.
WinWait("Setup - K-Lite Mega Codec Pack", "Which components should be installed?")
ControlClick("Setup - K-Lite Mega Codec Pack", "Which components should be installed?", "TButton3")

; Select Start Menu folder.
WinWait("Setup - K-Lite Mega Codec Pack", "Where should Setup place the program's shortcuts?")
ControlClick("Setup - K-Lite Mega Codec Pack", "Where should Setup place the program's shortcuts?", "TButton4")

; Block User Interruption.
BlockInput(1)

; Select Additional Tasks (Select all files to play in WMP10).
WinWait("Setup - K-Lite Mega Codec Pack", "Which additional tasks should be performed?")
If Not WinActive("Setup - K-Lite Mega Codec Pack", "Which additional tasks should be performed?") Then
WinActivate("Setup - K-Lite Mega Codec Pack", "Which additional tasks should be performed?")
WinWaitActive("Setup - K-Lite Mega Codec Pack", "Which additional tasks should be performed?")
EndIf
Sleep(500)
Send("{SPACE}")
Sleep(500)
Send("Check")
Sleep(500)
Send("{SPACE}")

; Unblock User Interruption.
BlockInput(0)

; Select Additional Tasks (Continue Installation).
Sleep(1000)
ControlClick("Setup - K-Lite Mega Codec Pack", "Which additional tasks should be performed?", "TButton4")

; Ready to install.
WinWait("Setup - K-Lite Mega Codec Pack", "Setup is now ready to begin installing the K-Lite Mega Codec Pack on your computer.")
ControlClick("Setup - K-Lite Mega Codec Pack", "Setup is now ready to begin installing the K-Lite Mega Codec Pack on your computer.", "TButton4")

; Done!
WinWait("Setup - K-Lite Mega Codec Pack", "Setup has finished installing the K-Lite Mega Codec Pack on your computer.")
ControlClick("Setup - K-Lite Mega Codec Pack", "Setup has finished installing the K-Lite Mega Codec Pack on your computer.", "TButton4")

; Install QuickTime Preferences.
If FileExists($prefspath) Then
RunWait($prefspath)
EndIf

Exit

;eof

QuickTimePrefs.exe is an winRAR SFX made of QuickTime.qtp (settings file for QuickTime)

Path=%Programfiles%\K-Lite Codec Pack\QuickTime
SavePath
Silent=1
Overwrite=1

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...