diff --git a/optional/config/chrome.reg b/optional/config/chrome.reg new file mode 100644 index 0000000..94f5250 --- /dev/null +++ b/optional/config/chrome.reg @@ -0,0 +1,190 @@ +Windows Registry Editor Version 5.00 +; chrome version: 111.0.5563.65 + +[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] +"AllowDeletingBrowserHistory"=dword:00000001 +"AllowDinosaurEasterEgg"=dword:00000000 +"AllowWebAuthnWithBrokenTlsCerts"=dword:00000001 +"AlternateErrorPagesEnabled"=dword:00000000 +"AlwaysOpenPdfExternally"=dword:00000001 +"ApplicationLocaleValue"="en" +"AudioCaptureAllowed"=dword:00000000 +"AudioProcessHighPriorityEnabled"=dword:00000001 +"AudioSandboxEnabled"=dword:00000001 +"AuthSchemes"="basic,digest,ntlm,negotiate" +"AutofillAddressEnabled"=dword:00000000 +"AutofillCreditCardEnabled"=dword:00000000 +"AutoplayAllowed"=dword:00000000 +"BackgroundModeEnabled"=dword:00000000 +"BasicAuthOverHttpEnabled"=dword:00000000 +"BatterySaverModeAvailability"=dword:00000000 +"BlockExternalExtensions"=dword:00000000 +"BlockThirdPartyCookies"=dword:00000000 +"BookmarkBarEnabled"=dword:00000001 +"BrowserAddPersonEnabled"=dword:00000000 +"BrowserGuestModeEnabled"=dword:00000000 +"BrowserGuestModeEnforced"=dword:00000000 +"BrowserLabsEnabled"=dword:00000000 +"BrowserLegacyExtensionPointsBlocked"=dword:00000000 +"BrowserNetworkTimeQueriesEnabled"=dword:00000000 +"BrowserSignin"=dword:00000001 +"BrowserThemeColor"="#FFFFFF" +"BuiltInDnsClientEnabled"=dword:00000000 +"CECPQ2Enabled"=dword:00000000 +"CORSNonWildcardRequestHeadersSupport"=dword:00000001 +"ChromeAppsEnabled"=dword:00000001 +"ChromeCleanupEnabled"=dword:00000001 +"ChromeCleanupReportingEnabled"=dword:00000001 +"ChromeRootStoreEnabled"=dword:00000000 +"ChromeVariations"=dword:00000001 +"ClickToCallEnabled"=dword:00000000 +"CloudAPAuthEnabled"=dword:00000000 +"CloudPolicyOverridesPlatformPolicy"=dword:00000000 +"CloudPrintProxyEnabled"=dword:00000000 +"CloudUserPolicyMerge"=dword:00000000 +"CloudUserPolicyOverridesCloudMachinePolicy"=dword:00000000 +"CommandLineFlagSecurityWarningsEnabled"=dword:00000001 +"ComponentUpdatesEnabled"=dword:00000001 +"DNSInterceptionChecksEnabled"=dword:00000001 +"DefaultBrowserSettingEnabled"=dword:00000001 +"DefaultClipboardSetting"=dword:00000002 +"DefaultCookiesSetting"=dword:00000001 +"DefaultFileSystemReadGuardSetting"=dword:00000002 +"DefaultFileSystemWriteGuardSetting"=dword:00000002 +"DefaultGeolocationSetting"=dword:00000001 +"DefaultImagesSetting"=dword:00000001 +"DefaultInsecureContentSetting"=dword:00000002 +"DefaultJavaScriptJitSetting"=dword:00000001 +"DefaultJavaScriptSetting"=dword:00000001 +"DefaultLocalFontsSetting"=dword:00000002 +"DefaultNotificationsSetting"=dword:00000002 +"DefaultPopupsSetting"=dword:00000001 +"DefaultSensorsSetting"=dword:00000002 +"DefaultSerialGuardSetting"=dword:00000002 +"DefaultWebBluetoothGuardSetting"=dword:00000002 +"DefaultWebHidGuardSetting"=dword:00000002 +"DefaultWebUsbGuardSetting"=dword:00000002 +"DefaultWindowManagementSetting"=dword:00000002 +"DesktopSharingHubEnabled"=dword:00000001 +"DeveloperToolsAvailability"=dword:00000002 +"Disable3DAPIs"=dword:00000000 +"DisableAuthNegotiateCnameLookup"=dword:00000000 +"DisablePrintPreview"=dword:00000000 +"DisableSafeBrowsingProceedAnyway"=dword:00000001 +"DisableScreenshots"=dword:00000001 +"DnsOverHttpsMode"="off" +"DomainReliabilityAllowed"=dword:00000000 +"DownloadBubbleEnabled"=dword:00000000 +"DownloadRestrictions"=dword:00000004 +"EditBookmarksEnabled"=dword:00000001 +"EnableAuthNegotiatePort"=dword:00000000 +"EnableMediaRouter"=dword:00000000 +"EnableOnlineRevocationChecks"=dword:00000000 +"EncryptedClientHelloEnabled"=dword:00000000 +"EnterpriseHardwarePlatformAPIEnabled"=dword:00000000 +"EnterpriseProfileCreationKeepBrowsingData"=dword:00000000 +"EventPathEnabled"=dword:00000000 +"ExtensionManifestV2Availability"=dword:00000002 +"ExternalProtocolDialogShowAlwaysOpenCheckbox"=dword:00000001 +"FetchKeepaliveDurationSecondsOnShutdown"=dword:00000001 +"ForceEnablePepperVideoDecoderDevAPI"=dword:00000000 +"ForceEphemeralProfiles"=dword:00000000 +"ForceGoogleSafeSearch"=dword:00000000 +"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000000 +"ForceYouTubeRestrict"=dword:00000000 +"FullscreenAllowed"=dword:00000001 +"GloballyScopeHTTPAuthCacheEnabled"=dword:00000000 +"HardwareAccelerationModeEnabled"=dword:00000001 +"HeadlessMode"=dword:00000002 +"HideWebStoreIcon"=dword:00000001 +"HighEfficiencyModeEnabled"=dword:00000000 +"HistoryClustersVisible"=dword:00000000 +"HttpsOnlyMode"="disallowed" +"ImportAutofillFormData"=dword:00000000 +"ImportBookmarks"=dword:00000000 +"ImportHistory"=dword:00000000 +"ImportHomepage"=dword:00000000 +"ImportSavedPasswords"=dword:00000000 +"ImportSearchEngine"=dword:00000000 +"IncognitoModeAvailability"=dword:00000001 +"InsecureFormsWarningsEnabled"=dword:00000000 +"InsecurePrivateNetworkRequestsAllowed"=dword:00000001 +"IntensiveWakeUpThrottlingEnabled"=dword:00000000 +"IntranetRedirectBehavior"=dword:00000000 +"LensDesktopNTPSearchEnabled"=dword:00000000 +"LensRegionSearchEnabled"=dword:00000000 +"MediaRecommendationsEnabled"=dword:00000000 +"MediaRouterCastAllowAllIPs"=dword:00000000 +"MetricsReportingEnabled"=dword:00000000 +"NTPCardsVisible"=dword:00000000 +"NTPCustomBackgroundEnabled"=dword:00000000 +"NTPMiddleSlotAnnouncementVisible"=dword:00000000 +"NativeMessagingUserLevelHosts"=dword:00000000 +"NetworkPredictionOptions"=dword:00000000 +"NetworkServiceSandboxEnabled"=dword:00000000 +"NewBaseUrlInheritanceBehaviorAllowed"=dword:00000000 +"OffsetParentNewSpecBehaviorEnabled"=dword:00000001 +"OriginAgentClusterDefaultEnabled"=dword:00000000 +"PPAPISharedImagesSwapChainAllowed"=dword:00000000 +"PasswordDismissCompromisedAlertEnabled"=dword:00000000 +"PasswordLeakDetectionEnabled"=dword:00000000 +"PasswordManagerEnabled"=dword:00000000 +"PasswordProtectionWarningTrigger"=dword:00000000 +"PaymentMethodQueryEnabled"=dword:00000000 +"PolicyAtomicGroupsEnabled"=dword:00000000 +"PrefixedStorageInfoEnabled"=dword:00000000 +"PrintHeaderFooter"=dword:00000000 +"PrintPdfAsImageAvailability"=dword:00000001 +"PrintingAllowedBackgroundGraphicsModes"="disabled" +"PrintingBackgroundGraphicsDefault"="disabled" +"PrintingEnabled"=dword:00000001 +"PrivacySandboxAdMeasurementEnabled"=dword:00000000 +"PrivacySandboxAdTopicsEnabled"=dword:00000000 +"PrivacySandboxPromptEnabled"=dword:00000000 +"PrivacySandboxSiteEnabledAdsEnabled"=dword:00000000 +"ProfilePickerOnStartupAvailability"=dword:00000000 +"PromotionalTabsEnabled"=dword:00000000 +"PromptForDownloadLocation"=dword:00000000 +"PromptOnMultipleMatchingCertificates"=dword:00000000 +"QuicAllowed"=dword:00000000 +"RelaunchNotification"=dword:00000000 +"RemoteAccessHostAllowClientPairing"=dword:00000000 +"RemoteAccessHostAllowFileTransfer"=dword:00000000 +"RemoteAccessHostAllowRelayedConnection"=dword:00000000 +"RemoteAccessHostAllowRemoteAccessConnections"=dword:00000000 +"RemoteAccessHostAllowRemoteSupportConnections"=dword:00000000 +"RemoteAccessHostAllowUiAccessForRemoteAssistance"=dword:00000001 +"RemoteDebuggingAllowed"=dword:00000000 +"RendererAppContainerEnabled"=dword:00000000 +"RendererCodeIntegrityEnabled"=dword:00000000 +"RoamingProfileSupportEnabled"=dword:00000000 +"SSLErrorOverrideAllowed"=dword:00000001 +"SSLVersionMin"="tls1.2" +"SafeBrowsingExtendedReportingEnabled"=dword:00000000 +"SafeBrowsingForTrustedSourcesEnabled"=dword:00000000 +"SafeBrowsingProtectionLevel"=dword:00000000 +"SafeSitesFilterBehavior"=dword:00000000 +"SavingBrowserHistoryDisabled"=dword:00000001 +"ScreenCaptureAllowed"=dword:00000000 +"ScrollToTextFragmentEnabled"=dword:00000000 +"SearchSuggestEnabled"=dword:00000000 +"SharedClipboardEnabled"=dword:00000001 +"ShoppingListEnabled"=dword:00000000 +"ShowAppsShortcutInBookmarkBar"=dword:00000000 +"ShowCastIconInToolbar"=dword:00000000 +"ShowCastSessionsStartedByOtherDevices"=dword:00000000 +"ShowFullUrlsInAddressBar"=dword:00000000 +"ShowHomeButton"=dword:00000001 +"SideSearchEnabled"=dword:00000000 +"SpellCheckServiceEnabled"=dword:00000000 +"SpellcheckEnabled"=dword:00000000 + +[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList] +"1"="browsing_history" +"2"="download_history" +"3"="cookies_and_other_site_data" +"4"="cached_images_and_files" +"5"="password_signin" +"6"="autofill" +"7"="site_settings" +"8"="hosted_app_data" diff --git a/optional/install-chrome.cmd b/optional/install-chrome.cmd new file mode 100644 index 0000000..70bd530 --- /dev/null +++ b/optional/install-chrome.cmd @@ -0,0 +1,48 @@ +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=chrome-setup.msi +set CONFIG=config\chrome.reg +set SCRIPTS=..\scripts + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +cd %SOFTWARE% +@echo on +msiexec /uninstall %MSI% /passive +msiexec /i %MSI% /passive +@echo off +cd %OPT% + +echo renaming Chrome desktop shortcut ... +move /Y %PUBLIC%\Desktop\"Google Chrome.lnk" %PUBLIC%\Desktop\Chrome.lnk 2>nul + +echo importing registry settings ... +reg import %CONFIG% + +rem unpin chrome icon frpom taskbar ... +call %SCRIPTS%\unpin-taskbar-icons.cmd + +echo disabling update tasks ... +schtasks /Change /TN "GoogleUpdateTaskMachineCore{FF03DE7D-B6BB-4BD9-B599-5500A9284F84}" /disable +schtasks /Change /TN "GoogleUpdateTaskMachineUA{947CFA0A-AC3E-424D-99CD-38EE819AB072}" /disable + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +rem ### +rem rd /S /Q %USERPROFILE%"\AppData\Local\Google\Chrome\User Data\Default\Cache" +rem del /F /Q %USERPROFILE%"\AppData\Local\Google\Chrome\User Data\Default\History*" +rem ### + +echo ####### %0 ####### +pause + diff --git a/optional/install-java.cmd b/optional/install-java.cmd index c6ed6d8..7f60671 100644 --- a/optional/install-java.cmd +++ b/optional/install-java.cmd @@ -2,7 +2,6 @@ call check-for-admin if %ERRORLEVEL% neq 0 exit /b -set CONFIG=config\install-java.txt set EXE=..\software\java-setup.exe if NOT EXIST %EXE% ( diff --git a/software/other.csv b/software/other.csv index 8186bbc..6f1ef02 100644 --- a/software/other.csv +++ b/software/other.csv @@ -8,4 +8,5 @@ dummy brother-dcp-mcp-drivers.EXE dummy Win10_20H2_English_x64.iso dummy vce_exam_simulator_setup.exe dummy iview-plugins.zip +dummy chrome-setup.msi