[wpkg-users] wpkg's skipping behavior

Ben Hartmann mail.benhartmann at googlemail.com
Mon Jul 6 18:06:26 CEST 2009


Hi there,

I don't really understand the way wpkg decides to skip (or bypass) an
installation.

I've got the following scenario:
I've rewritten the PDFCreator.xml to get rid of the old msi package and
use the newest install exe. Now I want to roll this out to our office
machines. There is only one little problem... Some of the machines are
already manual updated to the newest version so I want wpkg to detect
this and skip the upgrade process. Sadly, I wasn't able to get this
working in our testing environment.

Is there a way to solve this?


Kind Regards,
Ben Hartmann


<?xml version="1.0" encoding="UTF-8"?>
<packages>
    <package id="pdfcreator" name="PDFCreator" revision="2"
reboot="false" priority="10">
        <check type="logical" condition="and">
            <check type="uninstall" condition="exists" path="PDFCreator" />
            <check type="file" condition="versiongreaterorequal"
path="%PROGRAMFILES%\PDFCreator\PDFCreator.exe" value="0.9.0.8"/>
        </check>
        <install cmd="msiexec /x {0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}
/qn">
            <exit code="1605" />
            <exit code="1603" />
        </install>
        <install cmd="rundll32 printui.dll,PrintUIEntry /dl /q /n
'PDFCreator'" />
        <install cmd=""%PROGRAMFILES%\PDFCreator\unins000.exe"
/VERYSILENT" >
            <exit code="any" reboot="false" />
        </install>
        <install
cmd=""%SOFTWARE%\PDFCreator\PDFCreator_0.9.8.exe"
/LOADINF='%SOFTWARE%\PDFCreator\setup_0.9.8.inf' /VERYSILENT" />
        <upgrade cmd="msiexec /x {0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}
/qn" >
            <exit code="1605" />
            <exit code="1603" />
        </upgrade>
        <upgrade cmd=""%PROGRAMFILES%\PDFCreator\unins000.exe"
/VERYSILENT" >
            <exit code="any" reboot="false" />
        </upgrade>
        <upgrade cmd="rundll32 printui.dll,PrintUIEntry /dl /q /n
'PDFCreator'" />
        <upgrade
cmd=""%SOFTWARE%\PDFCreator\PDFCreator_0.9.8.exe"
/LOADINF='%SOFTWARE%\PDFCreator\setup_0.9.8.inf' /VERYSILENT" />
        <remove  cmd='"%PROGRAMFILES%\PDFCreator\unins000.exe"
/VERYSILENT' />
    </package>
</packages>



More information about the wpkg-users mailing list