Skip to main content

Windows information custom actions

The QueryWindowsDirectories, QueryWindowsDriverInfo, QueryWindowsSuiteInfo, and QueryWindowsWellKnownSIDs elements in the Util schema schedule custom actions that query the system and set properties based on those queries.

QueryWindowsDirectories properties

PropertyDescription
WIX_DIR_ADMINTOOLSPer-user administrative tools directory. Equivalent to the SHGetFolderPath CSIDL_ADMINTOOLS flag.
WIX_DIR_ALTSTARTUPPer-user nonlocalized Startup program group. Equivalent to the SHGetFolderPath CSIDL_ALTSTARTUP flag.
WIX_DIR_CDBURN_AREAPer-user CD burning staging directory. Equivalent to the SHGetFolderPath CSIDL_CDBURN_AREA flag.
WIX_DIR_COMMON_ADMINTOOLSAll-users administrative tools directory. Equivalent to the SHGetFolderPath CSIDL_COMMON_ADMINTOOLS flag.
WIX_DIR_COMMON_ALTSTARTUPAll-users nonlocalized Startup program group. Equivalent to the SHGetFolderPath CSIDL_COMMON_ALTSTARTUP flag.
WIX_DIR_COMMON_DOCUMENTSAll-users documents directory. Equivalent to the SHGetFolderPath CSIDL_COMMON_DOCUMENTS flag.
WIX_DIR_COMMON_FAVORITESAll-users favorite items directory. Equivalent to the SHGetFolderPath CSIDL_COMMON_FAVORITES flag.
WIX_DIR_COMMON_MUSICAll-users music files directory. Equivalent to the SHGetFolderPath CSIDL_COMMON_MUSIC flag.
WIX_DIR_COMMON_PICTURESAll-users picture files directory. Equivalent to the SHGetFolderPath CSIDL_COMMON_PICTURES flag.
WIX_DIR_COMMON_VIDEOAll-users video files directory. Equivalent to the SHGetFolderPath CSIDL_COMMON_VIDEO flag.
WIX_DIR_COOKIESPer-user Internet Explorer cookies directory. Equivalent to the SHGetFolderPath CSIDL_COOKIES flag.
WIX_DIR_DESKTOPPer-user desktop directory. Equivalent to the SHGetFolderPath CSIDL_DESKTOP flag.
WIX_DIR_HISTORYPer-user Internet Explorer history directory. Equivalent to the SHGetFolderPath CSIDL_HISTORY flag.
WIX_DIR_INTERNET_CACHEPer-user Internet Explorer cache directory. Equivalent to the SHGetFolderPath CSIDL_INTERNET_CACHE flag.
WIX_DIR_MYMUSICPer-user music files directory. Equivalent to the SHGetFolderPath CSIDL_MYMUSIC flag.
WIX_DIR_MYPICTURESPer-user picture files directory. Equivalent to the SHGetFolderPath CSIDL_MYPICTURES flag.
WIX_DIR_MYVIDEOPer-user video files directory. Equivalent to the SHGetFolderPath CSIDL_MYVIDEO flag.
WIX_DIR_NETHOODPer-user My Network Places link object directory. Equivalent to the SHGetFolderPath CSIDL_NETHOOD flag.
WIX_DIR_PERSONALPer-user documents directory. Equivalent to the SHGetFolderPath CSIDL_PERSONAL flag.
WIX_DIR_PRINTHOODPer-user Printers link object directory. Equivalent to the SHGetFolderPath CSIDL_PRINTHOOD flag.
WIX_DIR_PROFILEPer-user profile directory. Equivalent to the SHGetFolderPath CSIDL_PROFILE flag.
WIX_DIR_RECENTPer-user most recently used documents shortcut directory. Equivalent to the SHGetFolderPath CSIDL_RECENT flag.
WIX_DIR_RESOURCESAll-users resource data directory. Equivalent to the SHGetFolderPath CSIDL_RESOURCES flag.

QueryWindowsDriverInfo properties

PropertyDescription
WIX_WDDM_DRIVER_PRESENTSet to 1 if the video card driver on the target machine is a WDDM driver. This property is set only on machines running Windows Vista or later.
WIX_DWM_COMPOSITION_ENABLEDSet to 1 if the target machine has composition enabled. This property is set only on machines running Windows Vista or later.

QueryWindowsSuiteInfo properties

QueryWindowsSuiteInfo sets one or more of the following session properties for the product suites available on the system or system metrics.

