BoardBabe Posted May 18, 2005 Posted May 18, 2005 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.infSetup]Lang=enDir=C:\Programfiler\K-Lite Codec PackGroup=K-Lite Codec PackNoIcons=1Components=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
bardock Posted May 18, 2005 Posted May 18, 2005 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-
OrcoXP Posted May 19, 2005 Posted May 19, 2005 what does /SP- actually do...I see lots of references to it but no explanation
sleepnmojo Posted May 19, 2005 Posted May 19, 2005 I actually do all my file associations through an inf file, but I can post the video section if you want.
Screwz Luse Posted May 19, 2005 Posted May 19, 2005 I actually do all my file associations through an inf file, but I can post the video section if you want.<{POST_SNAPBACK}> You should post it for reference. Could help some people out. heh...
sleepnmojo Posted May 19, 2005 Posted May 19, 2005 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";vcdHKCR, ".bin", , %REG_SZ%, "ZoomPlayer.File";dvdHKCR, ".ifo", , %REG_SZ%, "ZoomPlayer.File"HKCR, ".vob", , %REG_SZ%, "ZoomPlayer.File";Matroska videoHKCR, ".mka", , %REG_SZ%, "ZoomPlayer.File"HKCR, ".mkv", , %REG_SZ%, "ZoomPlayer.File";MPEG videoHKCR, ".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 videoHKCR, ".mp4", , %REG_SZ%, "ZoomPlayer.File";OGG MediaHKCR, ".omg", , %REG_SZ%, "ZoomPlayer.File";other mediaHKCR, ".divx", , %REG_SZ%, "ZoomPlayer.File"HKCR, ".xvid", , %REG_SZ%, "ZoomPlayer.File";playlistsHKCR, ".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";videoHKCR, ".avi", , %REG_SZ%, "ZoomPlayer.File";windows mediaHKCR, ".asf", , %REG_SZ%, "ZoomPlayer.File"HKCR, ".wm", , %REG_SZ%, "ZoomPlayer.File"HKCR, ".wmv", , %REG_SZ%, "ZoomPlayer.File"[Strings]REG_SZ = 0x00000000
maniaq Posted May 19, 2005 Posted May 19, 2005 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
BoardBabe Posted May 19, 2005 Author Posted May 19, 2005 Dude, are you serious? There is a post about this like RIGHT below this post. http://www.msfn.org/board/index.php?showtopic=46508
maniaq Posted May 19, 2005 Posted May 19, 2005 Dude, are you serious? There is a post about this like RIGHT below this post. http://www.msfn.org/board/index.php?showtopic=46508<{POST_SNAPBACK}>sorry I haven't seen it
BoardBabe Posted May 22, 2005 Author Posted May 22, 2005 How do i launch klitemegacodecpack setup with loadinf trigger from autoit?something like Run(@ScriptDir & "\klmcodec.exe /loadinf='\klmcp.ini'")although this does not work
OrcoXP Posted May 24, 2005 Posted May 24, 2005 Does anyone have a version of the inf to post that would be used for WMP10.It would also help for the syntax to install it too...TIA!
BoardBabe Posted May 24, 2005 Author Posted May 24, 2005 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 PackGroup=K-Lite Codec PackNoIcons=1Components=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\dshowSetup.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 ExitAutoItWinSetTitle($installername); Installation Variables.$installerpath = @ScriptDir & "\klmcodec.exe"$inipath = @ScriptDir & "\klmcp.ini"$prefspath = @ScriptDir & "\QuickTimePrefs.exe"; Verify Installation File Paths.If Not FileExists($installerpath) ThenSplashTextOn("Error", @CRLF & " File missing:" & @CRLF & " " & $installerpath, 500, 90, -1, -1, 4, "Arial", 11, 11)WinActivate("Error")Sleep(4000)SplashOff()ExitElseIf Not FileExists ($inipath) ThenSplashTextOn("Error", @CRLF & " File missing:" & @CRLF & " " & $inipath, 500, 90, -1, -1, 4, "Arial", 11, 11)WinActivate("Error")Sleep(4000)SplashOff()ExitEndIf; 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?") ThenWinActivate("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?")EndIfSleep(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) ThenRunWait($prefspath)EndIfExit;eofQuickTimePrefs.exe is an winRAR SFX made of QuickTime.qtp (settings file for QuickTime)Path=%Programfiles%\K-Lite Codec Pack\QuickTimeSavePathSilent=1Overwrite=1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now