diff --git a/reactos/boot/bootdata/unattend.inf.sample b/reactos/boot/bootdata/unattend.inf.sample index b60174e900c..073ebf601f2 100644 --- a/reactos/boot/bootdata/unattend.inf.sample +++ b/reactos/boot/bootdata/unattend.inf.sample @@ -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 \ No newline at end of file diff --git a/reactos/dll/win32/syssetup/globals.h b/reactos/dll/win32/syssetup/globals.h index 67d2700ece6..eb5acec46d0 100644 --- a/reactos/dll/win32/syssetup/globals.h +++ b/reactos/dll/win32/syssetup/globals.h @@ -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; diff --git a/reactos/dll/win32/syssetup/wizard.c b/reactos/dll/win32/syssetup/wizard.c index 3eaeb6708fa..9c7acc21746 100644 --- a/reactos/dll/win32/syssetup/wizard.c +++ b/reactos/dll/win32/syssetup/wizard.c @@ -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));