Commit 781e19aa authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: OriginalDatabase is the fully-expanded path to the original package if the…

msi: OriginalDatabase is the fully-expanded path to the original package if the package is local and installed from the command line.
parent c777d309
......@@ -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;
......
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