mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-06-14 03:16:38 +10:00
Changed the UI and fixed bugs.
This commit is contained in:
Binary file not shown.
+32
-2
@@ -1,5 +1,4 @@
|
||||
#include <Windows.h>
|
||||
#include <set>
|
||||
#include <msclr/marshal_cppstd.h>
|
||||
#include <ShObjIdl.h>
|
||||
#include <ShlObj.h> // KNOWNFOLDERID, SHGetKnownFolderPath
|
||||
@@ -286,6 +285,37 @@ public ref class _I_System
|
||||
return (error == ERROR_OLD_WIN_VERSION) ? FALSE : FALSE;
|
||||
}
|
||||
}
|
||||
property int Archievement
|
||||
{
|
||||
int get ()
|
||||
{
|
||||
SYSTEM_INFO si;
|
||||
ZeroMemory (&si, sizeof (si));
|
||||
typedef VOID (WINAPI *LPFN_GetNativeSystemInfo)(LPSYSTEM_INFO);
|
||||
LPFN_GetNativeSystemInfo fnGetNativeSystemInfo =
|
||||
(LPFN_GetNativeSystemInfo)GetProcAddress (
|
||||
GetModuleHandleW (L"kernel32.dll"),
|
||||
"GetNativeSystemInfo");
|
||||
if (fnGetNativeSystemInfo) fnGetNativeSystemInfo (&si);
|
||||
else GetSystemInfo (&si);
|
||||
return (int)si.wProcessorArchitecture;
|
||||
}
|
||||
}
|
||||
property _I_Version ^Version
|
||||
{
|
||||
_I_Version ^get ()
|
||||
{
|
||||
auto ver = Environment::OSVersion->Version;
|
||||
try
|
||||
{
|
||||
return gcnew _I_Version (ver->Major, ver->Minor, ver->Build, ver->Revision);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
return gcnew _I_Version (ver->Major, ver->Minor, ver->Build, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
public ref class _I_System2: public _I_System
|
||||
{
|
||||
@@ -1038,7 +1068,7 @@ public ref class MainHtmlWnd: public System::Windows::Forms::Form, public IScrip
|
||||
_I_IEFrame ^ieframe;
|
||||
_I_System3 ^sys;
|
||||
public:
|
||||
IBridge (MainHtmlWnd ^wnd): wndinst (wnd), _I_Bridge_Base2 (wnd)
|
||||
IBridge (MainHtmlWnd ^wnd): wndinst (wnd), _I_Bridge_Base2 (wnd)
|
||||
{
|
||||
ieframe = gcnew _I_IEFrame (wnd);
|
||||
sys = gcnew _I_System3 (wnd);
|
||||
|
||||
@@ -88,7 +88,9 @@ std::map <std::string, unsigned> g_nameToId = {
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_CLOSE),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_HELP),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_TRYAGAIN),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_CONTINUE)
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_CONTINUE),
|
||||
MAKENAMEIDMAP (IDS_PREINSTALL_SUPPOS),
|
||||
MAKENAMEIDMAP (IDS_PREINSTALL_NOSUPPOS)
|
||||
};
|
||||
|
||||
#ifdef MAKENAMEIDMAP
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user