[2/4] msi: Set the SystemComponent installation property if necessary.

Hans Leidekker hans at codeweavers.com
Mon May 30 02:28:14 CDT 2011


---
 dlls/msi/action.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 86a8c99..5f42d7c 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -4815,6 +4815,10 @@ static UINT msi_publish_install_properties(MSIPACKAGE *package, HKEY hkey)
         {'A','R','P','U','R','L','U','P','D','A','T','E','I','N','F','O',0};
     static const WCHAR szURLUpdateInfo[] =
         {'U','R','L','U','p','d','a','t','e','I','n','f','o',0};
+    static const WCHAR szARPSYSTEMCOMPONENT[] =
+        {'A','R','P','S','Y','S','T','E','M','C','O','M','P','O','N','E','N','T',0};
+    static const WCHAR szSystemComponent[] =
+        {'S','y','s','t','e','m','C','o','m','p','o','n','e','n','t',0};
 
     static const WCHAR *propval[] = {
         szARPAUTHORIZEDCDFPREFIX, szAuthorizedCDFPrefix,
@@ -4844,7 +4848,10 @@ static UINT msi_publish_install_properties(MSIPACKAGE *package, HKEY hkey)
     }
 
     msi_reg_set_val_dword(hkey, szWindowsInstaller, 1);
-
+    if (msi_get_property_int( package->db, szARPSYSTEMCOMPONENT, 0 ))
+    {
+        msi_reg_set_val_dword( hkey, szSystemComponent, 1 );
+    }
     size = deformat_string(package, modpath_fmt, &buffer);
     RegSetValueExW(hkey, szModifyPath, 0, REG_EXPAND_SZ, (LPBYTE)buffer, size);
     RegSetValueExW(hkey, szUninstallString, 0, REG_EXPAND_SZ, (LPBYTE)buffer, size);
-- 
1.7.4.1







More information about the wine-patches mailing list