[wpkg-users] How to define remove with logical or
Pendl Stefan
stefan.pendl at haidlmair.at
Thu Jan 29 20:04:33 CET 2009
Hi Rainer,
so if one uses batch files to choose the correct installer he has to use them for the other tasks too.
Thanks for the info.
BTW, I noticed that your install batch file has a spelling error in the custom installer procedure it set the exit code to ERRORLEEL (missing V) ;-)
---
Stefan
Rainer Meier wrote:
Hi Stefan,
Pendl Stefan wrote:
> Currently I have the following two lines in the package:
>
> <!-- remove 32-bit version -->
> <remove cmd="msiexec /x {BF141CE6-067D-47E5-AEC0-B080B107BD02}" />
> <!-- remove 64-bit version -->
> <remove cmd="msiexec /x {78566424-2104-4258-84D3-AA050FDF8205}" />
> Is ther something similar like the following:
>
> <check type='logical' condition='or'>
> <check type='file' condition='versiongreaterorequal' path='%ProgramFiles(x86)%\UGS\Teamcenter 2007\Visualization\Program\PLMXMLConverter.dll' value='7.1.0.8338' />
> <check type='file' condition='versiongreaterorequal' path='%ProgramFiles%\UGS\Teamcenter 2007\Visualization\Program\PLMXMLConverter.dll' value='7.1.0.8338' />
> </check>
I usually use a bunch of batch scripts for this.
Package example:
<?xml version="1.0" encoding="utf-8" ?>
<packages>
<package id='TortoiseSVN' name='TortoiseSVN' revision='156'
priority='50' reboot='false' >
<!-- TortoiseSVN -->
<check type='logical' condition='or'>
<check type='uninstall' condition='exists' path='TortoiseSVN
1.5.6.14908 (32 bit)' />
<check type='uninstall' condition='exists' path='TortoiseSVN
1.5.6.14908 (64 bit)' />
</check>
<install cmd='"%SOFTWARE%\software.free\TortoiseSVN
v.1.5.6.14908\unattended.cmd"' >
<exit code='3010' />
</install>
<remove cmd='"%SOFTWARE%\software.free\TortoiseSVN
v.1.5.6.14908\unattended-uninstall.cmd"' >
<exit code='3010' />
</remove>
<upgrade cmd='"%SOFTWARE%\software.free\TortoiseSVN
v.1.5.6.14908\unattended.cmd"' >
<exit code='3010' />
</upgrade>
</package>
</packages>
---snip
br,
Rainer
More information about the wpkg-users
mailing list