Add DisableVmwInst option to unattend setup to disable vmware driver setup wizard

svn path=/trunk/; revision=25334
This commit is contained in:
Saveliy Tretiakov 2007-01-06 21:18:36 +00:00
parent a227f30dac
commit 99e8c9a7c7
3 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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;

View file

@ -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));