mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- 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:
parent
bcf2a300f2
commit
963c6260b1
2 changed files with 35 additions and 7 deletions
|
@ -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 */
|
||||
|
|
|
@ -75,6 +75,8 @@
|
|||
|
||||
extern HANDLE ProcessHeap;
|
||||
extern UNICODE_STRING SourceRootPath;
|
||||
extern BOOLEAN IsUnattendedSetup;
|
||||
|
||||
|
||||
#endif /* __USETUP_H__*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue