Remove ' Property="CA_StartWebConfigConnectionStrings"' from the first custom
action.

-----Original Message-----
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: 24 October 2012 19:47
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] calling a deferred customaction dll using CAQuietExec

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-defer
red-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
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
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