msi: If the package is a URL, the OriginalDatabase property should be the URL and the DATABASE property should be the path to the local temporary package.

This commit is contained in:
James Hawkins 2008-01-05 13:44:30 -07:00 committed by Alexandre Julliard
parent 31c461ea5b
commit 4121c9bbc6
1 changed files with 6 additions and 1 deletions

View File

@ -932,7 +932,12 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
if( file != szPackage )
track_tempfile( package, file );
if( szPackage[0] != '#' )
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 );