I'm working on a setup that validate many user inputs by a custom action.
The event "DoAction" of publish control are doing very good job, but I
figured out that no one custom validation are triggered if I execute the
setup in silence mode.

I tried InstallExecuteSequence like the Yen Tran's blog (
http://yentran.org/blog/2013/09/27/wix-executing-custom-action-before-starting-
<http://yentran.org/blog/2013/09/27/wix-executing-custom-action-before-starting-windows-service/>
windows-service/
<http://yentran.org/blog/2013/09/27/wix-executing-custom-action-before-starting-windows-service/>)
but still not working.

How can I trigger a custom action if I set up a property by command line?

My project looks like:
<Product.wxs>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; xmlns:firewall="
http://schemas.microsoft.com/wix/FirewallExtension";>

  <?Include $(var.ProjectDir)\Wizard.wxs ?>
  <?Include $(var.ProjectDir)\Properties.wxs ?>

<Fragment>
    <Binary Id="CALibrary"
SourceFile="$(var.Project.Installer.CustomAction.TargetDir)CustomAction.CA.dll"
/>
    <CustomAction Id ="ProxyCheck" BinaryKey="CALibrary" DllEntry="Proxy"
Execute="immediate" Return="check" />
    <CustomAction Id ="ActivationCheck" BinaryKey="CALibrary"
DllEntry="Activation" Execute="immediate" Return="check" />
  </Fragment>
  ...

  <Fragment>
    <InstallExecuteSequence>
      <Custom Action="ActivationCheck" Before="InstallInitialize"
Overridable="yes"></Custom>
    </InstallExecuteSequence>
  </Fragment>

</Wix>

</Product.wxs>

<Properties.wxs>

<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

  <Fragment>
    <!--Properties from command line-->
    <Property Id="PROXYSERVER" Secure="yes"></Property>
    <Property Id="PROXYUSER" Secure="yes"></Property>
    <Property Id="PROXYUSERPASSWORD" Secure="yes" Hidden="yes"></Property>

   ...

  </Fragment>
</Wix>

</Properties.wxs>

-- 

"o animal satisfeito dorme". - GuimarĂ£es Rosa
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to