<?xml version="1.0" encoding="UTF-8"?>
<packages:packages xmlns:packages="http://www.wpkg.org/packages">

    <!-- We need to make the msi from the downloaded exe file.  AS THE SYSTEM USER!! run the command:
    c:\tmp\paint.net.4.0.12.install.exe CHECKFORUPDATES=0 CHECKFORBETAS=0 DESKTOPSHORTCUT=0 JPGPNGBMPEDITOR=0 TGAEDITOR=0 /createmsi
    The resulting 32 and 64 bit msi files will be in c:\windows\system32\config\systemprofile\Desktop\PaintDotNetMsi\  -->

  <package id="paint.net" name="Paint.net" revision="%version%.1" reboot="false" priority="68">
    <variable name="version" value="4.2.10"/>
    <check type="uninstall" condition="versiongreaterorequal" path="paint.net" value="%version%" />

    <install cmd='msiexec /l* %WPKGLOGDIR%\paint.net_%version%_install.log /qn /norestart /i "%WPKGSOFTWARE%\paint.net\%version%\PaintDotNet_x64.msi" ALLUSERS=1 DESKTOPSHORTCUT=0 CHECKFORUPDATES=0' />

    <upgrade include='remove' />
    <upgrade include='install' />

    <remove cmd='msiexec /qn /x {15BCA3AB-444B-4AC5-A04F-F2AD0F7AD3EC}'>
      <exit code='1605' />
    </remove>
  </package>

</packages:packages>