#include <tchar.h>
#include <syssetup/syssetup.h>
#include <userenv.h>
+#include <tchar.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
}
+static VOID
+SetupIsActive( DWORD dw )
+{
+ HKEY hKey = 0;
+ if (RegOpenKeyEx( HKEY_LOCAL_MACHINE, _T("SYSTEM\\Setup"), 0, KEY_WRITE, &hKey ) == ERROR_SUCCESS) {
+ RegSetValueEx( hKey, _T("SystemSetupInProgress"), 0, REG_DWORD, (CONST BYTE *)&dw, sizeof(dw) );
+ RegCloseKey( hKey );
+ }
+}
+
static VOID
RunNewSetup (HINSTANCE hInstance)
{
DPRINT("Loaded 'syssetup'!\n");
+ SetupIsActive(1);
InstallReactOS = (PINSTALL_REACTOS)GetProcAddress (hDll, "InstallReactOS");
+ SetupIsActive(0);
+
if (InstallReactOS == NULL)
{
DPRINT("Failed to get address for 'InstallReactOS()'!\n");