I have a deferred custom action in a merge module that is a call to a C#
customaction dll I created, but I want it to be quiet so I did this:

    <CustomAction Id="CA_SetWebConfigConnectionStrings"
Property="CA_StartWebConfigConnectionStrings" BinaryKey="BIN_CustomAction"
DllEntry="Call_UpdateAdminWebConfigSqlConnectionString" Execute="immediate"
/>
    <UI>
      <ProgressText Action="CA_SetWebConfigConnectionStrings">CA: Setting
CustomAction to configure the connection strings for
Web.config...</ProgressText>
    </UI>
    <CustomAction Id="CA_StartWebConfigConnectionStrings" Impersonate="no"
BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="ignore"
/>
    <UI>
      <ProgressText Action="CA_StartWebConfigConnectionStrings">CA:
Configuring the connection strings for Web.config...</ProgressText>
    </UI>

    <InstallExecuteSequence>
      <Custom Action="CA_SetWebConfigConnectionStrings"
After="CostInitialize">NOT Installed</Custom>
      <Custom Action="CA_StartWebConfigConnectionStrings"
After="InstallFiles">NOT Installed</Custom>
    </InstallExecuteSequence>

but I get this compile time error:
Error   92      The CustomAction/@BinaryKey attribute cannot coexist with a
previously specified attribute on this element.  The CustomAction element
may only have one of the following source attributes specified at a time:
BinaryKey, Directory, FileKey, Property, or Script.     C:\Dev\Core
Technologies\Main\Setup\TitusAdmin\TitusAdminMergeModule\MergeModule.wxs        
619
1       TitusAdminMergeModule






--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/calling-a-deferred-customaction-dll-using-CAQuietExec-tp7581555.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to