- initialize a user profile before loading syssetup.dll.  
- this makes it possible to install ros over an existing ros.
Modified: trunk/reactos/subsys/system/setup/makefile
Modified: trunk/reactos/subsys/system/setup/setup.c

Modified: trunk/reactos/subsys/system/setup/makefile
--- trunk/reactos/subsys/system/setup/makefile	2005-05-07 20:02:50 UTC (rev 15088)
+++ trunk/reactos/subsys/system/setup/makefile	2005-05-07 20:20:46 UTC (rev 15089)
@@ -10,7 +10,7 @@
 
 TARGET_INSTALLDIR = system32
 
-TARGET_SDKLIBS = kernel32.a
+TARGET_SDKLIBS = kernel32.a userenv.a ntdll.a
 
 TARGET_CFLAGS = -Wall -Werror -D__USE_W32API -D_WIN32_IE=0x0400
 

Modified: trunk/reactos/subsys/system/setup/setup.c
--- trunk/reactos/subsys/system/setup/setup.c	2005-05-07 20:02:50 UTC (rev 15088)
+++ trunk/reactos/subsys/system/setup/setup.c	2005-05-07 20:20:46 UTC (rev 15089)
@@ -27,6 +27,7 @@
 #include <windows.h>
 #include <tchar.h>
 #include <syssetup.h>
+#include <userenv.h>
 
 #define NDEBUG
 #include <debug.h>
@@ -59,6 +60,9 @@
   HMODULE hDll;
   PINSTALL_REACTOS InstallReactOS;
 
+  /* some dlls (loaded by syssetup) need a valid user profile */
+  InitializeProfiles();
+
   hDll = LoadLibrary (TEXT("syssetup"));
   if (hDll == NULL)
     {