Hi Jeremie, Try single quotes outside of double quotes while passing the InstallDir parameter. This has worked for me
Example: <CustomAction Id="SampleCA" BinaryKey="SetInstallDir.exe" ExeCommand='"[INSTALLDIR]"' Return="ignore" Execute="deferred" /> Thanks and Regards, Surekha Vuchuru -----Original Message----- From: Jeremie Galarneau [mailto:jeremie.galarn...@polymtl.ca] Sent: Thursday, May 21, 2009 3:51 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Passing InstallDir to exe via a custom action 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