Difference between revisions of "ImgBurn"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(updated to combined 32-/64-bit package)
Line 1: Line 1:
 
Silent installer for ImgBurn, a CD/DVD image burner.
 
Silent installer for ImgBurn, a CD/DVD image burner.
 +
The extension BurnPlot allows visualizing the graph of the burning session.
  
 
Download [http://imgburn.com/ ImgBurn] and place the installer in "software/imgburn".
 
Download [http://imgburn.com/ 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 !!!'''
 
<source lang="xml">
 
<source lang="xml">
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
<packages>
 
<package
 
id="imgburn"
 
name="ImgBurn"
 
revision="20090727"
 
reboot="false"
 
priority="10">
 
  
<check type="uninstall" condition="exists" path="ImgBurn" />
+
<packages
 +
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 +
        xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >
  
<install cmd='%SOFTWARE%\imgburn\SetupImgBurn_2.5.0.0.exe /S' />
+
    <package id="ImgBurn"
<install cmd='del /q /f "%UserProfile%\Desktop\ImgBurn.lnk"' />
+
            name="ImgBurn"
<install cmd='mkdir "%AllUsersProfile%\Start Menu\Programs\ImgBurn"' />
+
            revision="%PKG_VERSION%"
<install cmd='copy /y "%UserProfile%\Start Menu\Programs\ImgBurn\ImgBurn.lnk" "%AllUsersProfile%\Start Menu\Programs\ImgBurn"' />
+
            reboot="false"
<install cmd='del /q /f "%UserProfile%\Start Menu\Programs\ImgBurn"' />
+
            priority="10">
  
<upgrade cmd='%SOFTWARE%\imgburn\SetupImgBurn_2.5.0.0.exe /S' />
+
        <variable name="PKG_VERSION"        value="2.5.5.0" />
<upgrade cmd='del /q /f "%UserProfile%\Desktop\ImgBurn.lnk"' />
+
        <variable name="PKG_NAME"          value="ImgBurn" />
<upgrade cmd='mkdir "%AllUsersProfile%\Start Menu\Programs\ImgBurn"' />
+
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\ImgBurn"     architecture="x86"/>
<upgrade cmd='copy /y "%UserProfile%\Start Menu\Programs\ImgBurn\ImgBurn.lnk" "%AllUsersProfile%\Start Menu\Programs\ImgBurn"' />
+
        <variable name="PKG_DESTINATION"   value="%ProgramFiles(x86)%\ImgBurn" architecture="x64"/>
<upgrade cmd='del /q /f "%UserProfile%\Start Menu\Programs\ImgBurn"' />
+
  
<remove cmd='"%ProgramFiles%\ImgBurn\uninstall.exe" /S' />
+
        <check type="uninstall" condition="versiongreaterorequal" path="ImgBurn"                      value="%PKG_VERSION%" />
</package>
+
        <check type="file"      condition="versiongreaterorequal" path="%PKG_DESTINATION%\ImgBurn.exe" value="%PKG_VERSION%" />
</packages>
+
</source>
+
  
Here is an alternate package that uses the file version.
+
        <install cmd='"%SOFTWARE%\ImgBurn\SetupImgBurn_2.5.5.0.exe" /S' />
  
<source lang="xml">
+
        <upgrade include="install" />
<?xml version="1.0" encoding="UTF-8"?>
+
<packages>
+
  
<package
+
        <remove cmd='"%PKG_DESTINATION%\uninstall.exe" /S' />
id="imgburn"
+
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninstall.exe" ping -n 30 localhost &gt;NUL' />
name="ImgBurn"
+
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninstall.exe" exit 999' />
revision="%version%"
+
    </package>
reboot="false"
+
priority="10">
+
  
<variable name="version" value="2.5.5.0" />
+
    <package id="ImgBurnBurnPlot"
 +
            name="ImgBurn BurnPlot"
 +
            revision="%PKG_VERSION%"
 +
            reboot="false"
 +
            priority="10">
  
<check type="file" condition="versiongreaterorequal" path="%programfiles(x86)%\ImgBurn\ImgBurn.exe" value="%version%" />
+
        <depends package-id="ImgBurn"/>
  
<install cmd='%SOFTWARE%\ImgBurn\SetupImgBurn_%version%.exe /S' />
+
        <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"/>
  
<upgrade cmd='%SOFTWARE%\ImgBurn\SetupImgBurn_%version%.exe /S' />
+
        <check type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION%" value="%PKG_VERSION%" />
  
<remove cmd='"%programfiles(x86)%\ImgBurn\uninstall.exe" /S' />
+
        <install cmd='%ComSpec% /c copy /V /Y /B "%PKG_SOURCE%" "%PKG_DESTINATION%" &gt;"%TMP%\%PKG_NAME%.log"' />
  
</package>
+
        <upgrade include="install" />
  
 +
        <remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%" del /f /q "%PKG_DESTINATION%"' />
 +
    </package>
 
</packages>
 
</packages>
 
</source>
 
</source>
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]
 +
[[category:NSIS]]

Revision as of 16:50, 8 October 2011

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_2.5.5.0.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>