Author: hpoussin
Date: Mon Aug 6 18:41:05 2007
New Revision: 28194
URL:
http://svn.reactos.org/svn/reactos?rev=28194&view=rev
Log:
Set setup type to 0 before the end of 2nd stage in syssetup instead of winlogon
Modified:
trunk/reactos/base/system/winlogon/setup.c
trunk/reactos/dll/win32/syssetup/install.c
Modified: trunk/reactos/base/system/winlogon/setup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/setup…
==============================================================================
--- trunk/reactos/base/system/winlogon/setup.c (original)
+++ trunk/reactos/base/system/winlogon/setup.c Mon Aug 6 18:41:05 2007
@@ -50,38 +50,6 @@
}
return dwSetupType;
-}
-
-
-static BOOL
-SetSetupType (DWORD dwSetupType)
-{
- DWORD dwError;
- HKEY hKey;
-
- dwError = RegOpenKeyExW(HKEY_LOCAL_MACHINE,
- L"SYSTEM\\Setup", //TEXT("SYSTEM\\Setup"),
- 0,
- KEY_SET_VALUE,
- &hKey);
- if (dwError != ERROR_SUCCESS)
- {
- return FALSE;
- }
-
- dwError = RegSetValueExW (hKey,
- L"SetupType", //TEXT("SetupType"),
- 0,
- REG_DWORD,
- (LPBYTE)&dwSetupType,
- sizeof(DWORD));
- RegCloseKey (hKey);
- if (dwError != ERROR_SUCCESS)
- {
- return FALSE;
- }
-
- return TRUE;
}
@@ -173,11 +141,6 @@
CloseHandle (ProcessInformation.hThread);
CloseHandle (ProcessInformation.hProcess);
- if (dwExitCode == 0)
- {
- SetSetupType (0);
- }
-
TRACE ("RunSetup() done.\n");
return TRUE;
Modified: trunk/reactos/dll/win32/syssetup/install.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/install.c (original)
+++ trunk/reactos/dll/win32/syssetup/install.c Mon Aug 6 18:41:05 2007
@@ -623,6 +623,35 @@
return TRUE;
}
+static BOOL
+SetSetupType(DWORD dwSetupType)
+{
+ DWORD dwError;
+ HKEY hKey;
+
+ dwError = RegOpenKeyExW(
+ HKEY_LOCAL_MACHINE,
+ L"SYSTEM\\Setup",
+ 0,
+ KEY_SET_VALUE,
+ &hKey);
+ if (dwError != ERROR_SUCCESS)
+ return FALSE;
+
+ dwError = RegSetValueExW(
+ hKey,
+ L"SetupType",
+ 0,
+ REG_DWORD,
+ (LPBYTE)&dwSetupType,
+ sizeof(DWORD));
+ RegCloseKey(hKey);
+ if (dwError != ERROR_SUCCESS)
+ return FALSE;
+
+ return TRUE;
+}
+
DWORD WINAPI
InstallReactOS(HINSTANCE hInstance)
{
@@ -721,6 +750,7 @@
InstallWizard();
SetupCloseInfFile(hSysSetupInf);
+ SetSetupType(0);
LogItem(SYSSETUP_SEVERITY_INFORMATION, L"Installing ReactOS done");
TerminateSetupActionLog();