Commit 9d688043 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Resolve the target folder if necessary when building link filenames.

parent d7952d8a
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment