Module: wine Branch: master Commit: 4121c9bbc66cb8ae76e46a763c3ab900d7da3f0f URL: http://source.winehq.org/git/wine.git/?a=commit;h=4121c9bbc66cb8ae76e46a763c...
Author: James Hawkins truiken@gmail.com Date: Sat Jan 5 13:44:30 2008 -0700
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.
---
dlls/msi/package.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c index a448214..d4d0262 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -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 );