• Home
  • Raw
  • Download

Lines Matching refs:hr

271         HRESULT hr = S_OK;  in OnCommand()  local
284 hr = BalGetNumericVariable(L"InstallAllUsers", &installAllUsers); in OnCommand()
285 ExitOnFailure(hr, L"Failed to get install scope"); in OnCommand()
287 hr = _engine->SetVariableNumeric(L"CompileAll", installAllUsers); in OnCommand()
288 ExitOnFailure(hr, L"Failed to update CompileAll"); in OnCommand()
290 hr = EnsureTargetDir(); in OnCommand()
291 ExitOnFailure(hr, L"Failed to set TargetDir"); in OnCommand()
322 hr = EnsureTargetDir(); in OnCommand()
323 ExitOnFailure(hr, L"Failed to set TargetDir"); in OnCommand()
325 hr = BalGetStringVariable(L"TargetDir", &targetDir); in OnCommand()
326 if (SUCCEEDED(hr)) { in OnCommand()
362 hr = BalGetStringVariable( in OnCommand()
367 if (SUCCEEDED(hr) && defaultDir) { in OnCommand()
376 hr = BalGetStringVariable( in OnCommand()
380 …if (SUCCEEDED(hr) && defaultDir && defaultDir[0] && SUCCEEDED(BalFormatString(defaultDir, &formatt… in OnCommand()
472 HRESULT hr; in Custom2Page_Show() local
495 hr = BalGetStringVariable(L"TargetDir", &targetDir); in Custom2Page_Show()
496 if (SUCCEEDED(hr) && targetDir && targetDir[0]) { in Custom2Page_Show()
499 } else if (SUCCEEDED(hr)) { in Custom2Page_Show()
504 hr = BalGetStringVariable(L"DefaultCustomTargetDir", &defaultTargetDir); in Custom2Page_Show()
505 if (SUCCEEDED(hr) && defaultTargetDir && !defaultTargetDir[0]) { in Custom2Page_Show()
509 hr = BalGetStringVariable( in Custom2Page_Show()
514 if (SUCCEEDED(hr) && defaultTargetDir) { in Custom2Page_Show()
532 HRESULT hr = S_OK; in SuccessPage_Show() local
542 hr = LocGetString(_wixLoc, L"#(loc.SuccessInstallMessage)", &successText); in SuccessPage_Show()
545 hr = LocGetString(_wixLoc, L"#(loc.SuccessModifyMessage)", &successText); in SuccessPage_Show()
548 hr = LocGetString(_wixLoc, L"#(loc.SuccessRepairMessage)", &successText); in SuccessPage_Show()
551 hr = LocGetString(_wixLoc, L"#(loc.SuccessRemoveMessage)", &successText); in SuccessPage_Show()
653 HRESULT hr = BalGetStringVariable(L"TargetDir", &targetDir); in EnableMaxPathSupport() local
654 if (FAILED(hr) || !targetDir || !targetDir[0]) { in EnableMaxPathSupport()
682 HRESULT hr = S_OK; in OnStartup() local
688 ExitWithLastError(hr, "Failed to create UI thread."); in OnStartup()
692 return hr; in OnStartup()
723 …auto hr = LoadAssociateFilesStateFromKey(_engine, fPerMachine ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_… in OnDetectRelatedMsiPackage() local
724 if (hr == S_OK) { in OnDetectRelatedMsiPackage()
726 } else if (FAILED(hr)) { in OnDetectRelatedMsiPackage()
727 …BalLog(BOOTSTRAPPER_LOG_LEVEL_ERROR, "Failed to load AssociateFiles state: error code 0x%08X", hr); in OnDetectRelatedMsiPackage()
816 auto hr = LoadAssociateFilesStateFromKey(_engine, hkey); in OnDetectPackageComplete() local
817 if (hr == S_OK) { in OnDetectPackageComplete()
819 } else if (FAILED(hr)) { in OnDetectPackageComplete()
820 …BalLog(BOOTSTRAPPER_LOG_LEVEL_ERROR, "Failed to load AssociateFiles state: error code 0x%08X", hr); in OnDetectPackageComplete()
876 HRESULT hr = S_OK; in OnPlanPackageBegin() local
950 HRESULT hr = BalInfoFindPackageById(&_bundle.packages, wzPackageId, &pPackage); in OnCachePackageBegin() local
951 … LPCWSTR wz = (SUCCEEDED(hr) && pPackage->sczDisplayName) ? pPackage->sczDisplayName : wzPackageId; in OnCachePackageBegin()
1034 HRESULT hr = _engine->SendEmbeddedError(dwCode, wzError, dwUIHint, &nResult); in OnError() local
1035 if (FAILED(hr)) { in OnError()
1049 HRESULT hr = StrAllocFromError(&sczError, dwCode, nullptr); in OnError() local
1050 if (FAILED(hr) || !sczError || !*sczError) { in OnError()
1251 … HRESULT hr = _engine->SetLocalSource(wzPackageOrContainerId, wzPayloadId, ofn.lpstrFile); in OnResolveSource() local
1252 nResult = SUCCEEDED(hr) ? IDRETRY : IDERROR; in OnResolveSource()
1295 HRESULT hr = S_OK; in UiThreadProc() local
1302 hr = ::CoInitialize(nullptr); in UiThreadProc()
1303 BalExitOnFailure(hr, "Failed to initialize COM."); in UiThreadProc()
1306 hr = ThemeInitialize(pThis->_hModule); in UiThreadProc()
1307 BalExitOnFailure(hr, "Failed to initialize theme manager."); in UiThreadProc()
1309 hr = pThis->InitializeData(); in UiThreadProc()
1310 BalExitOnFailure(hr, "Failed to initialize data in bootstrapper application."); in UiThreadProc()
1314 hr = pThis->CreateMainWindow(); in UiThreadProc()
1315 BalExitOnFailure(hr, "Failed to create main window."); in UiThreadProc()
1320 pThis->SetState(PYBA_STATE_FAILED, hr); in UiThreadProc()
1324 pThis->SetState(PYBA_STATE_INITIALIZED, hr); in UiThreadProc()
1331 hr = E_UNEXPECTED; in UiThreadProc()
1332 BalExitOnFailure(hr, "Unexpected return value from message pump."); in UiThreadProc()
1342 hr = pThis->_hrFinal; in UiThreadProc()
1344 hr = HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT); in UiThreadProc()
1352 DWORD dwQuit = HRESULT_CODE(hr); in UiThreadProc()
1368 return hr; in UiThreadProc()
1376 HRESULT hr = S_OK; in ParseVariablesFromUnattendXml() local
1389 hr = BalFormatString(L"[WixBundleOriginalSourceFolder]unattend.xml", &sczUnattendXmlPath); in ParseVariablesFromUnattendXml()
1390 BalExitOnFailure(hr, "Failed to calculate path to unattend.xml"); in ParseVariablesFromUnattendXml()
1394 hr = S_FALSE; in ParseVariablesFromUnattendXml()
1398 hr = XmlLoadDocumentFromFile(sczUnattendXmlPath, &pixdUnattend); in ParseVariablesFromUnattendXml()
1399 BalExitOnFailure1(hr, "Failed to read %ls", sczUnattendXmlPath); in ParseVariablesFromUnattendXml()
1402 hr = XmlSelectNodes(pixdUnattend, L"/Options/Option", &pNodes); in ParseVariablesFromUnattendXml()
1403 if (S_FALSE == hr) { in ParseVariablesFromUnattendXml()
1404 ExitFunction1(hr = S_OK); in ParseVariablesFromUnattendXml()
1406 BalExitOnFailure(hr, "Failed to select option nodes."); in ParseVariablesFromUnattendXml()
1408 hr = pNodes->get_length((long*)&cNodes); in ParseVariablesFromUnattendXml()
1409 BalExitOnFailure(hr, "Failed to get option node count."); in ParseVariablesFromUnattendXml()
1414 hr = XmlNextElement(pNodes, &pNode, nullptr); in ParseVariablesFromUnattendXml()
1415 BalExitOnFailure(hr, "Failed to get next node."); in ParseVariablesFromUnattendXml()
1418 hr = XmlGetAttributeEx(pNode, L"Name", &scz); in ParseVariablesFromUnattendXml()
1419 BalExitOnFailure(hr, "Failed to get @Name."); in ParseVariablesFromUnattendXml()
1422 hr = XmlGetAttribute(pNode, L"Value", &bstrValue); in ParseVariablesFromUnattendXml()
1423 if (FAILED(hr) || !bstrValue || !*bstrValue) { in ParseVariablesFromUnattendXml()
1424 hr = XmlGetText(pNode, &bstrValue); in ParseVariablesFromUnattendXml()
1427 BalExitOnFailure(hr, "Failed to get @Value."); in ParseVariablesFromUnattendXml()
1454 return hr; in ParseVariablesFromUnattendXml()
1462 HRESULT hr = S_OK; in InitializeData() local
1466 hr = BalManifestLoad(_hModule, &pixdManifest); in InitializeData()
1467 BalExitOnFailure(hr, "Failed to load bootstrapper application manifest."); in InitializeData()
1469 hr = ParseOverridableVariablesFromXml(pixdManifest); in InitializeData()
1470 BalExitOnFailure(hr, "Failed to read overridable variables."); in InitializeData()
1476 hr = ParseVariablesFromUnattendXml(); in InitializeData()
1477 ExitOnFailure(hr, "Failed to read unattend.ini file."); in InitializeData()
1479 hr = ProcessCommandLine(&_language); in InitializeData()
1480 ExitOnFailure(hr, "Unknown commandline parameters."); in InitializeData()
1482 hr = PathRelativeToModule(&sczModulePath, nullptr, _hModule); in InitializeData()
1483 BalExitOnFailure(hr, "Failed to get module path."); in InitializeData()
1485 hr = LoadLocalization(sczModulePath, _language); in InitializeData()
1486 ExitOnFailure(hr, "Failed to load localization."); in InitializeData()
1488 hr = LoadTheme(sczModulePath, _language); in InitializeData()
1489 ExitOnFailure(hr, "Failed to load theme."); in InitializeData()
1491 hr = BalInfoParseFromXml(&_bundle, pixdManifest); in InitializeData()
1492 BalExitOnFailure(hr, "Failed to load bundle information."); in InitializeData()
1494 hr = BalConditionsParseFromXml(&_conditions, pixdManifest, _wixLoc); in InitializeData()
1495 BalExitOnFailure(hr, "Failed to load conditions from XML."); in InitializeData()
1497 hr = LoadBootstrapperBAFunctions(); in InitializeData()
1498 BalExitOnFailure(hr, "Failed to load bootstrapper functions."); in InitializeData()
1500 hr = UpdateUIStrings(_command.action); in InitializeData()
1501 BalExitOnFailure(hr, "Failed to load UI strings."); in InitializeData()
1509 return hr; in InitializeData()
1517 HRESULT hr = S_OK; in ProcessCommandLine() local
1525 ExitOnNullWithLastError(argv, hr, "Failed to get command line."); in ProcessCommandLine()
1531 hr = E_INVALIDARG; in ProcessCommandLine()
1532 BalExitOnFailure(hr, "Must specify a language."); in ProcessCommandLine()
1537 hr = StrAllocString(psczLanguage, &argv[i][0], 0); in ProcessCommandLine()
1538 BalExitOnFailure(hr, "Failed to copy language."); in ProcessCommandLine()
1546 hr = StrAllocString(&sczVariableName, argv[i], pwc - argv[i]); in ProcessCommandLine()
1547 BalExitOnFailure(hr, "Failed to copy variable name."); in ProcessCommandLine()
1549 hr = DictKeyExists(_overridableVariables, sczVariableName); in ProcessCommandLine()
1550 if (E_NOTFOUND == hr) { in ProcessCommandLine()
1552 hr = S_OK; in ProcessCommandLine()
1555 … ExitOnFailure(hr, "Failed to check the dictionary of overridable variables."); in ProcessCommandLine()
1557 hr = StrAllocString(&sczVariableValue, ++pwc, 0); in ProcessCommandLine()
1558 BalExitOnFailure(hr, "Failed to copy variable value."); in ProcessCommandLine()
1561 hr = _engine->SetVariableNumeric(sczVariableName, value); in ProcessCommandLine()
1563 hr = _engine->SetVariableString(sczVariableName, sczVariableValue); in ProcessCommandLine()
1565 BalExitOnFailure(hr, "Failed to set variable."); in ProcessCommandLine()
1581 return hr; in ProcessCommandLine()
1585 HRESULT hr = S_OK; in LoadLocalization() local
1589 hr = LocProbeForFile(wzModulePath, wzLocFileName, wzLanguage, &sczLocPath); in LoadLocalization()
1590 …BalExitOnFailure2(hr, "Failed to probe for loc file: %ls in path: %ls", wzLocFileName, wzModulePat… in LoadLocalization()
1592 hr = LocLoadFromFile(sczLocPath, &_wixLoc); in LoadLocalization()
1593 BalExitOnFailure1(hr, "Failed to load loc file from path: %ls", sczLocPath); in LoadLocalization()
1599 hr = StrAllocString(&_confirmCloseMessage, L"#(loc.ConfirmCancelMessage)", 0); in LoadLocalization()
1600 ExitOnFailure(hr, "Failed to initialize confirm message loc identifier."); in LoadLocalization()
1602 hr = LocLocalizeString(_wixLoc, &_confirmCloseMessage); in LoadLocalization()
1603 … BalExitOnFailure1(hr, "Failed to localize confirm close message: %ls", _confirmCloseMessage); in LoadLocalization()
1608 return hr; in LoadLocalization()
1613 HRESULT hr = S_OK; in LoadTheme() local
1618 hr = LocProbeForFile(wzModulePath, wzThemeFileName, wzLanguage, &sczThemePath); in LoadTheme()
1619 …BalExitOnFailure2(hr, "Failed to probe for theme file: %ls in path: %ls", wzThemeFileName, wzModul… in LoadTheme()
1621 hr = ThemeLoadFromFile(sczThemePath, &_theme); in LoadTheme()
1622 BalExitOnFailure1(hr, "Failed to load theme from path: %ls", sczThemePath); in LoadTheme()
1624 hr = ThemeLocalize(_theme, _wixLoc); in LoadTheme()
1625 BalExitOnFailure1(hr, "Failed to localize theme: %ls", sczThemePath); in LoadTheme()
1631 hr = BalFormatString(_theme->sczCaption, &sczCaption); in LoadTheme()
1632 if (SUCCEEDED(hr)) { in LoadTheme()
1640 return hr; in LoadTheme()
1645 HRESULT hr = S_OK; in ParseOverridableVariablesFromXml() local
1653hr = XmlSelectNodes(pixdManifest, L"/BootstrapperApplicationData/WixStdbaOverridableVariable", &pN… in ParseOverridableVariablesFromXml()
1654 if (S_FALSE == hr) { in ParseOverridableVariablesFromXml()
1655 ExitFunction1(hr = S_OK); in ParseOverridableVariablesFromXml()
1657 ExitOnFailure(hr, "Failed to select overridable variable nodes."); in ParseOverridableVariablesFromXml()
1659 hr = pNodes->get_length((long*)&cNodes); in ParseOverridableVariablesFromXml()
1660 ExitOnFailure(hr, "Failed to get overridable variable node count."); in ParseOverridableVariablesFromXml()
1663 hr = DictCreateStringList(&_overridableVariables, 32, DICT_FLAG_NONE); in ParseOverridableVariablesFromXml()
1664 ExitOnFailure(hr, "Failed to create the string dictionary."); in ParseOverridableVariablesFromXml()
1667 hr = XmlNextElement(pNodes, &pNode, nullptr); in ParseOverridableVariablesFromXml()
1668 ExitOnFailure(hr, "Failed to get next node."); in ParseOverridableVariablesFromXml()
1671 hr = XmlGetAttributeEx(pNode, L"Name", &scz); in ParseOverridableVariablesFromXml()
1672 ExitOnFailure(hr, "Failed to get @Name."); in ParseOverridableVariablesFromXml()
1674 hr = XmlGetYesNoAttribute(pNode, L"Hidden", &hidden); in ParseOverridableVariablesFromXml()
1677 hr = DictAddKey(_overridableVariables, scz); in ParseOverridableVariablesFromXml()
1678 ExitOnFailure1(hr, "Failed to add \"%ls\" to the string dictionary.", scz); in ParseOverridableVariablesFromXml()
1690 return hr; in ParseOverridableVariablesFromXml()
1698 HRESULT hr = S_OK; in GetBundleFileVersion() local
1702 hr = PathForCurrentProcess(&sczCurrentPath, nullptr); in GetBundleFileVersion()
1703 BalExitOnFailure(hr, "Failed to get bundle path."); in GetBundleFileVersion()
1705 hr = FileVersion(sczCurrentPath, &uliVersion.HighPart, &uliVersion.LowPart); in GetBundleFileVersion()
1706 BalExitOnFailure(hr, "Failed to get bundle file version."); in GetBundleFileVersion()
1708 hr = _engine->SetVariableVersion(PYBA_VARIABLE_BUNDLE_FILE_VERSION, uliVersion.QuadPart); in GetBundleFileVersion()
1709 BalExitOnFailure(hr, "Failed to set WixBundleFileVersion variable."); in GetBundleFileVersion()
1714 return hr; in GetBundleFileVersion()
1722 HRESULT hr = S_OK; in CreateMainWindow() local
1762 ExitWithLastError(hr, "Failed to register window."); in CreateMainWindow()
1804 ExitOnNullWithLastError(_hWnd, hr, "Failed to create window."); in CreateMainWindow()
1806 hr = S_OK; in CreateMainWindow()
1809 return hr; in CreateMainWindow()
1817 HRESULT hr = S_OK; in InitializeTaskbarButton() local
1819hr = ::CoCreateInstance(CLSID_TaskbarList, nullptr, CLSCTX_ALL, __uuidof(ITaskbarList3), reinterpr… in InitializeTaskbarButton()
1820 if (REGDB_E_CLASSNOTREG == hr) { in InitializeTaskbarButton()
1822 ExitFunction1(hr = S_OK); in InitializeTaskbarButton()
1824 BalExitOnFailure(hr, "Failed to create ITaskbarList3. Continuing."); in InitializeTaskbarButton()
1827 …BalExitOnNullWithLastError(_taskbarButtonCreatedMessage, hr, "Failed to get TaskbarButtonCreated m… in InitializeTaskbarButton()
1992 HRESULT hr = S_OK; in OnCreate() local
1994 hr = ThemeLoadControls(_theme, hWnd, CONTROL_ID_NAMES, countof(CONTROL_ID_NAMES)); in OnCreate()
1995 BalExitOnFailure(hr, "Failed to load theme controls."); in OnCreate()
2023 return SUCCEEDED(hr); in OnCreate()
2099 HRESULT hr = S_OK; in OnDetect() local
2103 hr = _baFunction->OnDetect(); in OnDetect()
2104 BalExitOnFailure(hr, "Failed calling detect BA function."); in OnDetect()
2107 SetState(PYBA_STATE_DETECTING, hr); in OnDetect()
2117 hr = _engine->Detect(); in OnDetect()
2118 BalExitOnFailure(hr, "Failed to start detecting chain."); in OnDetect()
2121 if (FAILED(hr)) { in OnDetect()
2122 SetState(PYBA_STATE_DETECTING, hr); in OnDetect()
2129 HRESULT hr = S_OK; in UpdateUIStrings() local
2156 hr = StrAllocFormatted(&locName, L"#(loc.%ls)", likeInstalling); in UpdateUIStrings()
2157 if (SUCCEEDED(hr)) { in UpdateUIStrings()
2158 hr = LocGetString(_wixLoc, locName, &locText); in UpdateUIStrings()
2163 SUCCEEDED(hr) && locText ? locText->wzText : likeInstalling in UpdateUIStrings()
2170 hr = StrAllocFormatted(&locName, L"#(loc.%ls)", likeInstallation); in UpdateUIStrings()
2171 if (SUCCEEDED(hr)) { in UpdateUIStrings()
2172 hr = LocGetString(_wixLoc, locName, &locText); in UpdateUIStrings()
2177 SUCCEEDED(hr) && locText ? locText->wzText : likeInstallation in UpdateUIStrings()
2180 return hr; in UpdateUIStrings()
2187 HRESULT hr = S_OK; in OnPlan() local
2191 hr = UpdateUIStrings(action); in OnPlan()
2192 BalExitOnFailure(hr, "Failed to update strings"); in OnPlan()
2199 hr = HRESULT_FROM_WIN32(ERROR_PRODUCT_VERSION); in OnPlan()
2200 BalExitOnFailure(hr, "Cannot install a product when a newer version is installed."); in OnPlan()
2204 SetState(PYBA_STATE_PLANNING, hr); in OnPlan()
2211 hr = _engine->Plan(action); in OnPlan()
2212 BalExitOnFailure(hr, "Failed to start planning packages."); in OnPlan()
2215 if (FAILED(hr)) { in OnPlan()
2216 SetState(PYBA_STATE_PLANNING, hr); in OnPlan()
2227 HRESULT hr = S_OK; in OnApply() local
2229 SetState(PYBA_STATE_APPLYING, hr); in OnApply()
2230 SetProgressState(hr); in OnApply()
2233 hr = _engine->Apply(_hWnd); in OnApply()
2234 BalExitOnFailure(hr, "Failed to start applying packages."); in OnApply()
2239 if (FAILED(hr)) { in OnApply()
2240 SetState(PYBA_STATE_APPLYING, hr); in OnApply()
2303 HRESULT hr = BalGetNumericVariable(pControl->sczName, &llValue); in ProcessPageControls() local
2306 if (!SUCCEEDED(hr)) { in ProcessPageControls()
2313 SUCCEEDED(hr) && llValue ? BST_CHECKED : BST_UNCHECKED, in ProcessPageControls()
2321 HRESULT hr = StrAllocFormatted(&controlName, L"%lsState", pControl->sczName); in ProcessPageControls() local
2322 if (SUCCEEDED(hr)) { in ProcessPageControls()
2324 hr = BalGetStringVariable(controlName, &controlState); in ProcessPageControls()
2325 if (SUCCEEDED(hr) && controlState && *controlState) { in ProcessPageControls()
2356 hr = StrAllocFormatted(&controlName, L"#(loc.%lsNote)", pControl->sczName); in ProcessPageControls()
2357 if (SUCCEEDED(hr)) { in ProcessPageControls()
2359 hr = LocGetString(_wixLoc, controlName, &locText); in ProcessPageControls()
2360 if (SUCCEEDED(hr) && locText && locText->wzText && locText->wzText[0]) { in ProcessPageControls()
2362 hr = BalFormatString(locText->wzText, &text); in ProcessPageControls()
2363 if (SUCCEEDED(hr) && text && text[0]) { in ProcessPageControls()
2372 hr = S_OK; in ProcessPageControls()
2385 HRESULT hr = BalFormatString(pControl->sczText, &text); in ProcessPageControls() local
2386 if (SUCCEEDED(hr)) { in ProcessPageControls()
2451 HRESULT hr = S_OK; in OnClickLogFileLink() local
2454 hr = BalGetStringVariable(_bundle.sczLogVariable, &sczLogFile); in OnClickLogFileLink()
2455 BalExitOnFailure1(hr, "Failed to get log file variable '%ls'.", _bundle.sczLogVariable); in OnClickLogFileLink()
2457 hr = ShelExec(L"notepad.exe", sczLogFile, L"open", nullptr, SW_SHOWDEFAULT, _hWnd, nullptr); in OnClickLogFileLink()
2458 BalExitOnFailure1(hr, "Failed to open log file target: %ls", sczLogFile); in OnClickLogFileLink()
2656 HRESULT hr = S_OK; in EvaluateConditions() local
2662 hr = BalConditionEvaluate(pCondition, _engine, &result, &_failedMessage); in EvaluateConditions()
2663 BalExitOnFailure(hr, "Failed to evaluate condition."); in EvaluateConditions()
2669 hr = E_WIXSTDBA_CONDITION_FAILED; in EvaluateConditions()
2671 … BalExitOnFailure1(hr, "Bundle condition evaluated to false: %ls", pCondition->sczCondition); in EvaluateConditions()
2678 return hr; in EvaluateConditions()
2683 HRESULT hr = S_OK; in SetTaskbarButtonProgress() local
2686 hr = _taskbarList->SetProgressValue(_hWnd, dwOverallPercentage, 100UL); in SetTaskbarButtonProgress()
2687 … BalExitOnFailure1(hr, "Failed to set taskbar button progress to: %d%%.", dwOverallPercentage); in SetTaskbarButtonProgress()
2696 HRESULT hr = S_OK; in SetTaskbarButtonState() local
2699 hr = _taskbarList->SetProgressState(_hWnd, tbpFlags); in SetTaskbarButtonState()
2700 BalExitOnFailure1(hr, "Failed to set taskbar button state.", tbpFlags); in SetTaskbarButtonState()
2722 HRESULT hr = S_OK; in LoadBootstrapperBAFunctions() local
2725 hr = PathRelativeToModule(&sczBafPath, L"bafunctions.dll", _hModule); in LoadBootstrapperBAFunctions()
2726 BalExitOnFailure(hr, "Failed to get path to BA function DLL."); in LoadBootstrapperBAFunctions()
2735 …BalExitOnNullWithLastError1(pfnBAFunctionCreate, hr, "Failed to get CreateBootstrapperBAFunction e… in LoadBootstrapperBAFunctions()
2737 hr = pfnBAFunctionCreate(_engine, _hBAFModule, &_baFunction); in LoadBootstrapperBAFunctions()
2738 BalExitOnFailure(hr, "Failed to create BA function."); in LoadBootstrapperBAFunctions()
2753 return hr; in LoadBootstrapperBAFunctions()
2888 HRESULT hr; in LoadAssociateFilesStateFromKey() local
2901 hr = S_FALSE; in LoadAssociateFilesStateFromKey()
2903 hr = S_OK; in LoadAssociateFilesStateFromKey()
2905 hr = HRESULT_FROM_WIN32(res); in LoadAssociateFilesStateFromKey()
2909 return hr; in LoadAssociateFilesStateFromKey()
2916 HRESULT hr; in LoadOptionalFeatureStates() local
2929 hr = pEngine->GetVariableString(L"OptionalFeaturesRegistryKey", subkeyFmt, &subkeyLen); in LoadOptionalFeatureStates()
2930 BalExitOnFailure(hr, "Failed to locate registry key"); in LoadOptionalFeatureStates()
2932 hr = pEngine->FormatString(subkeyFmt, subkey, &subkeyLen); in LoadOptionalFeatureStates()
2933 BalExitOnFailure1(hr, "Failed to format %ls", subkeyFmt); in LoadOptionalFeatureStates()
2937 hr = LoadOptionalFeatureStatesFromKey(pEngine, hkHive, subkey); in LoadOptionalFeatureStates()
2938 BalExitOnFailure1(hr, "Failed to read from HKCU\\%ls", subkey); in LoadOptionalFeatureStates()
2939 if (hr == S_FALSE) { in LoadOptionalFeatureStates()
2942 hr = LoadOptionalFeatureStatesFromKey(pEngine, hkHive, subkey); in LoadOptionalFeatureStates()
2943 BalExitOnFailure1(hr, "Failed to read from HKLM\\%ls", subkey); in LoadOptionalFeatureStates()
2944 if (hr == S_OK) { in LoadOptionalFeatureStates()
2951 if (hr == S_OK) { in LoadOptionalFeatureStates()
2961 hr = pEngine->GetVariableString(L"TargetDirRegistryKey", subkeyFmt, &subkeyLen); in LoadOptionalFeatureStates()
2962 BalExitOnFailure(hr, "Failed to locate registry key"); in LoadOptionalFeatureStates()
2964 hr = pEngine->FormatString(subkeyFmt, subkey, &subkeyLen); in LoadOptionalFeatureStates()
2965 BalExitOnFailure1(hr, "Failed to format %ls", subkeyFmt); in LoadOptionalFeatureStates()
2976 HRESULT hr = BalGetStringVariable(L"TargetDir", &targetDir); in EnsureTargetDir() local
2977 if (FAILED(hr) || !targetDir || !targetDir[0]) { in EnsureTargetDir()
2981 hr = BalGetNumericVariable(L"InstallAllUsers", &installAllUsers); in EnsureTargetDir()
2982 ExitOnFailure(hr, L"Failed to get install scope"); in EnsureTargetDir()
2984 hr = BalGetStringVariable( in EnsureTargetDir()
2988 BalExitOnFailure(hr, "Failed to get the default install directory"); in EnsureTargetDir()
2994 hr = BalFormatString(defaultDir, &targetDir); in EnsureTargetDir()
2995 BalExitOnFailure1(hr, "Failed to format '%ls'", defaultDir); in EnsureTargetDir()
2997 hr = _engine->SetVariableString(L"TargetDir", targetDir); in EnsureTargetDir()
2998 BalExitOnFailure(hr, "Failed to set install target directory"); in EnsureTargetDir()
3003 return hr; in EnsureTargetDir()
3065 HRESULT hr = BalGetNumericVariable(L"WixBundleInstalled", &llInstalled); in PythonBootstrapperApplication() local
3066 …if (SUCCEEDED(hr) && BOOTSTRAPPER_RESUME_TYPE_REBOOT != _command.resumeType && 0 < llInstalled && … in PythonBootstrapperApplication()
3081 … HRESULT hr = BalGetStringVariable(L"WixBundleForcedRestartPackage", &_nextPackageAfterRestart); in PythonBootstrapperApplication() local
3082 if (FAILED(hr) || !_nextPackageAfterRestart || !*_nextPackageAfterRestart) { in PythonBootstrapperApplication()
3225 HRESULT hr = S_OK; in CreateBootstrapperApplication() local
3228 hr = E_INVALIDARG; in CreateBootstrapperApplication()
3229 ExitWithLastError(hr, "Failed to create UI thread."); in CreateBootstrapperApplication()
3235 …ExitOnNull(pApplication, hr, E_OUTOFMEMORY, "Failed to create new standard bootstrapper applicatio… in CreateBootstrapperApplication()
3242 return hr; in CreateBootstrapperApplication()