[wpkg-users] several checks in one package

Tomasz Chmielewski mangoo at wpkg.org
Wed Sep 10 16:34:48 CEST 2008


Markus Nagel schrieb:
> Hello,
> I've got one question concerning the logic of checks in wpkg. I'm
> looking for a possibility to use an if.. then...else check in one package.
> I.e. I'd like to copy a file to all users Desktop in Windows. If the
> Servicepack of the OS Win XP is 1, copy file test1.txt to Desktop, if it
> is SP2, copy file test2.txt to the Desktop.
> I've tried it with the following code. It results in the fact, that both
> files, test1 and test2 are copied to the Dektop. How can I manage it?

It won't work that way the way you imagine. All checks will be grouped, 
so will be installation commands.


WPKG has no intention to be a programming language.

You can easily achieve what you want with a simple .bat script.


-- 
Tomasz Chmielewski
http://wpkg.org



More information about the wpkg-users mailing list