object.Update [oldfiles]
[, newfiles] [, directory] [, exclude] [, options]
The Update method syntax has the following parts:
The FileName property should be set to the
name of the package file that you wish to update. If the package is protected with a
password, the Password property must be set before the Update
method is called.
If the oldfiles parameter is omitted, then those
files in the directory specified by the newfiles parameter will be added to the
package and will replace any existing files on the target system. If the oldfiles
parameter is specified, but the newfiles parameter is omitted, then those files
will be marked for deletion from the target system. If both parameters are omitted, an
empty package file is created.
If you wish to include multiple versions of a file, or
files with the same names targeted for different operating systems, you must set the Options
property and specify the apMultipleVersions option before calling this method.
An application method will be associated with each file
that is added to the package. The possible application methods are: Create, Replace,
Modify, and Delete. An application method for a given file is determined by this method
through comparison of the files referred to by the oldfiles and newfiles
specifications.