gbmolina Posted November 18, 2006 Posted November 18, 2006 hi, I made a silent install of the klite mega codeck by following the wizard they provide with the program, it generates a .bat file which makes the silent installation. if a run the bat file manually everything works perfectly, if I call the bat file from WPI nothing happens and the log file says everything is ok:18 nov 2006 17:15:13 Program: k-lite mega codec pack 1.59 UID: KLITEMEGACODECPACK Order: 900014 Category: Applications 18 nov2006 г. 17:15:13 cmd1 Success (returned code 0): "D:\WPI\Install\klite\klmcp.bat" 18 nov.2006 17:15:13 Finished installation.any idea why the bat file won't do it's thing when called from WPI?thanks
lawrenca Posted November 19, 2006 Posted November 19, 2006 You may have to switch your working directory for that .bat to work properly.Add this code to your existing .bat:cd /d %0\..
Kelsenellenelvian Posted November 19, 2006 Posted November 19, 2006 (edited) Personally I wrap all 3 files in a winrar sfx with these commands in it:;The comment below contains SFX script commandsSetup=klmcp.batTempModeSilent=1Overwrite=1P.S. HI TONY! Edited November 19, 2006 by Kelsenellenelvian
gbmolina Posted November 19, 2006 Author Posted November 19, 2006 You may have to switch your working directory for that .bat to work properly.Add this code to your existing .bat:cd /d %0\..thnaks for the tip, can you point me exactly where to include that reference? this is the bat file itself@echo Installing the K-Lite Mega Codec Pack@klmcodec159.exe /verysilent /LoadInf=".\klmcp.ini" /MERGETASKS="icons_mpc\desktop,icons_mpc\quicklaunch,speaker\stereo"@echo Done!thanks
lawrenca Posted December 1, 2006 Posted December 1, 2006 Hey Troy!Good to be back home...@gbmolina,You place that command at the top of your batch file.cd /d %0\.. @echo Installing the K-Lite Mega Codec Pack@klmcodec159.exe /verysilent /LoadInf=".\klmcp.ini" /MERGETASKS="icons_mpc\desktop,icons_mpc\quicklaunch,speaker\stereo"@echo Done!Personally, I take Kels approach and make a self extracting executable, though I use 7-zip instead of WinRAR.A little more help on creating a 7-zip...How to make a 7-Zip Switchless Installer 1
Francesco Posted February 19, 2007 Posted February 19, 2007 If you want a suggestion use pushd and popd.pushd %0 at the start of the .bat file and popd at the end.
AlBundy33 Posted February 19, 2007 Posted February 19, 2007 If you have white-spaces in your path to you bat-file you should use this batch-file:@ECHO OFFPUSHD "%~dp0"ECHO Installing the K-Lite Mega Codec Packstart /wait klmcodec159.exe /verysilent /LoadInf="klmcp.ini" /MERGETASKS="icons_mpc\desktop,icons_mpc\quicklaunch,speaker\stereo"ECHO Done!POPDGreetingsAl 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