diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-12-03 10:45:24 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-12-03 11:11:07 -0600 |
commit | 00a9ec2a445e482deaeea7d85dcb2b9f7d93e55d (patch) | |
tree | 5a84498f272ede0fead2ba797900bb843d14307f /src | |
parent | 225dbc5549bbb1b74d7e234ed90a5dbb11f15ccf (diff) | |
download | wix-00a9ec2a445e482deaeea7d85dcb2b9f7d93e55d.tar.gz wix-00a9ec2a445e482deaeea7d85dcb2b9f7d93e55d.tar.bz2 wix-00a9ec2a445e482deaeea7d85dcb2b9f7d93e55d.zip |
WIXFEAT:4626 - Display progress for pausing updates and creating SRP
Diffstat (limited to 'src')
-rw-r--r-- | src/wixstdba/WixStandardBootstrapperApplication.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/wixstdba/WixStandardBootstrapperApplication.cpp b/src/wixstdba/WixStandardBootstrapperApplication.cpp index c74f3087..3fa7d8a6 100644 --- a/src/wixstdba/WixStandardBootstrapperApplication.cpp +++ b/src/wixstdba/WixStandardBootstrapperApplication.cpp | |||
@@ -542,6 +542,58 @@ public: // IBootstrapperApplication | |||
542 | } | 542 | } |
543 | 543 | ||
544 | 544 | ||
545 | virtual STDMETHODIMP OnPauseAutomaticUpdatesBegin( | ||
546 | ) | ||
547 | { | ||
548 | HRESULT hr = S_OK; | ||
549 | LOC_STRING* pLocString = NULL; | ||
550 | LPWSTR sczFormattedString = NULL; | ||
551 | LPCWSTR wz = NULL; | ||
552 | |||
553 | hr = __super::OnPauseAutomaticUpdatesBegin(); | ||
554 | |||
555 | LocGetString(m_pWixLoc, L"#(loc.PauseAutomaticUpdatesMessage)", &pLocString); | ||
556 | |||
557 | if (pLocString) | ||
558 | { | ||
559 | BalFormatString(pLocString->wzText, &sczFormattedString); | ||
560 | } | ||
561 | |||
562 | wz = sczFormattedString ? sczFormattedString : L"Pausing Windows automatic updates"; | ||
563 | |||
564 | ThemeSetTextControl(m_pTheme, WIXSTDBA_CONTROL_OVERALL_PROGRESS_PACKAGE_TEXT, wz); | ||
565 | |||
566 | ReleaseStr(sczFormattedString); | ||
567 | return hr; | ||
568 | } | ||
569 | |||
570 | |||
571 | virtual STDMETHODIMP OnSystemRestorePointBegin( | ||
572 | ) | ||
573 | { | ||
574 | HRESULT hr = S_OK; | ||
575 | LOC_STRING* pLocString = NULL; | ||
576 | LPWSTR sczFormattedString = NULL; | ||
577 | LPCWSTR wz = NULL; | ||
578 | |||
579 | hr = __super::OnSystemRestorePointBegin(); | ||
580 | |||
581 | LocGetString(m_pWixLoc, L"#(loc.SystemRestorePointMessage)", &pLocString); | ||
582 | |||
583 | if (pLocString) | ||
584 | { | ||
585 | BalFormatString(pLocString->wzText, &sczFormattedString); | ||
586 | } | ||
587 | |||
588 | wz = sczFormattedString ? sczFormattedString : L"Creating system restore point"; | ||
589 | |||
590 | ThemeSetTextControl(m_pTheme, WIXSTDBA_CONTROL_OVERALL_PROGRESS_PACKAGE_TEXT, wz); | ||
591 | |||
592 | ReleaseStr(sczFormattedString); | ||
593 | return hr; | ||
594 | } | ||
595 | |||
596 | |||
545 | virtual STDMETHODIMP OnCachePackageBegin( | 597 | virtual STDMETHODIMP OnCachePackageBegin( |
546 | __in_z LPCWSTR wzPackageId, | 598 | __in_z LPCWSTR wzPackageId, |
547 | __in DWORD cCachePayloads, | 599 | __in DWORD cCachePayloads, |