Gordon Klimm schrieb:

(...)

Thinking further, there do arise some difficulties:

1. <check type="date" condition="installafter" value"01.01.06" /> does a
successfull installation on or after January 1st next year.
2. <check type="date" condition="removeafter" value"31.01.06" cmd="remove"
/> removes the installation starting from February 1st next year.
3. NOW (1.) does reinstall the programm!
so we do need two conditions for (1.):

so it should be designed, that (supposing the software is already installed):

I.

a) if we have 02.02.2006, and 1. is true (the installdate is > than 01.01.2006)),
b) if 2. is true (the uninstalldate 02.02.2006 is > than 31.01.2006)

AND

- we don't have this software in wpkg.xml -> do nothing
- we still have this software in wpkg.xml -> uninstall


II.

a) if we have 02.01.2006, and 1. is true (the installdate is > than 01.01.2006)),
b) if 2. is not true (the uninstalldate 02.01.2006 is < than 31.01.2006)

AND

- we have this software in wpkg.xml -> do nothing
- we don't have this software in wpkg.xml -> install


III.
We can still have a case, when install date (for example, 01.06.2006) is greater than uninstall date (01.01.2006).
Do we disregard is as broken, or, could it be useful?
It would complicate things for sure.



<check type="date" condition="installafter" value"01.01.06" />  AND
<check type="date" condition="installbefore" value"01.02.06" />

basically, installbefore = removeafter, doesn't it? :)


(still the uninstall-condition must be given too)

it shouldn't be obligatory, but you didn't mean that? :)


Another possibility:
<check type="date" condition="installevery" value"monday" />
<check type="date" condition="removeevery" value"friday" />

looks promising.

I don't know if it could be useful for installing and deinstalling software, the periods are too short. But for sure it could be useful for executing some scripts (executeevery monday?)


this seems to be a possible solution.
I try to implement both, let's see how far I can go.

I don't know if it doesn't complicate things unnecessarily?


Just popped into my mind: the possibility to use "removeafter" and set the
date life while installation. Could this be needed?

So like what?

installdate = 01.01.2006
date life = 30 days

?

Perhaps not, it's easy enough for an admin to figure out that 30 days = 1 month, what would be something like 31.01 / 01.02 :)

--
Tomek



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users

Reply via email to