mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
Add DisableVmwInst option to unattend setup to disable vmware driver setup wizard
svn path=/trunk/; revision=25334
This commit is contained in:
parent
a227f30dac
commit
99e8c9a7c7
3 changed files with 15 additions and 1 deletions
|
@ -31,6 +31,8 @@ TimeZoneIndex=85
|
|||
; DisableAutoDaylightTimeSet = 1
|
||||
|
||||
; enable this setting to format the selected partition
|
||||
; 1 - format enabled
|
||||
; 0 - format disabled
|
||||
FormatPartition=1
|
||||
|
||||
; enable this section to automatically launch programs
|
||||
|
@ -38,3 +40,8 @@ FormatPartition=1
|
|||
;
|
||||
; [GuiRunOnce]
|
||||
; %SystemRoot%\system32\cmd.exe
|
||||
|
||||
; enable this setting to disable vmware driver install
|
||||
; yes - disabled
|
||||
; no - enabled
|
||||
DisableVmwInst = yes
|
|
@ -46,6 +46,7 @@ typedef struct _SETUPDATA
|
|||
TCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; /* max. 63 characters */
|
||||
TCHAR AdminPassword[15]; /* max. 14 characters */
|
||||
BOOL UnattendSetup;
|
||||
BOOL DisableVmwInst;
|
||||
|
||||
SYSTEMTIME SystemTime;
|
||||
PTIMEZONE_ENTRY TimeZoneListHead;
|
||||
|
|
|
@ -1784,7 +1784,8 @@ ProcessPageDlgProc(HWND hwndDlg,
|
|||
if (wParam)
|
||||
{
|
||||
#ifdef VMWINST
|
||||
RunVMWInstall(GetParent(hwndDlg));
|
||||
if(!SetupData->UnattendSetup && !SetupData->DisableVmwInst)
|
||||
RunVMWInstall(GetParent(hwndDlg));
|
||||
#endif
|
||||
|
||||
/* Enable the Back and Next buttons */
|
||||
|
@ -2003,6 +2004,11 @@ ProcessUnattendInf(HINF hUnattendedInf)
|
|||
{
|
||||
SetupData.DisableAutoDaylightTimeSet = _ttoi(szValue);
|
||||
}
|
||||
else if (_tcscmp(szName, _T("DisableVmwInst")))
|
||||
{
|
||||
if(_tcscmp(szValue, _T("yes"))) SetupData.DisableVmwInst = 1;
|
||||
else SetupData.DisableVmwInst = 0;
|
||||
}
|
||||
}
|
||||
while (SetupFindNextLine(&InfContext, &InfContext));
|
||||
|
||||
|
|
Loading…
Reference in a new issue