Changes

Execute once / always

670 bytes added, 21:51, 20 April 2006
m
no edit summary
Sometimes, you may want to execute a program or a script each time WPKG runs (for example, to clean up a temp directory, synchronize time etc.).

To do this, use execute="always".


Another approach is when you want to execute a program or a script only once (for example, you want to remove a directory, set up permissions, or you're unable to produce any file or registry check).

To do this, use execute="once".

Below, an example for execute="always":

<package<br>
id="time"<br>
name="Time Synchonization"<br>
execute="always"><br>
<install cmd="net time \\timeserver /set /yes" /><br>
</package>


[[category:Documentation]]