ImgBurn

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Silent installer for ImgBurn, a CD/DVD image burner. The extension BurnPlot allows visualizing the graph of the burning session.

Download ImgBurn and place the installer in "software/imgburn".

The package supports installing on 32-bit and 64-bit Windows.

!!! This package requires wpkg.js 1.2.1-RC20 or higher !!!

<?xml version="1.0" encoding="UTF-8"?>

<packages
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >

    <package id="ImgBurn"
            name="ImgBurn"
            revision="%PKG_VERSION%"
            reboot="false"
            priority="10">

        <variable name="PKG_VERSION"        value="2.5.5.0" />
        <variable name="PKG_NAME"           value="ImgBurn" />
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\ImgBurn"      architecture="x86"/>
        <variable name="PKG_DESTINATION"    value="%ProgramFiles(x86)%\ImgBurn" architecture="x64"/>

        <check type="uninstall" condition="versiongreaterorequal" path="ImgBurn"                       value="%PKG_VERSION%" />
        <check type="file"      condition="versiongreaterorequal" path="%PKG_DESTINATION%\ImgBurn.exe" value="%PKG_VERSION%" />

        <install cmd='"%SOFTWARE%\ImgBurn\SetupImgBurn_%PKG_VERSION%.exe" /S' />

        <upgrade include="install" />

        <remove cmd='"%PKG_DESTINATION%\uninstall.exe" /S' />
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninstall.exe" ping -n 30 localhost &gt;NUL' />
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninstall.exe" exit 999' />
    </package>

    <package id="ImgBurnBurnPlot"
            name="ImgBurn BurnPlot"
            revision="%PKG_VERSION%"
            reboot="false"
            priority="10">

        <depends package-id="ImgBurn"/>

        <variable name="PKG_VERSION"     value="1.0.1.5" />
        <variable name="PKG_NAME"        value="ImgBurnBurnPlot" />
        <variable name="PKG_SOURCE"      value="%SOFTWARE%\ImgBurn\BurnPlot.exe"/>
        <variable name="PKG_DESTINATION" value="%ProgramFiles%\ImgBurn\BurnPlot.exe"      architecture="x86"/>
        <variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\ImgBurn\BurnPlot.exe" architecture="x64"/>

        <check type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION%" value="%PKG_VERSION%" />

        <install cmd='%ComSpec% /c copy /V /Y /B "%PKG_SOURCE%" "%PKG_DESTINATION%" &gt;"%TMP%\%PKG_NAME%.log"' />

        <upgrade include="install" />

        <remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%" del /f /q "%PKG_DESTINATION%"' />
    </package>
</packages>