hoeperc Posted August 27, 2014 Posted August 27, 2014 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.
Kelsenellenelvian Posted August 27, 2014 Posted August 27, 2014 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 commandsSetup=klcp_full_unattended.batTempModeSilent=1Overwrite=2Update=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
hoeperc Posted August 28, 2014 Author Posted August 28, 2014 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 commandsSetup=klcp_full_unattended.batTempModeSilent=1Overwrite=2Update=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.
condor Posted October 28, 2014 Posted October 28, 2014 cmds[pn]=['"%wpipath%\\Install\\Software\\klite1080.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'];
painiac Posted October 31, 2014 Posted October 31, 2014 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.
condor Posted November 2, 2014 Posted November 2, 2014 (edited) @painiac Yes, work for me.I used this command on all klite 10 versions. Edited November 2, 2014 by condor
Francesco Posted November 18, 2014 Posted November 18, 2014 (edited) 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 November 18, 2014 by Francesco
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