mirror of
https://github.com/reactos/reactos.git
synced 2025-05-13 14:20:31 +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
|
; DisableAutoDaylightTimeSet = 1
|
||||||
|
|
||||||
; enable this setting to format the selected partition
|
; enable this setting to format the selected partition
|
||||||
|
; 1 - format enabled
|
||||||
|
; 0 - format disabled
|
||||||
FormatPartition=1
|
FormatPartition=1
|
||||||
|
|
||||||
; enable this section to automatically launch programs
|
; enable this section to automatically launch programs
|
||||||
|
@ -38,3 +40,8 @@ FormatPartition=1
|
||||||
;
|
;
|
||||||
; [GuiRunOnce]
|
; [GuiRunOnce]
|
||||||
; %SystemRoot%\system32\cmd.exe
|
; %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 ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; /* max. 63 characters */
|
||||||
TCHAR AdminPassword[15]; /* max. 14 characters */
|
TCHAR AdminPassword[15]; /* max. 14 characters */
|
||||||
BOOL UnattendSetup;
|
BOOL UnattendSetup;
|
||||||
|
BOOL DisableVmwInst;
|
||||||
|
|
||||||
SYSTEMTIME SystemTime;
|
SYSTEMTIME SystemTime;
|
||||||
PTIMEZONE_ENTRY TimeZoneListHead;
|
PTIMEZONE_ENTRY TimeZoneListHead;
|
||||||
|
|
|
@ -1784,6 +1784,7 @@ ProcessPageDlgProc(HWND hwndDlg,
|
||||||
if (wParam)
|
if (wParam)
|
||||||
{
|
{
|
||||||
#ifdef VMWINST
|
#ifdef VMWINST
|
||||||
|
if(!SetupData->UnattendSetup && !SetupData->DisableVmwInst)
|
||||||
RunVMWInstall(GetParent(hwndDlg));
|
RunVMWInstall(GetParent(hwndDlg));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -2003,6 +2004,11 @@ ProcessUnattendInf(HINF hUnattendedInf)
|
||||||
{
|
{
|
||||||
SetupData.DisableAutoDaylightTimeSet = _ttoi(szValue);
|
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));
|
while (SetupFindNextLine(&InfContext, &InfContext));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue