Changes

Packages.xml

1,011 bytes added, 12:56, 24 October 2006
no edit summary
Remember that you don't have to specify all three check conditions, usually one is enough: if the software you are about to install will show up in Windows' Add/Remove Programs (and not all do), it is sufficient to specify just the "'''uninstall'''" check.
==Actions to take==
==Action to take==This section needs to Wpkg understands three actions: '''install''', '''upgrade''' and '''remove'''. Multiple commands for each of these actions can be written..listed in the config file and wpkg will execute them in the order they are listed.
===Install===The '''install''' commands are executed by wpkg when a new package comes into scope for a profile. The '''upgrade''' commands are executed when a new revision of a package comes into scope. The '''remove''' commands are executed when a package is removed from a profile.
===Upgrade===Currently wpkg does not perform environment variable expansion of the command line, so cmd.exe is commonly used to do so. A typical command line for all actions is as follows:
===Remove===<pre>cmd.exe /c start /wait /d %SOFTWARE%/java %SOFTWARE%/java/jre.execmd.exe /c start "Java" /wait /d "%SOFTWARE%/java" "%SOFTWARE%/java/jre.exe"</pre>
The second command form is needed if the executable path is quoted, otherwise the start command treats the quoted path as the command window title.
 
The only issue caused by using cmd.exe is that a command window will appear on screen while the command is executing.
==Quick examples==
Anonymous user