Program Object Type

The Program object represents an SMS program.

Table B.11 Program Object Type (SMS_Program)

PropertyData typeExampleNotes
ApplicationHierarchystring  
CommandLine string "setup.exe
/QN1 /B2"
Indicates the command line that is executed when the program is run.
Comment string "Any comment"Indicates a comment on the program.
DependentProgram string "ABC0001;;Setup"Defines any program that should be run before the current program runs. The format is defined as ‘Package ID;;Program Name’.
Description string"Custom installation"Describes the program.
DiskSpaceReq string "0"Indicates the approximate disk space the program requires.
DriveLetter string"x"Indicates the drive letter that the program maps and runs from when it is run.
Duration uint32 2Indicates the approximate amount of time, in minutes, that the program takes to run.
Icon[] uint8 NULLRepresents an array of icon information related to the program.
IconSize uint32 0Lazy. Indicates the icon size.
PackageID string "TTG00001"Provides the PackageId of a pre-existing package that this program is associated with.
ProgramFlags uint32See “Interpreting Bitfield Properties” at the beginning of this appendix.Indicates the status of the program.

Bit flags are:
Bit 12 = DISABLED
Bit 13 = UNATTENDED
Bit 14 = USERCONTEXT
Bit 15 = ADMINRIGHTS
Bit 16 = EVERYUSER
Bit 17 = NOUSERLOGGEDIN
Bit 18 = OKTOQUIT
Bit 19 = OKTOREBOOT
Bit 20 = USEUNCPATH
Bit 21 = PERSISTCONNECTION
Bit 22 = RUNMINIMIZED
Bit 23 = RUNMAXIMIZED
Bit 24 = HIDEWINDOW
Bit 25 = OKTOLOGOFF
Bit 26 = RUNACCOUNT
Bit 27 = ANY_PLATFORM
Bit 28 = STILL_RUNNING
Bit 29 = SUPPORT_UNINSTALL

ProgramName string"Custom installation"Represents the program name with a required, unique text string.
RemovalKey string"IE40"Indicates the registry key that contains the uninstall script for the program. This script is invoked for a client when the last advertisement containing this program is revoked from the client.
Requirements string"Any comment."Describes any additional requirements of the program.
SupportedOperatingSystems[] SMS_OS_Details Lazy. An array of SMS_OS_Details that describe certain specified platforms that the program can run on.
WorkingDirectory string "i386"Indicates an executable directory for the program.