Difference between revisions of "ImgBurn"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Added silent installer for ImgBurn)
 
m
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
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".
  
This script needs "cp.exe", "rm.exe" and "mkdir.exe" from [http://gnuwin32.sourceforge.net/packages/coreutils.htm GnuWin32] in your "tools" folder.  The installer places the shortcuts in %UserProfile%.  This script moves them to %AllUsersProfile%.
+
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="200805281"
 
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" >
 +
 
 +
    <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='%SOFTWARE%\imgburn\SetupImgBurn_2.4.1.0.exe /S' />
+
        <install cmd='%ComSpec% /c copy /V /Y /B "%PKG_SOURCE%" "%PKG_DESTINATION%" &gt;"%TMP%\%PKG_NAME%.log"' />
<install cmd='cmd /c %WPKGROOT%\tools\rm.exe -rf "%UserProfile%\Desktop\ImgBurn.lnk"' />
+
<install cmd='cmd /c %WPKGROOT%\tools\mkdir.exe -p "%AllUsersProfile%\Start Menu\Programs\ImgBurn"' />
+
<install cmd='cmd /c %WPKGROOT%\tools\cp.exe -f "%UserProfile%\Start Menu\Programs\ImgBurn\ImgBurn.lnk" "%AllUsersProfile%\Start Menu\Programs\ImgBurn"' />
+
<install cmd='cmd /c %WPKGROOT%\tools\rm.exe -rf "%UserProfile%\Start Menu\Programs\ImgBurn"' />
+
  
<upgrade cmd='%SOFTWARE%\imgburn\SetupImgBurn_2.4.1.0.exe /S' />
+
        <upgrade include="install" />
<upgrade cmd='cmd /c %WPKGROOT%\tools\rm.exe -rf "%UserProfile%\Desktop\ImgBurn.lnk"' />
+
<upgrade cmd='cmd /c %WPKGROOT%\tools\mkdir.exe -p "%AllUsersProfile%\Start Menu\Programs\ImgBurn"' />
+
<upgrade cmd='cmd /c %WPKGROOT%\tools\cp.exe -f "%UserProfile%\Start Menu\Programs\ImgBurn\ImgBurn.lnk" "%AllUsersProfile%\Start Menu\Programs\ImgBurn"' />
+
<upgrade cmd='cmd /c %WPKGROOT%\tools\rm.exe -rf "%UserProfile%\Start Menu\Programs\ImgBurn"' />
+
  
<remove cmd='"%ProgramFiles%\ImgBurn\uninstall.exe" /S' />
+
        <remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%" del /f /q "%PKG_DESTINATION%"' />
</package>
+
    </package>
 
</packages>
 
</packages>
 
</source>
 
</source>
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]
 +
[[category:NSIS]]

Latest 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_%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>