PropertyDescription
WIX_SUITE_BACKOFFICEEquivalent to the OSVERSIONINFOEX VER_SUITE_BACKOFFICE flag.
WIX_SUITE_BLADEEquivalent to the OSVERSIONINFOEX VER_SUITE_BLADE flag.
WIX_SUITE_COMMUNICATIONSEquivalent to the OSVERSIONINFOEX VER_SUITE_COMMUNICATIONS flag.
WIX_SUITE_COMPUTE_SERVEREquivalent to the OSVERSIONINFOEX VER_SUITE_COMPUTE_SERVER flag.
WIX_SUITE_DATACENTEREquivalent to the OSVERSIONINFOEX VER_SUITE_DATACENTER flag.
WIX_SUITE_EMBEDDEDNTEquivalent to the OSVERSIONINFOEX VER_SUITE_EMBEDDEDNT flag.
WIX_SUITE_EMBEDDED_RESTRICTEDEquivalent to the OSVERSIONINFOEX VER_SUITE_EMBEDDED_RESTRICTED flag.
WIX_SUITE_ENTERPRISEEquivalent to the OSVERSIONINFOEX VER_SUITE_ENTERPRISE flag.
WIX_SUITE_MEDIACENTEREquivalent to the GetSystemMetrics SM_SERVERR2 flag.
WIX_SUITE_PERSONALEquivalent to the OSVERSIONINFOEX VER_SUITE_PERSONAL flag.
WIX_SUITE_SECURITY_APPLIANCEEquivalent to the OSVERSIONINFOEX VER_SUITE_SECURITY_APPLIANCE flag.
WIX_SUITE_SERVERR2Equivalent to the GetSystemMetrics SM_SERVERR2 flag.
WIX_SUITE_SINGLEUSERTSEquivalent to the OSVERSIONINFOEX VER_SUITE_SINGLEUSERTS flag.
WIX_SUITE_SMALLBUSINESSEquivalent to the OSVERSIONINFOEX VER_SUITE_SMALLBUSINESS flag.
WIX_SUITE_SMALLBUSINESS_RESTRICTEDEquivalent to the OSVERSIONINFOEX VER_SUITE_SMALLBUSINESS_RESTRICTED flag.
WIX_SUITE_STARTEREquivalent to the GetSystemMetrics SM_STARTER flag.
WIX_SUITE_STORAGE_SERVEREquivalent to the OSVERSIONINFOEX VER_SUITE_STORAGE_SERVER flag.
WIX_SUITE_TABLETPCEquivalent to the GetSystemMetrics SM_TABLETPC flag.
WIX_SUITE_TERMINALEquivalent to the OSVERSIONINFOEX VER_SUITE_TERMINAL flag.
WIX_SUITE_WH_SERVERWindows Home Server. Equivalent to the OSVERSIONINFOEX VER_SUITE_WH_SERVER flag.

QueryWindowsWellKnownSIDs properties

PropertyDescription
WIX_ACCOUNT_LOCALSYSTEM, WIX_ACCOUNT_LOCALSYSTEM_NODOMAINLocalized qualified name of the Local System account (WinLocalSystemSid).
WIX_ACCOUNT_LOCALSERVICE, WIX_ACCOUNT_LOCALSERVICE_NODOMAINLocalized qualified name of the Local Service account (WinLocalServiceSid).
WIX_ACCOUNT_NETWORKSERVICE, WIX_ACCOUNT_NETWORKSERVICE_NODOMAINLocalized qualified name of the Network Service account (WinNetworkServiceSid).
WIX_ACCOUNT_ADMINISTRATORS, WIX_ACCOUNT_ADMINISTRATORS_NODOMAINLocalized qualified name of the Administrators group (WinBuiltinAdministratorsSid).
WIX_ACCOUNT_USERS, WIX_ACCOUNT_USERS_NODOMAINLocalized qualified name of the Users group (WinBuiltinUsersSid).
WIX_ACCOUNT_GUESTS, WIX_ACCOUNT_GUESTS_NODOMAINLocalized qualified name of the Users group (WinBuiltinGuestsSid).
WIX_ACCOUNT_PERFLOGUSERS, WIX_ACCOUNT_PERFLOGUSERS_NODOMAINLocalized qualified name of the Performance Log Users group (WinBuiltinPerfLoggingUsersSid).

QueryNativeMachine properties

PropertyDescription
WIX_NATIVE_MACHINESet to an Image File Machine value representing the native architecture of the machine. This property is set only on Windows 10 version 1511 (TH2) and later.