Lines Matching refs:hMSI
147 BOOL GetMsiProp( MSIHANDLE hMSI, const wchar_t* pPropName, wchar_t** ppValue ) in GetMsiProp() argument
150 if ( MsiGetProperty( hMSI, pPropName, L"", &sz ) == ERROR_MORE_DATA ) in GetMsiProp()
156 MsiGetProperty( hMSI, pPropName, buff, &sz ); in GetMsiProp()
166 BOOL GetActiveXControlPath( MSIHANDLE hMSI, char** ppActiveXPath ) in GetActiveXControlPath() argument
169 if ( GetMsiProp( hMSI, L"INSTALLLOCATION", &pProgPath ) && pProgPath ) in GetActiveXControlPath()
197 BOOL GetDelta( MSIHANDLE hMSI, int& nOldInstallMode, int& nInstallMode, int& nDeinstallMode ) in GetDelta() argument
207 if ( ERROR_SUCCESS == MsiGetFeatureState( hMSI, L"gm_p_Wrt_Bin", ¤t_state, &future_state ) ) in GetDelta()
229 if ( ERROR_SUCCESS == MsiGetFeatureState( hMSI, L"gm_p_Calc_Bin", ¤t_state, &future_state ) ) in GetDelta()
251 if ( ERROR_SUCCESS == MsiGetFeatureState( hMSI, L"gm_p_Draw_Bin", ¤t_state, &future_state ) ) in GetDelta()
268 …if ( ERROR_SUCCESS == MsiGetFeatureState( hMSI, L"gm_p_Impress_Bin", ¤t_state, &future_state… in GetDelta()
285 if ( ERROR_SUCCESS == MsiGetFeatureState( hMSI, L"gm_p_Math_Bin", ¤t_state, &future_state ) ) in GetDelta()
306 BOOL MakeInstallForAllUsers( MSIHANDLE hMSI ) in MakeInstallForAllUsers() argument
310 if ( GetMsiProp( hMSI, L"ALLUSERS", &pVal ) && pVal ) in MakeInstallForAllUsers()
320 BOOL MakeInstallFor64Bit( MSIHANDLE hMSI ) in MakeInstallFor64Bit() argument
324 if ( GetMsiProp( hMSI, L"VersionNT64", &pVal ) && pVal ) in MakeInstallFor64Bit()
333 extern "C" UINT __stdcall InstallActiveXControl( MSIHANDLE hMSI ) in InstallActiveXControl() argument
346 …if ( ERROR_SUCCESS == MsiGetFeatureState( hMSI, L"gm_o_Activexcontrol", ¤t_state, &future_st… in InstallActiveXControl()
352 BOOL bInstallForAllUser = MakeInstallForAllUsers( hMSI ); in InstallActiveXControl()
353 BOOL bInstallFor64Bit = MakeInstallFor64Bit( hMSI ); in InstallActiveXControl()
356 if ( GetActiveXControlPath( hMSI, &pActiveXPath ) && pActiveXPath in InstallActiveXControl()
357 && GetDelta( hMSI, nOldInstallMode, nInstallMode, nDeinstallMode ) ) in InstallActiveXControl()
400 extern "C" UINT __stdcall DeinstallActiveXControl( MSIHANDLE hMSI ) in DeinstallActiveXControl() argument
409 …if ( ERROR_SUCCESS == MsiGetFeatureState( hMSI, L"gm_o_Activexcontrol", ¤t_state, &future_st… in DeinstallActiveXControl()
412 …if ( current_state == INSTALLSTATE_LOCAL && GetActiveXControlPath( hMSI, &pActiveXPath ) && pActiv… in DeinstallActiveXControl()
414 BOOL bInstallForAllUser = MakeInstallForAllUsers( hMSI ); in DeinstallActiveXControl()
415 BOOL bInstallFor64Bit = MakeInstallFor64Bit( hMSI ); in DeinstallActiveXControl()