[SYSSETUP][UNATTENDED] Add a way to disable Gecko install. Brought to you by V.
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 9 Jun 2015 23:20:33 +0000 (23:20 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 9 Jun 2015 23:20:33 +0000 (23:20 +0000)
svn path=/trunk/; revision=68098

reactos/boot/bootdata/bootcd/unattend.inf
reactos/dll/win32/syssetup/globals.h
reactos/dll/win32/syssetup/wizard.c

index 6d6a8d1..27a0797 100644 (file)
@@ -44,6 +44,11 @@ AutoPartition = 1
 ; no  - enabled
 DisableVmwInst = yes
 
+; enable this setting to disable Gecko install
+; yes - disabled
+; no  - enabled
+DisableGeckoInst = no
+
 ; set this option to automatically
 ; specify language in 2nd mode setup
 ; see hivesys.inf for available languages
index 06e18ae..1f65ad6 100644 (file)
@@ -48,6 +48,7 @@ typedef struct _SETUPDATA
     WCHAR AdminPassword[128];              /* max. 127 characters */
     BOOL  UnattendSetup;
     BOOL  DisableVmwInst;
+    BOOL  DisableGeckoInst;
 
     SYSTEMTIME SystemTime;
     PTIMEZONE_ENTRY TimeZoneListHead;
index b869930..da5f76b 100644 (file)
@@ -1992,8 +1992,11 @@ FinishDlgProc(HWND hwndDlg,
             /* Get pointer to the global setup data */
             PSETUPDATA SetupData = (PSETUPDATA)((LPPROPSHEETPAGE)lParam)->lParam;
 
-            /* Run the Wine Gecko prompt */
-            Control_RunDLLW(hwndDlg, 0, L"appwiz.cpl install_gecko", SW_SHOW);
+            if (!SetupData->UnattendSetup || !SetupData->DisableGeckoInst)
+            {
+                /* Run the Wine Gecko prompt */
+                Control_RunDLLW(hwndDlg, 0, L"appwiz.cpl install_gecko", SW_SHOW);
+            }
 
             /* Set title font */
             SendDlgItemMessage(hwndDlg,
@@ -2179,10 +2182,16 @@ ProcessUnattendInf(HINF hUnattendedInf)
             else
                 SetupData.DisableVmwInst = 0;
         }
+        else if (!wcscmp(szName, L"DisableGeckoInst"))
+        {
+            if(!wcscmp(szValue, L"yes"))
+                SetupData.DisableGeckoInst = 1;
+            else
+                SetupData.DisableGeckoInst = 0;
+        }
 
     }
     while (SetupFindNextLine(&InfContext, &InfContext));
-
     if (RegOpenKeyExW(HKEY_LOCAL_MACHINE,
                       L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce",
                       0,