I edited the original e-mail to put the elements on different lines only.

Try adding an Id attribute to the CustomAction element that sets the
property, i.e., Id='SetProp_QtExecDeferred'.  Also, set execution of this to
'immediate'.  You also need to call this custom action within the
InstallExecuteSequence, like so:

<InstallExecuteSequence>
  <Custom Action='SetProp_QtExecDeferred' ... />
  <Custom Action='QtExecDeferred' ... />
</InstallExecuteSequence>

Julie Campbell
[EMAIL PROTECTED]

-----Original Message-----
Message: 2
Date: Tue, 15 May 2007 18:06:08 -0600
From: Kevin Fischer <[EMAIL PROTECTED]>
Subject: Re: [WiX-users] Problem using Action attribute on Custom
        element
To: "[email protected]"
        <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="windows-1252"

Any thoughts on how to fix this?  
 
Should I not be using V3 of WiX?  I was under the impression that I needed
to use V3 if I wanted to use the "feature-rich" version of Votive.
 
Thanks,
Kevin


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]:
Mon, 14 May 2007 16:08:00 -0600Subject: [WiX-users] Problem using Action
attribute on Custom element


I'm trying to execute a deferred command line in my MSI.  I want it to
execute only on uninstall prior to a service being stopped/uninstalled. I'm
following the code snippet I found in the help.  So I have some code like: 

<CustomAction Property="QtExecDeferred" Value="[INSTALLLOCATION]foo.exe" />

<CustomAction Id="QtExecDeferred" BinaryKey="wixca" DllEntry="CAQuietExec"
Execute="deferred" Return="check"/>

<Binary Id="wixca" SourceFile="wixca.dll"/> 

<InstallExecuteSequence>
<Custom Action="QtExecDeferred" Before="StopServices">Installed</Custom>
</InstallExecuteSequence> 

When I try to compile this I get the error:  Cannot set column 'Action' with
a null value because this is a required field.  I'm using WiX version 3, the
version released in December 2006. Any ideas? Thanks,Kevin    




_____________________________________________________________________________
Scanned by IBM Email Security Management Services powered by MessageLabs. For 
more information please visit http://www.ers.ibm.com
_____________________________________________________________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to