SetProperty CustomAction to reassign a Property with the new values? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 06:28 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Reevaluating Dependent Properties
Hi All, Is it possible to reevaluate dependent properties in WiX? I am using WiX 3.0.3907.0. I have a property MYDIR that uses RegistrySearch to get an initial default value. <Property Id='MYDIR'> <RegistrySearch ... /> </Property> The dependent property MYDATAFILE uses the value of MYDIR. <Property Id='MYDATAFILE'> <DirectorySearch Id='SearchMyDir' Path='[MYDIR]'> <FileSearch Id='FindMyDataFile' Name='myData.txt' /> </DirectorySearch> </Property> The above works fine if it finds the myData.txt file in the directory specified in the registry search for MYDIR. My problem occurs when the user changes the MYDIR value through the WiXUI dialog boxes provided by my installer. The MYDIR property is attached to another property so that I can use it in the WiXUI dialog boxes. <Property Id='WIXUI_MYDIR' Value='MYDIR'/> In one of my WiXUI dialogs, I allow the user to select a different directory for MYDIR <Control Id='MyDir_Browse' Type='PushButton' ... > <Publish Event='SpawnDialog' Value='BrowseDlg'>1</Publish> <Publish Property='_BrowseProperty' Value='[WIXUI_MYDIR]'>1</Publish> </Control> The above works and I see the value of MYDIR change to what the user selected. However, I could not figure out a way to get MYDATAFILE to get reevaluated after MYDIR changes. Can someone tell me how to force MYDATAFILE to get reevaluated? Thanks in advance for any replies, Primo _________________________________________________________________ Get 5 GB of storage with Windows Live Hotmail. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users