[wix-users] ExecuteOnInstall and RollbackOnUninstall attributes on SqlScript

Ven H venh.123 at gmail.com
Wed Feb 28 05:16:41 PST 2018

Thanks a lot for your response, Nir. So, do you mean something like below?
The below works for me.

<Binary Id="binCreateTbl" SourceFile="CREATE_TABLE.sql" />
 <Binary Id="binDropTbl" SourceFile="DROP_TABLE.sql" />

<sql:SqlScript BinaryKey="binCreateTbl" Id="script_CreateTbl"
ExecuteOnInstall="yes" />
 <sql:SqlScript BinaryKey="binDropTbl" Id="script_DropTbl"
ExecuteOnUninstall="yes" />

But I am not able to understand the purpose of the Rollback attributes like
RollbackOnUninstall,  RollbackOnInstall,  RollbackOnReinstall. Where and
when to use these? Can you please explain?


On Wed, Feb 28, 2018 at 5:38 PM, Nir Bar via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> Duplicate the SqlScript element- one for install and the other for
> uninstall rollback.
> --
> Nir Bar, Independent WiX Expert. Creator of-
> JetBA: WiX WPF Bootstrapper User Interface Framework
> JetBA++: WiX Native Bootstrapper User Interface Framework
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/

More information about the wix-users mailing list