Ok, that works for setting INSTALLDIR, however it appears to be getting set after the files have alread installed. I have the following in my wxs, but it doesn't seem to be causing the CA to happen before it actually installs files.
<Binary Id="CustomAction.dll" SourceFile=" $(var.CustomAction.TargetDir)$(var.CustomAction.TargetName).CA.dll" /> <CustomAction Id="SetMirInstallDir" BinaryKey="CustomAction.dll" DllEntry=" SetMirInstallDir" Execute="immediate"/> <InstallExecuteSequence> <Custom Action="SetMirInstallDir" Before="InstallFiles" /> </InstallExecuteSequence> I'll try a couple of other Before targets, but if anyone has done this before it'd be a big help. A On Fri, Aug 13, 2010 at 6:23 PM, Andrew Hammond < andrew.george.hamm...@gmail.com> wrote: > I have the following CustomAction and would like to it to set the > INSTALLDIR property used in the WXS that calls it. I seem to be trying to > set the property incorrectly. > > session["INSTALLDIR"] = "Some Location" > > What is the correct way to set properties from within a CustomAction? > > A > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users