Difference between revisions of "K-Lite Mega Codec Pack"
From WPKG | Open Source Software Deployment and Distribution
m (add cat) |
|||
Line 5: | Line 5: | ||
Use the following XML file to install it: | Use the following XML file to install it: | ||
+ | == K-Lite Mega Codec Pack 9.8.0 == | ||
+ | <source lang="xml"> | ||
+ | <?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%' /> | ||
+ | <command type="upgrade" cmd='"%PKG_SOURCE%\%PKG_EXE%" %PKG_INSTALL_SWITCH%' /> | ||
+ | <command type="remove" cmd='"%PKG_DESTINATION%\K-Lite Codec Pack\unins000.exe" %PKG_REMOVE_SWITCH%' /> | ||
+ | </commands> | ||
+ | </package> | ||
+ | </packages:packages> | ||
+ | </source> | ||
+ | |||
+ | == K-Lite Mega Codec Pack 5.1.0 == | ||
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="utf-8" ?> | <?xml version="1.0" encoding="utf-8" ?> | ||
<packages> | <packages> | ||
− | <package id='k-lite-mcp' | + | <package id='k-lite-mcp' |
name='K-Lite Mega Codec Pack' | name='K-Lite Mega Codec Pack' | ||
revision='510' | revision='510' | ||
priority='50'> | priority='50'> | ||
− | + | <check type='uninstall' condition='exists' path='K-Lite Mega Codec Pack 5.1.0' /> | |
− | + | <install cmd='"%SOFTWARE%\k-lite\klmcodec510.exe" /verysilent /norestart /LoadInf="%SOFTWARE%\k-lite\klmcp.ini"' /> | |
− | + | <upgrade cmd='"%SOFTWARE%\k-lite\klmcodec510.exe" /verysilent /norestart /LoadInf="%SOFTWARE%\k-lite\klmcp.ini"' /> | |
− | + | <remove cmd='"%ProgramFiles%\K-Lite Codec Pack\unins000.exe" /verysilent /norestart' /> | |
− | </package> | + | </package> |
− | + | ||
</packages> | </packages> | ||
</source> | </source> | ||
+ | ==klmcp.ini== | ||
The <code>klmcp.ini</code> file is used for customization and can be generated in advance using the following parameters to the installer: | The <code>klmcp.ini</code> file is used for customization and can be generated in advance using the following parameters to the installer: | ||
Revision as of 11:08, 26 March 2013
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.
Use the following XML file to install it:
K-Lite Mega Codec Pack 9.8.0
<?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%' />
<command type="upgrade" cmd='"%PKG_SOURCE%\%PKG_EXE%" %PKG_INSTALL_SWITCH%' />
<command type="remove" cmd='"%PKG_DESTINATION%\K-Lite Codec Pack\unins000.exe" %PKG_REMOVE_SWITCH%' />
</commands>
</package>
</packages:packages>
K-Lite Mega Codec Pack 5.1.0
<?xml version="1.0" encoding="utf-8" ?>
<packages>
<package id='k-lite-mcp'
name='K-Lite Mega Codec Pack'
revision='510'
priority='50'>
<check type='uninstall' condition='exists' path='K-Lite Mega Codec Pack 5.1.0' />
<install cmd='"%SOFTWARE%\k-lite\klmcodec510.exe" /verysilent /norestart /LoadInf="%SOFTWARE%\k-lite\klmcp.ini"' />
<upgrade cmd='"%SOFTWARE%\k-lite\klmcodec510.exe" /verysilent /norestart /LoadInf="%SOFTWARE%\k-lite\klmcp.ini"' />
<remove cmd='"%ProgramFiles%\K-Lite Codec Pack\unins000.exe" /verysilent /norestart' />
</package>
</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' />