Jump to content

Recommended Posts

Posted

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


Posted (edited)

Personally I wrap all 3 files in a winrar sfx with these commands in it:

;The comment below contains SFX script commands

Setup=klmcp.bat

TempMode

Silent=1

Overwrite=1

P.S. HI TONY!

Edited by Kelsenellenelvian
Posted
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

  • 2 weeks later...
Posted

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

  • 2 months later...
Posted

If you have white-spaces in your path to you bat-file you should use this batch-file:

@ECHO OFF
PUSHD "%~dp0"
ECHO Installing the K-Lite Mega Codec Pack
start /wait klmcodec159.exe /verysilent /LoadInf="klmcp.ini" /MERGETASKS="icons_mpc\desktop,icons_mpc\quicklaunch,speaker\stereo"
ECHO Done!
POPD

Greetings

Al

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...