SqlScript Element

WiX Help

SqlScript Element

Description

SQL Script

Windows Installer references
None
Parents
Component, Include, SqlDatabase
Inner Text
None
Children
Sequence (min: 1, max: 1)
  1. Binary (min: 0, max: 1)
Attributes
Name Type Description Required
Id String   Yes
BinaryKey String Reference to Binary stream that contains the SQL script to execute. Only valid if no Binary child element.  
ContinueOnError YesNoType Continue executing scripts even if this one fails.  
ExecuteOnInstall YesNoType Specifies to execute the script when the associated component is installed.  
ExecuteOnReinstall YesNoType Specifies whether to execute the script when the associated component is reinstalled. Setting ExecuteOnInstall to yes does not imply ExecuteOnReinstall is set to yes. ExecuteOnReinstall must be set in addition to ExecuteOnInstall for it to be executed during both install and reinstall.  
ExecuteOnReInstall YesNoType This attribute has been deprecated; please use the ExecuteOnReinstall attribute instead.  
ExecuteOnUninstall YesNoType Specifies to execute the script when the associated component is uninstalled.  
RollbackOnInstall YesNoType Specifies whether to execute the script on rollback if an attempt is made to install the associated component.  
RollbackOnReinstall YesNoType Specifies whether to execute the script on rollback if an attempt is made to reinstall the associated component.  
RollbackOnUninstall YesNoType Specifies whether to execute the script on rollback if an attempt is made to uninstall the associated component.  
Sequence Integer Specifes the order to run the SQL Scripts. It is recommended that rollback scripts be scheduled before their complementary execution script. This order is also relative across the SqlString element.  
SqlDb String Required when not child of SqlDatabase.  
User String    
See Also
Wix Schema