K-Lite Mega Codec Pack
From WPKG | Open Source Software Deployment and Distribution
This is a silent installer for K-Lite Mega Codec Pack.
The K-Lite Codec Pack is a collection of free audio/video codecs. Download it from K-Lite Homepage.
As of version 10 it uses a combined 32-bit and 64-bit installer.
Use the following XML file to install it:
K-Lite Mega Codec Pack 9.8.0 (32-bit installer version on 32-bit and 64-bit Windows)
<?xml version="1.0" encoding="UTF-8"?>
<packages:packages
xmlns:packages="http://www.wpkg.org/packages"
xmlns:wpkg="http://www.wpkg.org/wpkg"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wpkg.org/packages xsd/packages.xsd">
<package
id="k-lite_mcp"
name="K-Lite Mega Codec Pack"
revision="%PKG_SHORTVERSION%"
reboot="false"
priority="1">
<variable name="PKG_VERSION" value="9.8.0" />
<variable name="PKG_SHORTVERSION" value="980" />
<variable name="PKG_EXE" value="K-Lite_Codec_Pack_%PKG_SHORTVERSION%_Mega.exe" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\K-Lite_Mega_Codec_Pack" />
<variable name="PKG_DESTINATION" value="%ProgramFiles%\" architecture="x86" />
<variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\" architecture="x64" />
<variable name="PKG_INSTALL_SWITCH" value='/SP- /VERYSILENT /NORESTART /LoadInf="%PKG_SOURCE%\klcp_mega_unattended.ini"' />
<variable name="PKG_REMOVE_SWITCH" value="/VERYSILENT /NORESTART" />
<check type='uninstall' condition='exists' path='K-Lite Mega Codec Pack %PKG_VERSION%' />
<commands>
<command type="install" cmd='"%PKG_SOURCE%\%PKG_EXE%" %PKG_INSTALL_SWITCH%' />
<upgrade include="install" />
<command type="remove" cmd='"%PKG_DESTINATION%\K-Lite Codec Pack\unins000.exe" %PKG_REMOVE_SWITCH%' />
</commands>
</package>
</packages:packages>
klmcp.ini
The klmcp.ini
file is used for customization and can be generated in advance using the following parameters to the installer:
klmcodec505.exe -MakeUnattended
Note: you can skip /LoadInf
parameter and klmcp.ini
file generation if you want to install K-Lite Codec Pack with default options - i.e., use these install/upgrade commands:
<install cmd='"%SOFTWARE%\k-lite\klmcodec505.exe" /verysilent /norestart' />
<upgrade cmd='"%SOFTWARE%\k-lite\klmcodec505.exe" /verysilent /norestart' />