Return additional information about the file.
Syntax
object.Flags
The object is an expression that evaluates to a PackageFile
object. The return value is a combination of one or more bit flags which represent a
specific attribute. The following flags are used:
| Constant |
Description |
| apFileVersionInfo |
The file is a 32-bit executable module or
library which contains version information. |
| apFileShared |
The file is shared between multiple
applications. This file may be locked at the time that the package update is applied, and
a reference count is maintained in the system registry to keep track of how many
applications share the file. |
| apFileRegister |
The file is a self-registering ActiveX
control or COM object. When the package update is applied, the file will be automatically
registered. |
| apFileSigned |
The file has been digitally signed using
Microsoft's AuthentiCode. |
Remarks
The Flags property returns additional
information about the file stored in the package. For example, it can be used to determine
if a particular file contains version information.
Example
'
' Determine if the first file in the package has version
' information available
'
If (Package1.Files(0).Flags And apFileVersionInfo) = 0 Then
' The file is not read-only
End If
See Also
Version Method
|