Lines Matching refs:handle
29 bool GetMsiProp(MSIHANDLE handle, LPCTSTR name, /*out*/std::wstring& value) in GetMsiProp() argument
33 if (MsiGetProperty(handle, name, dummy, &sz) == ERROR_MORE_DATA) in GetMsiProp()
39 MsiGetProperty(handle, name, buff, &sz); in GetMsiProp()
46 void SetMsiProp(MSIHANDLE handle, LPCTSTR name) in SetMsiProp() argument
48 MsiSetProperty(handle, name, TEXT("1")); in SetMsiProp()
51 void UnsetMsiProp(MSIHANDLE handle, LPCTSTR name) in UnsetMsiProp() argument
53 MsiSetProperty(handle, name, TEXT("")); in UnsetMsiProp()
56 bool IsSetMsiProp(MSIHANDLE handle, LPCTSTR name) in IsSetMsiProp() argument
59 GetMsiProp(handle, name, val); in IsSetMsiProp()
63 bool IsMsiPropNotEmpty(MSIHANDLE handle, LPCTSTR name) in IsMsiPropNotEmpty() argument
66 GetMsiProp(handle, name, val); in IsMsiPropNotEmpty()
70 bool IsAllUserInstallation(MSIHANDLE handle) in IsAllUserInstallation() argument
72 return IsSetMsiProp(handle, TEXT("ALLUSERS")); in IsAllUserInstallation()
75 std::wstring GetOfficeInstallationPath(MSIHANDLE handle) in GetOfficeInstallationPath() argument
78 GetMsiProp(handle, TEXT("INSTALLLOCATION"), progpath); in GetOfficeInstallationPath()
82 std::wstring GetOfficeExecutablePath(MSIHANDLE handle) in GetOfficeExecutablePath() argument
84 std::wstring exepath = GetOfficeInstallationPath(handle); in GetOfficeExecutablePath()
89 std::wstring GetProductName(MSIHANDLE handle) in GetProductName() argument
92 GetMsiProp(handle, TEXT("ProductName"), prodname); in GetProductName()
96 bool IsModuleInstalled(MSIHANDLE handle, LPCTSTR name) in IsModuleInstalled() argument
100 MsiGetFeatureState(handle, name, ¤t_state, &future_state); in IsModuleInstalled()
104 bool IsModuleSelectedForInstallation(MSIHANDLE handle, LPCTSTR name) in IsModuleSelectedForInstallation() argument
108 MsiGetFeatureState(handle, name, ¤t_state, &future_state); in IsModuleSelectedForInstallation()
112 bool IsModuleSelectedForDeinstallation(MSIHANDLE handle, LPCTSTR name) in IsModuleSelectedForDeinstallation() argument
116 MsiGetFeatureState(handle, name, ¤t_state, &future_state); in IsModuleSelectedForDeinstallation()
120 bool IsCompleteDeinstallation(MSIHANDLE handle) in IsCompleteDeinstallation() argument
123 GetMsiProp(handle, TEXT("REMOVE"), rm); in IsCompleteDeinstallation()