[wpkg-users] several checks in one package
Markus Nagel
edv at tekomedia.de
Wed Sep 10 17:42:33 CEST 2008
Hello Tomasz,
thanks for the fast reply.
The script I presented here was just an example, so I don't know if a
batch-script would do all the things I want, especially handling the
commands as packages, filling them into wpkg.xml etc.
I guess I need to create two packages then checking one condition each
and putting them together in a profile, for instance.
Tomasz Chmielewski schrieb:
> 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.
>
>
More information about the wpkg-users
mailing list