Looking at the install log (msiexec /lvx install.log /i installer.msi) is a good starting point for working things like this out, you can easily see which actions fire when and what task(s) each action is performing, so with that in mind an install log will show that searches (registry or directory) are triggered during the AppSearch action, therefore...
<Property Id="PROPERTY1"> <RegistrySearch Id="RegSearchExample" ... /> </Property> <CustomAction Id="SetProperty2" Property="PROPERTY2" Value="[PROPERTY1]" Execute="immediate" Return="check"/> <InstallUISequence> <Custom Action="SetProperty2" After="AppSearch"/> </InstallUISequence> <InstallExecuteSequence> <Custom Action="SetProperty2" After="AppSearch"/> </InstallExecuteSequence> ... should do the trick. Don Tasanasanta (Volt) wrote: > > I know there has to be a trick to this but... > > How do you ensure that one property is defined before another property is > defined? > > I have a property that reads a value from the registry > > And a second property that defines a directory based on the registry > property > > I want to make sure the reg property is defined before defining the > directory property or else my directory will point to the wrong place. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/defining-one-property-before-another-tp15625171p15625458.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users