msi: Resolve the target folder if necessary when building link filenames.
This commit is contained in:
parent
d7952d8a24
commit
9d68804379
|
@ -3518,7 +3518,17 @@ static WCHAR *get_link_file( MSIPACKAGE *package, MSIRECORD *row )
|
|||
|
||||
directory = MSI_RecordGetString( row, 2 );
|
||||
link_folder = msi_get_target_folder( package, directory );
|
||||
|
||||
if (!link_folder)
|
||||
{
|
||||
/* some installers use a separate root */
|
||||
MSIFOLDER *folder = msi_get_loaded_folder( package, directory );
|
||||
while (folder->Parent && strcmpW( folder->Parent, folder->Directory ))
|
||||
{
|
||||
folder = msi_get_loaded_folder( package, folder->Parent );
|
||||
}
|
||||
msi_resolve_target_folder( package, folder->Directory, TRUE );
|
||||
link_folder = msi_get_target_folder( package, directory );
|
||||
}
|
||||
/* may be needed because of a bug somewhere else */
|
||||
msi_create_full_path( link_folder );
|
||||
|
||||
|
|
Loading…
Reference in New Issue