Lines Matching refs:handle

72 static std::_tstring GetMsiProperty( MSIHANDLE handle, const std::_tstring& sProperty )  in GetMsiProperty()  argument
78 if ( MsiGetProperty( handle, sProperty.c_str(), szDummy, &nChars ) == ERROR_MORE_DATA ) in GetMsiProperty()
83 MsiGetProperty(handle, sProperty.c_str(), buffer, &nChars); in GetMsiProperty()
159 static inline bool IsSetMsiProperty(MSIHANDLE handle, const std::_tstring& sProperty) in IsSetMsiProperty() argument
161 std::_tstring value = GetMsiProperty(handle, sProperty); in IsSetMsiProperty()
165 static inline void UnsetMsiProperty(MSIHANDLE handle, const std::_tstring& sProperty) in UnsetMsiProperty() argument
167 MsiSetProperty(handle, sProperty.c_str(), NULL); in UnsetMsiProperty()
170 static inline void SetMsiProperty(MSIHANDLE handle, const std::_tstring& sProperty) in SetMsiProperty() argument
172 MsiSetProperty(handle, sProperty.c_str(), TEXT("1")); in SetMsiProperty()
540 extern "C" UINT __stdcall InstallPatchedFiles( MSIHANDLE handle ) in InstallPatchedFiles() argument
542 std::_tstring sInstDir = GetMsiProperty( handle, TEXT("INSTALLLOCATION") ); in InstallPatchedFiles()
597 extern "C" UINT __stdcall UninstallPatchedFiles( MSIHANDLE handle ) in UninstallPatchedFiles() argument
605 std::_tstring sProductKey = GetMsiProperty( handle, TEXT("FINDPRODUCT") ); in UninstallPatchedFiles()
678 extern "C" UINT __stdcall IsOfficeRunning( MSIHANDLE handle ) in IsOfficeRunning() argument
680 std::_tstring sInstDir = GetMsiProperty( handle, TEXT("INSTALLLOCATION") ); in IsOfficeRunning()
708 MsiSetProperty(handle, TEXT("OFFICERUNS"), TEXT("1")); in IsOfficeRunning()
719 extern "C" UINT __stdcall SetFeatureState( MSIHANDLE handle ) in SetFeatureState() argument
725 std::_tstring sInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION")); in SetFeatureState()
759 if ( IsSetMsiProperty(handle, TEXT("ALLUSERS")) ) in SetFeatureState()
804 if ( IsSetMsiProperty(handle, sValueName) ) in SetFeatureState()
809 … MsiSetFeatureState(handle,sValueName.c_str(),INSTALLSTATE_ABSENT); // do not install this feature in SetFeatureState()
815 MsiSetFeatureState(handle,sValueName.c_str(),INSTALLSTATE_LOCAL); // do install this feature in SetFeatureState()
832 extern "C" UINT __stdcall SetNewFeatureState( MSIHANDLE handle ) in SetNewFeatureState() argument
839 if (IsSetMsiProperty(handle, TEXT("SELECT_OU_FEATURE"))) in SetNewFeatureState()
841 MsiSetFeatureState(handle,sValueName.c_str(),INSTALLSTATE_LOCAL); // do install this feature in SetNewFeatureState()
847 … MsiSetFeatureState(handle,sValueName.c_str(),INSTALLSTATE_ABSENT); // do not install this feature in SetNewFeatureState()
855 extern "C" UINT __stdcall ShowOnlineUpdateDialog( MSIHANDLE handle ) in ShowOnlineUpdateDialog() argument
861 std::_tstring sInstDir = GetMsiProperty( handle, TEXT("INSTALLLOCATION") ); in ShowOnlineUpdateDialog()
876 UnsetMsiProperty(handle, TEXT("SHOW_ONLINEUPDATE_DIALOG")); in ShowOnlineUpdateDialog()
883 SetMsiProperty(handle, TEXT("SELECT_OU_FEATURE")); in ShowOnlineUpdateDialog()
893 SetMsiProperty(handle, TEXT("SHOW_ONLINEUPDATE_DIALOG")); in ShowOnlineUpdateDialog()