mirror of
https://github.com/reactos/reactos.git
synced 2026-06-22 18:43:00 +08:00
Add DisableVmwInst option to unattend setup to disable vmware driver setup wizard
svn path=/trunk/; revision=25334
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user