Lines Matching refs:handle
118 string GetMsiProperty(MSIHANDLE handle, const string& sProperty) in GetMsiProperty() argument
124 if (MsiGetProperty(handle, sProperty.c_str(), szDummy, &nChars) == ERROR_MORE_DATA) in GetMsiProperty()
129 MsiGetProperty(handle, sProperty.c_str(), buffer, &nChars); in GetMsiProperty()
135 inline bool IsSetMsiProperty(MSIHANDLE handle, const string& sProperty) in IsSetMsiProperty() argument
137 return (GetMsiProperty(handle, sProperty).length() > 0); in IsSetMsiProperty()
140 inline void UnsetMsiProperty(MSIHANDLE handle, const string& sProperty) in UnsetMsiProperty() argument
142 MsiSetProperty(handle, sProperty.c_str(), NULL); in UnsetMsiProperty()
145 inline void SetMsiProperty(MSIHANDLE handle, const string& sProperty) in SetMsiProperty() argument
147 MsiSetProperty(handle, sProperty.c_str(), TEXT("1")); in SetMsiProperty()
176 extern "C" UINT __stdcall SetProductInstallMode(MSIHANDLE handle) in SetProductInstallMode() argument
178 string upgradeCode = GetMsiProperty(handle, TEXT("UpgradeCode")); in SetProductInstallMode()
186 upgradeCode) && IsSetMsiProperty(handle, TEXT("ALLUSERS"))) in SetProductInstallMode()
188 UnsetMsiProperty(handle, TEXT("ALLUSERS")); in SetProductInstallMode()
194 upgradeCode) && !IsSetMsiProperty(handle, TEXT("ALLUSERS"))) in SetProductInstallMode()
196 SetMsiProperty(handle, TEXT("ALLUSERS")); in SetProductInstallMode()