static const WCHAR cszTargetDir[] = {'T','A','R','G','E','T','D','I','R',0};
static const WCHAR cszDatabase[]={'D','A','T','A','B','A','S','E',0};
-extern LPWSTR WINAPI PathBuildRootW( LPWSTR, int );
-extern BOOL WINAPI PathIsRelativeW( LPCWSTR );
-
LPWSTR build_icon_path(MSIPACKAGE *package, LPCWSTR icon_name )
{
LPWSTR SystemFolder, dest, FilePath;
path = build_directory_name( 3, p, f->TargetDefault, NULL );
clean_spaces_from_path( path );
f->ResolvedTarget = strdupW( path );
-
- if (path && PathIsRelativeW( path ))
- {
- WCHAR tmp[MAX_PATH];
-
- PathBuildRootW( tmp, 2 );
- lstrcatW( tmp, path );
- lstrcpyW( path, tmp );
- }
TRACE("target -> %s\n", debugstr_w(path));
if (set_prop)
msi_set_property( package->db, name, path );