mirror of
https://github.com/modernw/AppInstallerForWin8.git
synced 2026-04-11 16:57:18 +10:00
Fixed pri reader features.
This commit is contained in:
@@ -312,6 +312,7 @@ HRESULT SetCurrentAppUserModelID (PCWSTR appID)
|
||||
}
|
||||
|
||||
void ProgressCallback (unsigned progress);
|
||||
void ToastPressCallback ();
|
||||
|
||||
public ref class MainWnd: public Form
|
||||
{
|
||||
@@ -988,7 +989,7 @@ public ref class MainWnd: public Form
|
||||
std::wstring title = StrPrintFormatW (GetRCString_cpp (PAGE_4_TITLE).c_str (), m_pkgInfo.getPropertyName ().c_str ());
|
||||
std::wstring text (L"");
|
||||
if (GetLastErrorDetailTextLength ()) text += GetLastErrorDetailText ();
|
||||
bool res = CreateToastNotification (m_idenName, title.c_str (), text.c_str (), NULL, m_pkgInfo.getPropertyLogoIStream ());
|
||||
bool res = CreateToastNotification (m_idenName, title.c_str (), text.c_str (), &ToastPressCallback, m_pkgInfo.getPropertyLogoIStream ());
|
||||
#ifdef _DEBUG
|
||||
//MessageBox::Show (res ? "Toast has create! " : "Toast created failed! ");
|
||||
#endif
|
||||
@@ -1058,6 +1059,16 @@ public ref class MainWnd: public Form
|
||||
);
|
||||
this->setTaskbarProgress ((unsigned)value);
|
||||
}
|
||||
bool launchInstalledApp ()
|
||||
{
|
||||
if (page != 4) return false;
|
||||
else
|
||||
{
|
||||
if (!reader.isPackageApplication ()) return false;
|
||||
}
|
||||
this->Button1_PressEvent ();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
typedef struct _CMDARGUMENT
|
||||
@@ -1423,6 +1434,10 @@ void ProgressCallback (unsigned progress)
|
||||
{
|
||||
mainwndPtr->funcSetProgress (progress);
|
||||
}
|
||||
void ToastPressCallback ()
|
||||
{
|
||||
mainwndPtr->launchInstalledApp ();
|
||||
}
|
||||
|
||||
void OutputDebugStringFormatted (const wchar_t* format, ...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user