set SystemSetupInProgress to 1 when 2nd stage setup is running
compile setup as UNICODE
Modified: trunk/reactos/subsys/system/setup/setup.c

Modified: trunk/reactos/subsys/system/setup/setup.c
--- trunk/reactos/subsys/system/setup/setup.c	2005-11-09 21:18:08 UTC (rev 19106)
+++ trunk/reactos/subsys/system/setup/setup.c	2005-11-09 22:50:47 UTC (rev 19107)
@@ -28,6 +28,7 @@
 #include <tchar.h>
 #include <syssetup/syssetup.h>
 #include <userenv.h>
+#include <tchar.h>
 
 #define NTOS_MODE_USER
 #include <ndk/ntndk.h>
@@ -58,6 +59,16 @@
 
 
 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)
 {
   HMODULE hDll;
@@ -75,7 +86,10 @@
 
   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");