IT:AD:WiX:Reference:List of Variables defined in WiX UtilExtensions
Where can I find a list of the variables defined by Wix UtilExtensions?
As per this page: http://bit.ly/fr1uXs
Add the namespace:
xmlns:util=“http://schemas.microsoft.com/wix/UtilExtension”
and
«
OSInfo custom actions The WixQueryOsInfo, WixQueryOsDirs, and WixQueryOsDriverInfo custom actions in wixca (part of WixUtilExtension) set properties over and above the MSI set for OS product/suite detection and standard directories. The WixQueryOsWellKnownSID custom action sets properties for the localized names of some built in Windows users and groups.
To use these custom actions you simply need to add a <PropertyRef> to the property you want to use and then include WixUtilExtensions when linking. For example:
<PropertyRef Id=“WIXSUITESINGLEUSERTS” /> <PropertyRef Id=“WIXDIRCOMMONDOCUMENTS” /> <PropertyRef Id=“WIXACCOUNT_LOCALSERVICE” /> WixUtilExtension will automatically schedule the custom actions as needed after the AppSearch standard action. For additional information about standard directory tokens in Windows and which ones are supported directly by Windows Installer, see the following topics in the MSDN documentation:
Constant special item ID list (CSIDL) values Windows Installer system folder values WixQueryOsInfo Properties WIXSUITEBACKOFFICE
Equivalent to the OSVERSIONINFOEX VERSUITEBACKOFFICE flag.
WIXSUITEBLADE
Equivalent to the OSVERSIONINFOEX VERSUITEBLADE flag.
WIXSUITECOMMUNICATIONS
Equivalent to the OSVERSIONINFOEX VERSUITECOMMUNICATIONS flag.
WIXSUITECOMPUTE_SERVER
Equivalent to the OSVERSIONINFOEX VERSUITECOMPUTE_SERVER flag.
WIXSUITEDATACENTER
Equivalent to the OSVERSIONINFOEX VERSUITEDATACENTER flag.
WIXSUITEEMBEDDEDNT
Equivalent to the OSVERSIONINFOEX VERSUITEEMBEDDEDNT flag.
WIXSUITEEMBEDDED_RESTRICTED
Equivalent to the OSVERSIONINFOEX VERSUITEEMBEDDED_RESTRICTED flag.
WIXSUITEENTERPRISE
Equivalent to the OSVERSIONINFOEX VERSUITEENTERPRISE flag.
WIXSUITEMEDIACENTER
Equivalent to the GetSystemMetrics SM_SERVERR2 flag.
WIXSUITEPERSONAL
Equivalent to the OSVERSIONINFOEX VERSUITEPERSONAL flag.
WIXSUITESECURITY_APPLIANCE
Equivalent to the OSVERSIONINFOEX VERSUITESECURITY_APPLIANCE flag.
WIXSUITESERVERR2
Equivalent to the GetSystemMetrics SM_SERVERR2 flag.
WIXSUITESINGLEUSERTS
Equivalent to the OSVERSIONINFOEX VERSUITESINGLEUSERTS flag.
WIXSUITESMALLBUSINESS
Equivalent to the OSVERSIONINFOEX VERSUITESMALLBUSINESS flag.
WIXSUITESMALLBUSINESS_RESTRICTED
Equivalent to the OSVERSIONINFOEX VERSUITESMALLBUSINESS_RESTRICTED flag.
WIXSUITESTARTER
Equivalent to the GetSystemMetrics SM_STARTER flag.
WIXSUITESTORAGE_SERVER
Equivalent to the OSVERSIONINFOEX VERSUITESTORAGE_SERVER flag.
WIXSUITETABLETPC
Equivalent to the GetSystemMetrics SM_TABLETPC flag.
WIXSUITETERMINAL
Equivalent to the OSVERSIONINFOEX VERSUITETERMINAL flag.
WIXSUITEWH_SERVER
Windows Home Server. Equivalent to the OSVERSIONINFOEX VERSUITEWH_SERVER flag.
WixQueryOsDirs Properties WIXDIRADMINTOOLS
Per-user administrative tools directory. Equivalent to the SHGetFolderPath CSIDL_ADMINTOOLS flag.
WIXDIRALTSTARTUP
Per-user nonlocalized Startup program group. Equivalent to the SHGetFolderPath CSIDL_ALTSTARTUP flag.
WIXDIRCDBURN_AREA
Per-user CD burning staging directory. Equivalent to the SHGetFolderPath CSIDLCDBURNAREA flag.
WIXDIRCOMMON_ADMINTOOLS
All-users administrative tools directory. Equivalent to the SHGetFolderPath CSIDLCOMMONADMINTOOLS flag.
WIXDIRCOMMON_ALTSTARTGeneral:Education:|UP
All-users nonlocalized Startup program group. Equivalent to the SHGetFolderPath CSIDLCOMMONALTSTART flag.
WIXDIRCOMMON_DOCUMENTS
All-users documents directory. Equivalent to the SHGetFolderPath CSIDLCOMMONDOCUMENTS flag.
WIXDIRCOMMON_FAVORITES
All-users favorite items directory. Equivalent to the SHGetFolderPath CSIDLCOMMONFAVORITES flag.
WIXDIRCOMMON_MUSIC
All-users music files directory. Equivalent to the SHGetFolderPath CSIDLCOMMONMUSIC flag.
WIXDIRCOMMON_PICTURES
All-users picture files directory. Equivalent to the SHGetFolderPath CSIDLCOMMONPICTURES flag.
WIXDIRCOMMON_VIDEO
All-users video files directory. Equivalent to the SHGetFolderPath CSIDLCOMMONVIDEO flag.
WIXDIRCOOKIES
Per-user Internet Explorer cookies directory. Equivalent to the SHGetFolderPath CSIDL_COOKIES flag.
WIXDIRDESKTOP
Per-user desktop directory. Equivalent to the SHGetFolderPath CSIDL_DESKTOP flag.
WIXDIRHISTORY
Per-user Internet Explorer history directory. Equivalent to the SHGetFolderPath CSIDL_HISTORY flag.
WIXDIRINTERNET_CACHE
Per-user Internet Explorer cache directory. Equivalent to the SHGetFolderPath CSIDLINTERNETCACHE flag.
WIXDIRMYMUSIC
Per-user music files directory. Equivalent to the SHGetFolderPath CSIDL_MYMUSIC flag.
WIXDIRMYPICTURES
Per-user picture files directory. Equivalent to the SHGetFolderPath CSIDL_MYPICTURES flag.
WIXDIRMYVIDEO
Per-user video files directory. Equivalent to the SHGetFolderPath CSIDL_MYVIDEO flag.
WIXDIRNETHOOD
Per-user My Network Places link object directory. Equivalent to the SHGetFolderPath CSIDL_NETHOOD flag.
WIXDIRPERSONAL
Per-user documents directory. Equivalent to the SHGetFolderPath CSIDL_PERSONAL flag.
WIXDIRPRINTHOOD
Per-user Printers link object directory. Equivalent to the SHGetFolderPath CSIDL_PRINTHOOD flag.
WIXDIRPROFILE
Per-user profile directory. Equivalent to the SHGetFolderPath CSIDL_PROFILE flag.
WIXDIRRECENT
Per-user most recently used documents shortcut directory. Equivalent to the SHGetFolderPath CSIDL_RECENT flag.
WIXDIRRESOURCES
All-users resource data directory. Equivalent to the SHGetFolderPath CSIDL_RESOURCES flag.
WixQueryOsWellKnownSID properties WIXACCOUNTLOCALSYSTEM
Localized qualified name of the Local System account.
WIXACCOUNTLOCALSERVICE
Localized qualified name of the Local Service account.
WIXACCOUNTNETWORKSERVICE
Localized qualified name of the Network Service account.
WIXACCOUNTADMINISTRATORS
Localized qualified name of the Administrators group.
WIXACCOUNTUSERS
Localized qualified name of the Users group.
WIXACCOUNTGUESTS
Localized qualified name of the Users group.
WixQueryOsDriverInfo properties WIXWDDMDRIVER_PRESENT
Set to 1 if the video card driver on the target machine is a WDDM driver. This property is only set on machines running Windows Vista or higher.
WIXDWMCOMPOSITION_ENABLED Set to 1 if the target machine has composition enabled. This property is only set on machines running Windows Vista or higher.