I've only done it with VBS, which I know isn't recommended, etc, but to do
that, I have the below.

If you're really using calc.exe in your testing, are you sure it isn't
working? Sometimes weirdness happens with user contexts - did you check to
see if calc.exe is running on your system under a different user, who
perhaps doesn't have screen access? I'd write a little program that just
creates a file with the current date and time and try testing with that.

I notice that you have "CustomAction" in the InstallExecuteSequence. I
don't know if that's just a posting error, but it should be "Custom Action"
with a space.

In any case, here's how I'm running a VBS that most definitely does work.
Hopefully I'm being of some assistance... :)

<Binary Id="CreateHostsVBS"
SourceFile="../../scripts/generateHostsFile.vbs" />

<CustomAction Id="CA_CreateHostsVBS" BinaryKey="CreateHostsVBS"
VBScriptCall="Run" Execute="deferred" Return="check" />

<InstallExecuteSequence>
<Custom Action="CA_CreateHostsVBS" After="InstallFiles"> NOT Installed
</Custom>
</InstallExecuteSequence>








On Wed, Jun 4, 2014 at 11:12 AM, Shane Corbin <shane_cor...@selinc.com>
wrote:

> I suspect I would need to somehow extract the executable out of the binary
> table before I can use it.  I'm not sure how to accomplish this though.
>
> I was attempting to do something like:
>
> <Binary Id="CalcID" SourceFile="C:\Windows\system32\calc.exe" />
>
> <CustomAction Id="CA1ID" Return="check" HideTarget="no" Execute="deferred"
> Impersonate="no" ExeCommand="" BinaryKey="CalcID" />
>
> <InstallExecuteSequence>
>   <CustomAction=&quot;CA1ID&quot; After=&quot;InstallInitialize&quot;>
>      NOT Installed
>    </Custom>
> </InstallExecuteSequence>
>
> That does not work for me.
>
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Options-to-run-temporary-exe-during-install-tp7595004p7595036.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to