Platform Property

Returns the operating system platforms supported by the current file.

Syntax

object.Platform

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 operating system platform. The following values are used:

Constant Description
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

The Platform property can be used to determine if a specific file is targeted for a given operating system platform. In a package that supports multiple versions of a file, the file's target platform (along with the file name and checksum) are used to uniquely identify the file.

Example

'
' Iterate through each file in the package, deleting those
' files from the package which cannot be installed on Windows 98
'
Dim File As PackageFile

For Each File In Package1.Files
    If (File.Platform And apPlatformWin98) = 0 Then
        File.Delete
    End If
Next

See Also

Checksum Property, FileName Property