WIX Order of execution with Custom Action -
i have wix project installs web site, couple of sql server databases , configures users etc.
part of install creates database asp.net membership system using custom action execute aspnet_regsql.exe.
another part of installation needs execute sql script create initial user. problem script component getting executed before custom action has happened, references membership tables , stored procedures in script invalid , install fails.
this part of install file:
<feature id="complete" title="darzi web" level="1" display="expand" configurabledirectory="installdir"> <componentgroupref id="siteiisconfig"/> <componentgroupref id="sqlconfig" /> <componentgroupref id="installfiles" /> <componentref id="webconfigchanges" /> <componentgroupref id="sqlbootstrap" /> </feature> <installexecutesequence> <custom action='regsql' after='installfiles'/> </installexecutesequence> i need way tell installer make sure "sqlbootstrap" happens after "regsql".
any gratefully received.
edit
this section runs bootstrap sql:
<fragment> <directoryref id="installdir"> <component id="sqlboostrapcomponent" guid="caaa1447-446f-4c1b-9239-812aba5af0ff" keypath="yes"> <sql:sqlscript sqldb='darziaspnetdbdatabase' id='bootstrap' binarykey='bootstrap' executeoninstall='yes' sequence='1' /> </component> </directoryref> <binary id='bootstrap' sourcefile='bootstrap.sql' /> <componentgroup id="sqlbootstrap"> <componentref id="sqlboostrapcomponent" /> </componentgroup> </fragment>
assuming sql scripts run using inbuilt sql actions need schedule installsqldata action after regsql action:
<custom action="installsqldata" after="regsql" />
Comments
Post a Comment