Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

K-Lite Unattended Install through WPI

- - - - -

  • Please log in to reply
6 replies to this topic

#1
hoeperc

hoeperc
  • Member
  • 2 posts
  • Joined 27-August 14
  • OS:Windows 7 x64
  • Country: Country Flag

Hello.  I just recently created an unattended installation for the K-Lite Codec Pack and added it into WPI.  We had previously just been running the standard EXE with no problems.

 

The unattended installation uses a BAT file and INI file where the BAT file can be run silently.  I pathed WPI to the newly created BAT file but when running this, I receive a message from the installer that "The following applications are currently using files that need to be updated by this installer: Microsoft HTML Application host (MSHTA.exe)".

 

So basically, it wants WPI to be closed in order to run the installation.  The BAT file runs fine by itself.  Here is the contents of the bat file that is being run:

 

@echo Installing: K-Lite Codec Pack
@"Q:\WinImage\Software\K-Lite Codec Pack\K-Lite_Codec_Pack_1065_Full.exe" /verysilent /norestart /LoadInf=".\klcp_full_unattended.ini"
@echo Done!

 

Any suggestions on how to add this into WPI to get around this message?

 

Thanks.




How to remove advertisement from MSFN

#2
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,845 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

For a very long time I have been running klite from within a winrar sfx package.

 

I use the following in it:

 

;The comment below contains SFX script commands


Setup=klcp_full_unattended.bat
TempMode
Silent=1
Overwrite=2
Update=U
 
I haven't re-visited other options as this has worked for me for at least eight years.
 
You could try running this in the commandline:
 
{START} %wpipath%\Install\klcp_full_unattended.bat


#3
hoeperc

hoeperc
  • Member
  • 2 posts
  • Joined 27-August 14
  • OS:Windows 7 x64
  • Country: Country Flag

 

For a very long time I have been running klite from within a winrar sfx package.

 

I use the following in it:

 

;The comment below contains SFX script commands


Setup=klcp_full_unattended.bat
TempMode
Silent=1
Overwrite=2
Update=U
 
I haven't re-visited other options as this has worked for me for at least eight years.
 
You could try running this in the commandline:
 
{START} %wpipath%\Install\klcp_full_unattended.bat

 

 

Thanks for the reply.  I plugged in the command but it only brings up a command prompt pathed out to where I ran WPI from and does not run the bat file.



#4
condor

condor

    Junior

  • Member
  • Pip
  • 94 posts
  • Joined 04-October 06
  • OS:none specified
  • Country: Country Flag

cmds[pn]=['"%wpipath%\\Install\\Software\\klite1080.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'];


#5
painiac

painiac
  • Member
  • 5 posts
  • Joined 19-March 10
  • OS:XP Pro x86
  • Country: Country Flag

Did that work for you?
I had some trouble with it several years ago. If you don't specify a path to an exe inside a batch file, it will attempt to run the exe in the folder that the batch was run from. The issue I kept running into was the batch files I was trying to execute with WPI weren't located properly. (I'm sure that's user error on my part).

 

What Kels is saying is the same thing I've been doing. Just to give a little more detail to his answer:

Use winRAR to make an sfx (self-extracting) archive that contains the klite installer, the answer file (which you generate by following the instructions here: www.codecguide.com/silentinstall.htm) and the klite batch file.

What I do is have the sfx extract everything to "C:\Temp", then automatically execute the batch file from that location.



#6
condor

condor

    Junior

  • Member
  • Pip
  • 94 posts
  • Joined 04-October 06
  • OS:none specified
  • Country: Country Flag

@painiac

 

Yes, work for me.

I used this command on all klite 10 versions.


Edited by condor, 02 November 2014 - 06:52 AM.


#7
Francesco

Francesco

    Advanced Member

  • Member
  • PipPipPip
  • 411 posts
  • Joined 20-March 04

This is how I install it:

"%wpipath%\Install\Multimedia\Codec Packs\K-Lite Codec Pack v10.6.0 Full.exe" /verysilent /norestart /LoadInf="%wpipath%\Install\Multimedia\Codec Packs\K-Lite Codec Pack v10.6.0 Full - Unattended Settings.ini"

As you can see I just put the full path for the INI file. No need for an SFX archive.


Edited by Francesco, 18 November 2014 - 09:59 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users