msi: OriginalDatabase is the fully-expanded path to the original package if the package is local and installed from the command line.

This commit is contained in:
James Hawkins 2008-01-05 13:46:00 -07:00 committed by Alexandre Julliard
parent c777d3095a
commit 781e19aa4c

View file

@ -932,20 +932,18 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
if( file != szPackage )
track_tempfile( package, file );
MSI_SetPropertyW( package, Database, db->path );
if( UrlIsW( szPackage, URLIS_URL ) )
{
MSI_SetPropertyW( package, OriginalDatabase, szPackage );
MSI_SetPropertyW( package, Database, db->path );
}
else if( szPackage[0] != '#' )
{
MSI_SetPropertyW( package, OriginalDatabase, szPackage );
MSI_SetPropertyW( package, Database, szPackage );
}
else if( szPackage[0] == '#' )
MSI_SetPropertyW( package, OriginalDatabase, db->path );
else
{
MSI_SetPropertyW( package, OriginalDatabase, db->path );
MSI_SetPropertyW( package, Database, db->path );
WCHAR fullpath[MAX_PATH];
GetFullPathNameW( szPackage, MAX_PATH, fullpath, NULL );
MSI_SetPropertyW( package, OriginalDatabase, fullpath );
}
*pPackage = package;