Sorry, didn't have time to do anything with DTF yet, but from the MSI point of 
view you need to use formatted 
(http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx) value.  
Depending on what exactly you need - file path or folder path, you use either 
[#filekey] or [$componentkey].  Keep in mind that their value will be set only 
after costing is done (your custom action is invoked after CostFinalize).
To get the value of formatted data you use the following (MSI API pseudo code):

PMSIHANDLE hRecord = MsiCreateRecord(1);
MsiRecordSetString(hRecord, 0, _T("[#filekey]");
TCHAR buf[MAX_PATH];
DWORD len;
MsiFormatRecord(hInstall, hRecord, buf, &len);


Regards,
Alex Shevchuk



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Berkovich
Sent: Tuesday, July 22, 2008 5:07 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Recognize final localtion of file by file identifier

Hi,
  I am writing some custom action by using DTF. I have id of file from
"File" table.
The question is:
    How I can know what is the final location of this file after intall.


Thanks for advance,
  Dima

-------------------------------------------------------------------------
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

Reply via email to