Are you saying to do this?:
<!-- Define a custom action to execute the PIDKEYValidation function
from the DLL -->
<CustomAction Id="PIDKEYValidation"
BinaryKey="ValidatePIDKEYCA" DllEntry="PIDKEYValidation" />
<!-- Define a custom action to set the PIDKEY property value
-->
<CustomAction Id="SetPIDKeyValue" Property="PIDKEY"
Value="[PIDKEY]"/>
<Publish Dialog="LicenseKeyDlg" Control="Back"
Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
<Publish Dialog="LicenseKeyDlg" Control="Next"
Event="DoAction" Value="SetPIDKeyValue" Order="1">1</Publish>
<Publish Dialog="LicenseKeyDlg" Control="Next"
Event="NewDialog" Value="DisplayLicenseDialog"
Order="2">ProductID</Publish>
Then use the <InstallUISequence> like this?:
<InstallUISequence>
<Custom
Action="SetPIDKeyValue"
After="ValidateProductID" />
<Custom
Action="PIDKEYValidation"
After="SetPIDKeyValue" />
<Show
Dialog="DisplayLicenseDialog"
After="PIDKEYValidation" />
</InstallUISequence>
I must still be missing something because the DisplayLicenseDialog is
still showing as soon as the msi is executed.
Thanks for your help.
Eric
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2008 1:00 PM
To: Eric Latendresse
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to execture a Custom Action
Eric Latendresse wrote:
I am trying to execute a custom action on a specific dialog after the
ValidateProductID event. I have tried using <InstallUISequence> and
also <InstallExecuteSequence>. InsatllUISequence executes the
TestDialog right away which is not what I need. The
InstallExecuteSequence does not seem to pass the PIDKEY value to my CA.
Can someone point me in the right direction on how I should do this
correctly? Basicly what I need to do is execute the CA after the user
has entered the key on the LicenseKeyDialog. The CA should return the
ProductID value to DisplayLicenseDialog. Attached is my .wxs.
Use Publish/@Event="DoAction" with a Value attribute of the CA name.
--
sig://boB
http://joyofsetup.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users