- use ReactOS_Debug as a default os when DBG && unattended setup mode is defined

- set timeout to zero in unattended mode && DBG defined

svn path=/trunk/; revision=24661
This commit is contained in:
Johannes Anderwald 2006-10-30 12:41:17 +00:00
parent bcf2a300f2
commit 963c6260b1
2 changed files with 35 additions and 7 deletions

View file

@ -43,22 +43,48 @@ CreateCommonFreeLoaderSections(PINICACHE IniCache)
IniSection = IniCacheAppendSection(IniCache,
L"FREELOADER");
/* DefaultOS=ReactOS */
IniCacheInsertKey(IniSection,
NULL,
#ifdef DBG
if (IsUnattendedSetup)
{
/* DefaultOS=ReactOS */
IniCacheInsertKey(IniSection,
NULL,
INSERT_LAST,
L"DefaultOS",
L"ReactOS_Debug");
}
else
#endif
{
/* DefaultOS=ReactOS */
IniCacheInsertKey(IniSection,
NULL,
INSERT_LAST,
L"DefaultOS",
L"ReactOS");
}
/* Timeout=0 or 10 */
IniCacheInsertKey(IniSection,
#ifdef DBG
if (IsUnattendedSetup)
#endif
{
/* Timeout=0 for unattended or non debug*/
IniCacheInsertKey(IniSection,
NULL,
INSERT_LAST,
L"TimeOut",
#ifndef DBG
L"0");
#else
}
#ifdef DBG
else
{
/* Timeout=0 or 10 */
IniCacheInsertKey(IniSection,
NULL,
INSERT_LAST,
L"TimeOut",
L"10");
}
#endif
/* Create "Display" section */

View file

@ -75,6 +75,8 @@
extern HANDLE ProcessHeap;
extern UNICODE_STRING SourceRootPath;
extern BOOLEAN IsUnattendedSetup;
#endif /* __USETUP_H__*/