Try:
<CustomAction Id="CustomBatchBuilder" BinaryKey="BatchBuilder" 
ExeCommand="&quot;[InstallDir]&quot;" Execute="commit" Return="asyncWait"/> 

Works fine for me using CAQuietExec but I use Type 34 Custom Actions where 
you're using Type 2. http://msdn.microsoft.com/en-us/library/aa372048.aspx

Also InstallDir is more than likely a public property. Case matters. 
http://msdn.microsoft.com/en-us/library/aa370912.aspx

You may want to change the Return attribute to "check" if the outcome of your 
Custom Action is critical to your installation.

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer
 

 
 

-----Original Message-----
From: Glenn Sandoval [mailto:glenn.sando...@telogis.com] 
Sent: 21 May 2009 22:10
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Passing InstallDir to exe via a custom action

I'm not sure you can pass information directly to an exe like that. I do 
something similar, but store the install path in the registry and my deferred 
custom actions read it from there.


R. Glenn Sandoval
GeoBase Developer - Telogis Research
www.telogis.com  www.telogis.co.nz


On Fri, May 22, 2009 at 8:51 AM, Jeremie Galarneau 
<jeremie.galarn...@polymtl.ca> wrote:
> Hi,
>
> I have been reading countless WiX tutorial and have been doing good so 
> far but I can't seem to find how to pass the installation directory 
> (InstallDir) to an executable I have to run during the installation 
> procedure. Could someone post a code sample accomplishing this task as 
> I have been stuck on this issue for quite a long time now.
>
> I am presently using a custom action as follows :
>
> <Binary Id='BatchBuilder' SourceFile='BatchBuilder.exe'/>
>
> <CustomAction Id='CustomBatchBuilder' BinaryKey='BatchBuilder'
> ExeCommand="[InstallDir]" Execute="commit" Return="asyncWait"/>
>
> <InstallExecuteSequence>
>  <Custom Action="CustomBatchBuilder" After="InstallFiles">
>    NOT REMOVE
>  </Custom>
> </InstallExecuteSequence>
>
> Thank you all.
>
> Jeremie Galarneau
>
> ----------------------------------------------------------------------
> -------- Register Now for Creativity and Technology (CaT), June 3rd, 
> NYC. CaT is a gathering of tech-side developers & brand creativity 
> professionals. Meet the minds behind Google Creative Lab, Visual 
> Complexity, Processing, & iPhoneDevCamp asthey present alongside 
> digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. 
> http://www.creativitycat.com 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a 
gathering of tech-side developers & brand creativity professionals. Meet the 
minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to