mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:22:58 +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,
|
IniSection = IniCacheAppendSection(IniCache,
|
||||||
L"FREELOADER");
|
L"FREELOADER");
|
||||||
|
|
||||||
|
#ifdef DBG
|
||||||
|
if (IsUnattendedSetup)
|
||||||
|
{
|
||||||
|
/* DefaultOS=ReactOS */
|
||||||
|
IniCacheInsertKey(IniSection,
|
||||||
|
NULL,
|
||||||
|
INSERT_LAST,
|
||||||
|
L"DefaultOS",
|
||||||
|
L"ReactOS_Debug");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
/* DefaultOS=ReactOS */
|
/* DefaultOS=ReactOS */
|
||||||
IniCacheInsertKey(IniSection,
|
IniCacheInsertKey(IniSection,
|
||||||
NULL,
|
NULL,
|
||||||
INSERT_LAST,
|
INSERT_LAST,
|
||||||
L"DefaultOS",
|
L"DefaultOS",
|
||||||
L"ReactOS");
|
L"ReactOS");
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef DBG
|
||||||
|
if (IsUnattendedSetup)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
/* Timeout=0 for unattended or non debug*/
|
||||||
|
IniCacheInsertKey(IniSection,
|
||||||
|
NULL,
|
||||||
|
INSERT_LAST,
|
||||||
|
L"TimeOut",
|
||||||
|
L"0");
|
||||||
|
}
|
||||||
|
#ifdef DBG
|
||||||
|
else
|
||||||
|
{
|
||||||
/* Timeout=0 or 10 */
|
/* Timeout=0 or 10 */
|
||||||
IniCacheInsertKey(IniSection,
|
IniCacheInsertKey(IniSection,
|
||||||
NULL,
|
NULL,
|
||||||
INSERT_LAST,
|
INSERT_LAST,
|
||||||
L"TimeOut",
|
L"TimeOut",
|
||||||
#ifndef DBG
|
|
||||||
L"0");
|
|
||||||
#else
|
|
||||||
L"10");
|
L"10");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Create "Display" section */
|
/* Create "Display" section */
|
||||||
|
|
|
@ -75,6 +75,8 @@
|
||||||
|
|
||||||
extern HANDLE ProcessHeap;
|
extern HANDLE ProcessHeap;
|
||||||
extern UNICODE_STRING SourceRootPath;
|
extern UNICODE_STRING SourceRootPath;
|
||||||
|
extern BOOLEAN IsUnattendedSetup;
|
||||||
|
|
||||||
|
|
||||||
#endif /* __USETUP_H__*/
|
#endif /* __USETUP_H__*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue