|
Store a file in the current package and update the
collection.
Syntax
object.Store [oldfile]
[, newfile] [, directory] [, filename] [, platform]
The Store method syntax has the following parts:
| Part |
Description |
| object |
An object expression that evaluates to a
PackageFile collection. |
| oldfile |
A string which specifies the name of the
original version of the file to be stored in the package. |
| newfile |
A string which specifies the name of the
updated version of the file to be stored in the package. |
| directory |
A string which specifies the name of the
installation directory on the target system. This parameter is optional. |
| filename |
A string which specifies the name of the file
as it will be stored in the package and installed on the target system. This parameter is
optional, and if not specified, will be based on the common file name shared between the
old and new versions of the file. |
| platform |
A numeric value which specifies which
platform specific files should be returned. This parameter is optional, and if omitted,
defaults to the current platform. |
Settings
The settings for the platform parameter are:
| Constant |
Description |
| apDefaultPlatform |
Specifies the default operating system
platform. This specifies that only those files which are targeted for the current platform
should be returned in the collection. |
| apPlatformWin95 |
The files may be applied to a system running
Windows 95. |
| apPlatformWin98 |
The files may be applied to a system running
Windows 98. |
| apPlatformWinME |
The files may be applied to a system running
Windows ME. |
| apPlatformWinNT40 |
The files may be applied to a system running
Windows NT 4.0. |
| apPlatformWin2000 |
The files may be applied to a system running
Windows 2000. |
| apPlatformWinXP |
The files may be applied to a system running
Windows XP. |
| apPlatformWin2003 |
The files may be applied to a system running
Windows Server 2003. |
| apPlatformWin32 |
The files may be applied to any 32-bit
version of the Windows operating system. |
| apPlatformWin9X |
The files may be applied to any system
running Windows 95, Windows 98 or Windows ME. They will not be applied on a system running
Windows NT, Windows 2000 or Windows XP. |
| apPlatformWinNT |
The files may be applied to any system
running Windows NT, Windows 2000 or Windows XP. They will not be applied on a system
running Windows 95, Windows 98 or Windows ME. |
| apPlatformWindows |
The files may be applied to any system
running any version of Microsoft Windows. |
Remarks
If the oldfile and newfile parameters are
both specified, then the files are compared and only the differences between them are
stored in the package. If the oldfile parameter is not specified, then the new
file is stored in the package and is created on the target platform. If the oldfile
parameter is specified and the newfile parameter is not, this indicates that the
file should be removed from the target system.
|
|