Worked like a charm! -----Original Message----- From: Eitan Behar [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 10:00 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Calculate Directory path into Property value
Hi Dave, After CostFinalize, you can use the Directory ID as a property and use the resolved path: See the log file: Action start 16:57:43: CostFinalize. ... MSI (c) (7C:54) [16:57:43:756]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'C:\'. ... MSI (c) (7C:54) [16:57:43:772]: Target path resolution complete. Dumping Directory table... MSI (c) (7C:54) [16:57:43:772]: Note: target paths subject to change (via custom actions or browsing) MSI (c) (7C:54) [16:57:43:772]: Dir (target): Key: TARGETDIR , Object: C:\ MSI (c) (7C:54) [16:57:43:772]: Dir (target): Key: WindowsFolder , Object: C:\WINDOWS\ MSI (c) (7C:54) [16:57:43:772]: Dir (target): Key: CommonFilesFolder , Object: C:\Program Files\Common Files\ MSI (c) (7C:54) [16:57:43:772]: Dir (target): Key: ProgramFilesFolder , Object: C:\Program Files\ MSI (c) (7C:54) [16:57:43:772]: Dir (target): Key: INSTALLDIR , Object: C:\Program Files\product\ MSI (c) (7C:54) [16:57:43:772]: Dir (target): Key: DBM_SERVICES_DIR , Object: C:\Program Files\product\Services\ MSI (c) (7C:54) [16:57:43:772]: PROPERTY CHANGE: Adding INSTALLLEVEL property. Its value is '1'. Action ended 16:57:43: CostFinalize. Return value 1. On Thu, Nov 20, 2008 at 4:34 PM, David Terrell <[EMAIL PROTECTED]>wrote: > As the subject implies, I would like to know if there's a way to get the > calculated path of a Directory element somehow, either into a Property > value or otherwise for use elsewhere in the script? I've looked into > the SetProperty action, but it appears that doesn't cross boundaries > between directory and property. > > > > Thanks, > > -Dave T. > > > This electronic mail message and any attached files > contain information intended only for the individual > or entity to which it is addressed and may contain > information that is proprietary, privileged, confidential > and/or exempt from disclosure under applicable law. > Any use, distribution, copying or disclosure by any other > person is strictly prohibited. If you have received this > transmission in error, please notify the sender by an > electronic mail message to the original sender. > ------------------------------------------------------------------------ - > 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 This electronic mail message and any attached files contain information intended only for the individual or entity to which it is addressed and may contain information that is proprietary, privileged, confidential and/or exempt from disclosure under applicable law. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender by an electronic mail message to the original sender. ------------------------------------------------------------------------- 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