Difference between revisions of "TeraCopy"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 21: Line 21:
  
 
         <check
 
         <check
                 type="uninstall"
+
                 type="file"
                 condition="exists"
+
                 condition="versiongreaterorequal"
                 path="TeraCopy version %version%" />
+
                 path="%PROGRAMFILES%\TeraCopy\TeraCopy.exe"
 +
                value="%version%"
 +
                />
 +
 
 +
        <install include="remove" />
 
         <install
 
         <install
 
                 cmd="%SOFTWARE%\software\teracopy\%version%\teracopy.exe /silent" />
 
                 cmd="%SOFTWARE%\software\teracopy\%version%\teracopy.exe /silent" />
Line 30: Line 34:
 
                 include="install" />
 
                 include="install" />
  
         <remove cmd="%PROGRAMFILES%\TeraCopy\unins000.exe /silent" />
+
         <remove cmd="%PROGRAMFILES%\TeraCopy\unins000.exe /silent" >
 +
                <exit code="0" />
 +
                <exit code="-1" />
 +
        </remove>
 
</package>
 
</package>
 
</packages:packages>
 
</packages:packages>

Revision as of 14:52, 1 June 2021

This is a silent installer/uninstaller for TeraCopy ([1])

TeraCopy 3.8.2

<?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="teracopy"
        name="TeraCopy"
        revision="%version%"
        priority="0"
        reboot="false">

        <variable name="version" value="3.8.2" />

        <check
                type="file"
                condition="versiongreaterorequal"
                path="%PROGRAMFILES%\TeraCopy\TeraCopy.exe"
                value="%version%"
                />

        <install include="remove" />
        <install
                cmd="%SOFTWARE%\software\teracopy\%version%\teracopy.exe /silent" />

        <upgrade 
                include="install" />

        <remove cmd="%PROGRAMFILES%\TeraCopy\unins000.exe /silent" >
                <exit code="0" />
                <exit code="-1" />
        </remove>
</package>
</packages:packages>