Author | SHA1 | Message | Date |
---|---|---|---|
Xyueta | 812902126d | New folder structure | 6 months ago |
Styris | 1e7da77e98 | Update to v0.6 | 10 months ago |
he3als |
a538e8542f
|
feat: general improvements
- Disable opening GameBar when pressing XBOX button - Sync time and set to more reliable time servers - Add Widevine DRM to UGC |
1 year ago |
@ -1,97 +0,0 @@ | |||
!UTask | |||
title: Language installation | |||
description: Installs the files for the languages selected in the GUI | |||
minVersion: | |||
maxVersion: | |||
status: ToDo | |||
actions: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/basic_de-de.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/speech_de-de.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/tts_de-de.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/ocr_de-de.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/hw_de-de.cab | |||
standardError: | |||
standardOutput: | |||
- !powershell | |||
command: $OldList = Get-WinUserLanguageList; $OldList.Add(de-DE); Set-WinUserLanguageList -LanguageList $OldList -Force | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/basic_en-us.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/speech_en-us.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/tts_en-us.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/ocr_en-us.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/hw_en-us.cab | |||
standardError: | |||
standardOutput: | |||
- !powershell | |||
command: $OldList = Get-WinUserLanguageList; $OldList.Add(en-US); Set-WinUserLanguageList -LanguageList $OldList -Force | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/basic_es-es.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/speech_es-es.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/tts_es-es.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/ocr_es-es.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/hw_es-es.cab | |||
standardError: | |||
standardOutput: | |||
- !powershell | |||
command: $OldList = Get-WinUserLanguageList; $OldList.Add(es-ES); Set-WinUserLanguageList -LanguageList $OldList -Force | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/basic_fi-fi.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/speech_fi-fi.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/tts_fi-fi.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/ocr_fi-fi.cab | |||
standardError: | |||
standardOutput: | |||
- !cmd | |||
command: Dism /online /Add-Package /PackagePath:%temp%/AME/Languages/hw_fi-fi.cab | |||
standardError: | |||
standardOutput: | |||
- !powershell | |||
command: $OldList = Get-WinUserLanguageList; $OldList.Add(fi-FI); Set-WinUserLanguageList -LanguageList $OldList -Force | |||
priority: 1 | |||
features: [] |
@ -1,4 +0,0 @@ | |||
de-DE | |||
en-US | |||
es-ES | |||
fi-FI |
@ -1,14 +1,14 @@ | |||
--- | |||
title: Dotnet | |||
description: Installs essential prerequsities | |||
privilege: TrustedInstaller | |||
actions: | |||
- !writeStatus: {status: 'Installing Chocolatey'} | |||
# Install Chocolatey | |||
- !powerShell: | |||
command: 'Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(''https://community.chocolatey.org/install.ps1''))' | |||
weight: 30 | |||
- !writeStatus: {status: 'Installing .NET 3.5'} | |||
# Install .NET Framework 3.5 | |||
- !cmd: | |||
command: '"%ProgramData%\chocolatey\bin\choco.exe" install -y --force --allow-empty-checksums dotnet3.5' | |||
weight: 250 |
@ -1,159 +0,0 @@ | |||
@echo off | |||
for /f "usebackq delims=" %%A in (`dir /b "%ProgramData%\chocolatey\lib\ungoogled-chromium\tools" /a:d ^| findstr /c:"ungoogled-chromium_"`) do set "dir=%ProgramData%\chocolatey\lib\ungoogled-chromium\tools\%%A" | |||
if not "%dir%"=="" exit /b 0 | |||
PowerShell -NoP -C "Start-Process '%ProgramData%\chocolatey\bin\choco.exe' -ArgumentList 'install','-y','--allow-empty-checksums','ungoogled-chromium' -NoNewWindow -Wait" | |||
if not exist "%ProgramData%\chocolatey\lib\ungoogled-chromium\tools" exit /b 0 | |||
:GenRND | |||
setlocal EnableDelayedExpansion | |||
set "RNDConsist=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |||
set /a "RND=%RANDOM% %% 36" | |||
set "RNDStr=!RNDStr!!RNDConsist:~%RND%,1!" | |||
if "%RNDStr:~25%"=="" (goto GenRND) | |||
endlocal & set "RNDStr=%RNDStr%" | |||
@echo on | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%" /ve /t REG_SZ /d "Chromium HTML Document" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%" /v "AppUserModelId" /t REG_SZ /d "Chromium.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%\Application" /v "AppUserModelId" /t REG_SZ /d "Chromium.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%\Application" /v "ApplicationIcon" /t REG_SZ /d "%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%\Application" /v "ApplicationName" /t REG_SZ /d "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%\Application" /v "ApplicationDescription" /t REG_SZ /d "Access the Internet" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%\Application" /v "ApplicationCompany" /t REG_SZ /d "The Chromium Authors" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%\DefaultIcon" /ve /t REG_SZ /d "%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTM.%RNDStr%\shell\open\command" /ve /t REG_SZ /d """%ProgramData%\chocolatey\bin\chrome.exe"" --single-argument %%1" /f | |||
reg add "HKLM\SOFTWARE\Policies\Chromium" /v "DefaultBrowserSettingEnabled" /t REG_DWORD /d 0 /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%" /ve /t REG_SZ /d "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "Chromium is a web browser that runs webpages and applications with lightning speed. It's fast, stable, and easy to use. Browse the web more safely with malware and phishing protection built into Chromium." /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities" /v "ApplicationIcon" /t REG_SZ /d "%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities" /v "ApplicationName" /t REG_SZ /d "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\FileAssociations" /v ".htm" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\FileAssociations" /v ".html" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\FileAssociations" /v ".pdf" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\FileAssociations" /v ".shtml" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\FileAssociations" /v ".svg" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\FileAssociations" /v ".xht" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\FileAssociations" /v ".xhtml" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\FileAssociations" /v ".webp" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\Startmenu" /v "StartMenuInternet" /t REG_SZ /d "Chromium.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "http" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "https" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "irc" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "mailto" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "mms" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "news" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "nntp" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "sms" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "smsto" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "snews" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "tel" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "urn" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities\URLAssociations" /v "webcal" /t REG_SZ /d "ChromiumHTM.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\DefaultIcon" /ve /t REG_SZ /d "%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\InstallInfo" /v "ReinstallCommand" /t REG_SZ /d """%ProgramData%\chocolatey\bin\chrome.exe"" --make-default-browser" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\InstallInfo" /v "HideIconsCommand" /t REG_SZ /d """%ProgramData%\chocolatey\bin\chrome.exe"" --hide-icons" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\InstallInfo" /v "ShowIconsCommand" /t REG_SZ /d """%ProgramData%\chocolatey\bin\chrome.exe"" --show-icons" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\InstallInfo" /v "IconsVisible" /t REG_DWORD /d "1" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\shell\open\command" /ve /t REG_SZ /d """%ProgramData%\chocolatey\bin\chrome.exe"" /f | |||
reg add "HKCR\.htm\OpenWithProgids" /v "Chromium.%RNDStr%" /f | |||
reg add "HKCR\.html\OpenWithProgids" /v "Chromium.%RNDStr%" /f | |||
reg add "HKCR\.pdf\OpenWithProgids" /v "Chromium.%RNDStr%" /f | |||
reg add "HKCR\.shtml\OpenWithProgids" /v "Chromium.%RNDStr%" /f | |||
reg add "HKCR\.svg\OpenWithProgids" /v "Chromium.%RNDStr%" /f | |||
reg add "HKCR\.xht\OpenWithProgids" /v "Chromium.%RNDStr%" /f | |||
reg add "HKCR\.xhtml\OpenWithProgids" /v "Chromium.%RNDStr%" /f | |||
reg add "HKCR\.webp\OpenWithProgids" /v "Chromium.%RNDStr%" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe" /ve /t REG_SZ /d "%ProgramData%\chocolatey\bin\chrome.exe" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe" /v "Path" /t REG_SZ /d "%ProgramData%\chocolatey\bin" /f | |||
reg add "HKLM\SOFTWARE\RegisteredApplications" /v "Chromium.%RNDStr%" /d "SOFTWARE\Clients\StartMenuInternet\Chromium.%RNDStr%\Capabilities" /f | |||
copy /y "ugc_uninstaller.exe" "%ProgramData%\chocolatey\tools" | |||
if %errorlevel% GTR 0 goto pastUninstall; | |||
copy /y "ugcChocoUninstall.ps1" "%ProgramData%\chocolatey\lib\ungoogled-chromium\tools\chocolateyUninstall.ps1" | |||
if %errorlevel% GTR 0 goto pastUninstall; | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-%RNDStr%" /v "DisplayName" /t REG_SZ /d "Ungoogled Chromium" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-%RNDStr%" /v "DisplayIcon" /t REG_SZ /d "%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-%RNDStr%" /v "UninstallString" /t REG_SZ /d """%ProgramData%\chocolatey\tools\ugc_uninstaller.exe"" ""%RNDStr%""" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-%RNDStr%" /v "QuietUninstallString" /t REG_SZ /d """%ProgramData%\chocolatey\tools\ugc_uninstaller.exe"" ""%RNDStr%""" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-%RNDStr%" /v "NoRepair" /t REG_DWORD /d "1" /f | |||
PowerShell -NoP -C "$Content = (Get-Content '%ProgramData%\chocolatey\lib\ungoogled-chromium\tools\chocolateyUninstall.ps1'); $Content = $Content -replace '<Command>', 'Start-Process ''%ProgramData%\chocolatey\tools\ugc_uninstaller.exe'' -Verb RunAs -ArgumentList ''%RNDStr%'',''Choco'' -Wait -ErrorAction Continue' | Set-Content '%ProgramData%\chocolatey\lib\ungoogled-chromium\tools\chocolateyUninstall.ps1'" | |||
@echo off | |||
:pastUninstall | |||
for /f "usebackq tokens=2 delims=\" %%A in (`reg query "HKEY_USERS" ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do ( | |||
REM If the "Volatile Environment" key exists, that means it is a proper user. Built in accounts/SIDs don't have this key. | |||
reg query "HKU\%%A" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > NUL 2>&1 | |||
if not errorlevel 1 ( | |||
PowerShell -NoP -ExecutionPolicy Bypass -File assoc.ps1 "Placeholder" "%%A" ".html:ChromiumHTM.%RNDStr%" ".htm:ChromiumHTM.%RNDStr%" "Proto:https:ChromiumHTM.%RNDStr%" "Proto:http:ChromiumHTM.%RNDStr%" | |||
) | |||
) | |||
for /f "usebackq delims=" %%A in (`dir /b "%ProgramData%\chocolatey\lib\ungoogled-chromium\tools" /a:d ^| findstr /c:"ungoogled-chromium_"`) do set "dir=%ProgramData%\chocolatey\lib\ungoogled-chromium\tools\%%A" | |||
if "%dir%"=="" exit /b 0 | |||
copy /y "Chromium.Web.Store.crx" "%ProgramData%\chocolatey\lib\ungoogled-chromium" | |||
copy /y "uBlock.Origin.crx" "%ProgramData%\chocolatey\lib\ungoogled-chromium" | |||
copy /y "chromium.ico" "%ProgramData%\chocolatey\lib\ungoogled-chromium" | |||
copy /y "initial_preferences_ugc" "%dir%\initial_preferences" | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions\ocaahdebbfolfmndjeplogmgcagdmblk" /v "Path" /t REG_SZ /d "%ProgramData%\chocolatey\lib\ungoogled-chromium\Chromium.Web.Store.crx" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions\ocaahdebbfolfmndjeplogmgcagdmblk" /v "Version" /t REG_SZ /d "1.5.3.1" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions\cjpalhdlnbpafiamejdnhcphjbkeiagm" /v "Path" /t REG_SZ /d "%ProgramData%\chocolatey\lib\ungoogled-chromium\uBlock.Origin.crx" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions\cjpalhdlnbpafiamejdnhcphjbkeiagm" /v "Version" /t REG_SZ /d "1.49.2" /f | |||
for /f "usebackq delims=" %%A in (`dir /b /a:d "%SYSTEMDRIVE%\Users" ^| findstr /v /i /x /c:"Public" /c:"Default User" /c:"All Users"`) do ( | |||
echo PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%PUBLIC%\Desktop\Chromium.lnk'); $S.TargetPath = '%ProgramData%\chocolatey\bin\chrome.exe'; $S.IconLocation = '%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico'; $S.Save()" | |||
PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%PUBLIC%\Desktop\Chromium.lnk'); $S.TargetPath = '%ProgramData%\chocolatey\bin\chrome.exe'; $S.IconLocation = '%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico'; $S.Save()" | |||
copy /y "%PUBLIC%\Desktop\Chromium.lnk" "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned" | |||
) | |||
PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%ProgramData%\chocolatey\lib\ungoogled-chromium\Chromium.lnk'); $S.TargetPath = '%ProgramData%\chocolatey\bin\chrome.exe'; $S.IconLocation = '%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico'; $S.Save()" | |||
PowerShell -NoP -C "$Content = (Get-Content '%~dp0\Layout.xml'); $Content = $Content -replace '%%ALLUSERSPROFILE%%\\Microsoft\\Windows\\Start Menu\\Programs\\Firefox.lnk', '%ProgramData%\chocolatey\lib\ungoogled-chromium\Chromium.lnk' | Set-Content '%~dp0\Layout.xml'" | |||
for /f "usebackq tokens=2 delims=\" %%A in (`reg query "HKEY_USERS" ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do ( | |||
reg query "HKU\%%A" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > NUL 2>&1 | |||
if not errorlevel 1 ( | |||
if "%%A"=="AME_UserHive_Default" ( | |||
call :AFISCALL "%SYSTEMDRIVE%\Users\Default\AppData\Roaming" "%%A" | |||
) else ( | |||
for /f "usebackq tokens=2* delims= " %%B in (`reg query "HKU\%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "AppData" 2^>^&1 ^| findstr /R /X /C:".*AppData[ ]*REG_SZ[ ].*"`) do ( | |||
call :AFISCALL "%%C" "%%A" | |||
) | |||
) | |||
) | |||
) | |||
exit /b 0 | |||
:AFISCALL | |||
setlocal | |||
if not "%~2"=="AME_UserHive_Default" ( | |||
del "%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Chromium.lnk" /q /f | |||
PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Chromium.lnk'); $S.TargetPath = '%ProgramData%\chocolatey\bin\chrome.exe'; $S.IconLocation = '%ProgramData%\chocolatey\lib\ungoogled-chromium\chromium.ico'; $S.Save()" | |||
:: reg add "HKU\%~2\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "Favorites" /t REG_BINARY /d "00A40100003A001F80C827341F105C1042AA032EE45287D668260001002600EFBE12000000B938E4724DEFD801B773BC9C4DEFD8017514D99C4DEFD801140056003100000000006355AC3311005461736B42617200400009000400EFBE6355AC336355AC332E0000002C9D01000000010000000000000000000000000000008B2592005400610073006B00420061007200000016001201320097010000874F0749200046494C4545587E312E4C4E4B00007C0009000400EFBE6355AC336355AC332E000000309D0100000001000000000000000000520000000000589C4400460069006C00650020004500780070006C006F007200650072002E006C006E006B00000040007300680065006C006C00330032002E0064006C006C002C002D003200320030003600370000001C00120000002B00EFBED66CDB9C4DEFD8011C00420000001D00EFBE02004D006900630072006F0073006F00660074002E00570069006E0064006F00770073002E004500780070006C006F0072006500720000001C00260000001E00EFBE0200530079007300740065006D00500069006E006E006500640000001C000000008A0100003A001F80C827341F105C1042AA032EE45287D668260001002600EFBE12000000B938E4724DEFD801B773BC9C4DEFD80122CF36A0D490D90114005600310000000000BB565B9E11005461736B42617200400009000400EFBE6355AC33BB565C9E2E0000002C9D0100000001000000000000000000000000000000AD4EAB005400610073006B0042006100720000001600F80032000C090000BB566E9E20004368726F6D69756D2E6C6E6B00004A0009000400EFBEBB566E9EBB566E9E2E0000004FA80100000005000000000000000000000000000000E92A09004300680072006F006D00690075006D002E006C006E006B0000001C00220000001E00EFBE02005500730065007200500069006E006E006500640000001C00120000002B00EFBE22CF36A0D490D9011C005E0000001D00EFBE020043003A005C00500072006F006700720061006D0044006100740061005C00630068006F0063006F006C0061007400650079005C00620069006E005C006300680072006F006D0065002E0065007800650000001C000000FF" /f | |||
:: reg add "HKU\%~2\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "FavoritesResolve" /t REG_BINARY /d "320300004C0000000114020000000000C0000000000000468300800020000000964FD49C4DEFD801D66CDB9C4DEFD801A8B6C6DADDACD501970100000000000001000000000000000000000000000000A0013A001F80C827341F105C1042AA032EE45287D668260001002600EFBE12000000B938E4724DEFD801B773BC9C4DEFD8017514D99C4DEFD801140056003100000000006355AC3311005461736B42617200400009000400EFBE6355AC336355AC332E0000002C9D01000000010000000000000000000000000000008B2592005400610073006B00420061007200000016000E01320097010000874F0749200046494C4545587E312E4C4E4B00007C0009000400EFBE6355AC336355AC332E000000309D0100000001000000000000000000520000000000589C4400460069006C00650020004500780070006C006F007200650072002E006C006E006B00000040007300680065006C006C00330032002E0064006C006C002C002D003200320030003600370000001C00220000001E00EFBE02005500730065007200500069006E006E006500640000001C00120000002B00EFBED66CDB9C4DEFD8011C00420000001D00EFBE02004D006900630072006F0073006F00660074002E00570069006E0064006F00770073002E004500780070006C006F0072006500720000001C0000009B0000001C000000010000001C0000002D000000000000009A00000011000000030000000522C56C1000000000433A5C55736572735C757365725C417070446174615C526F616D696E675C4D6963726F736F66745C496E7465726E6574204578706C6F7265725C517569636B204C61756E63685C557365722050696E6E65645C5461736B4261725C46696C65204578706C6F7265722E6C6E6B000060000000030000A058000000000000006465736B746F702D666268387633650014B5BC69C2059D439B4347F5B6C63660A421C645405BED118152000C2923D22B14B5BC69C2059D439B4347F5B6C63660A421C645405BED118152000C2923D22B45000000090000A03900000031535053B1166D44AD8D7048A748402EA43D788C1D000000680000000048000000A3E237A16911924EA5DFB5374E1DB68A000000000000000000000000170300004C0000000114020000000000C000000000000046830080002000000022CF36A0D490D90122CF36A0D490D901177534A0D490D9010C09000000000000010000000000000000000000000000008A013A001F80C827341F105C1042AA032EE45287D668260001002600EFBE12000000B938E4724DEFD801B773BC9C4DEFD80122CF36A0D490D90114005600310000000000BB565B9E11005461736B42617200400009000400EFBE6355AC33BB565C9E2E0000002C9D0100000001000000000000000000000000000000AD4EAB005400610073006B0042006100720000001600F80032000C090000BB566E9E20004368726F6D69756D2E6C6E6B00004A0009000400EFBEBB566E9EBB566E9E2E0000004FA80100000005000000000000000000000000000000E92A09004300680072006F006D00690075006D002E006C006E006B0000001C00220000001E00EFBE02005500730065007200500069006E006E006500640000001C00120000002B00EFBE22CF36A0D490D9011C005E0000001D00EFBE020043003A005C00500072006F006700720061006D0044006100740061005C00630068006F0063006F006C0061007400650079005C00620069006E005C006300680072006F006D0065002E0065007800650000001C000000960000001C000000010000001C0000002D000000000000009500000011000000030000000522C56C1000000000433A5C55736572735C757365725C417070446174615C526F616D696E675C4D6963726F736F66745C496E7465726E6574204578706C6F7265725C517569636B204C61756E63685C557365722050696E6E65645C5461736B4261725C4368726F6D69756D2E6C6E6B000060000000030000A058000000000000006465736B746F702D666268387633650014B5BC69C2059D439B4347F5B6C636607BB96DAAC4FCED118159000C292F898514B5BC69C2059D439B4347F5B6C636607BB96DAAC4FCED118159000C292F898545000000090000A03900000031535053B1166D44AD8D7048A748402EA43D788C1D000000680000000048000000A3E237A16911924EA5DFB5374E1DB68A000000000000000000000000" /f | |||
) |
@ -0,0 +1,149 @@ | |||
@echo off | |||
if exist "%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe" exit /b 0 | |||
mkdir "%PROGRAMFILES%\UngoogledChromium" | |||
copy /y "UGC\chrlauncher.ini" "%PROGRAMFILES%\UngoogledChromium" | |||
copy /y "UGC\chrlauncher.exe" "%PROGRAMFILES%\UngoogledChromium" | |||
copy /y "UGC\chrome.exe" "%PROGRAMFILES%\UngoogledChromium" | |||
copy /y "UGC\ugc_uninstaller.exe" "%PROGRAMFILES%\UngoogledChromium\Ungoogled Uninstaller.exe" | |||
start "chrlauncher" /b /wait "%PROGRAMFILES%\UngoogledChromium\chrlauncher.exe" | |||
set "ICON=\"%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe\",0" | |||
@echo on | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML" /ve /t REG_SZ /d "Chromium HTML Document" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML" /v "AppUserModelId" /t REG_SZ /d "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML\Application" /v "AppUserModelId" /t REG_SZ /d "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML\Application" /v "ApplicationIcon" /t REG_SZ /d "%ICON%" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML\Application" /v "ApplicationName" /t REG_SZ /d "Ungoogled Chromium" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML\Application" /v "ApplicationDescription" /t REG_SZ /d "Ungoogled Chromium" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML\Application" /v "ApplicationCompany" /t REG_SZ /d "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML\DefaultIcon" /ve /t REG_SZ /d "%ICON%" /f | |||
reg add "HKLM\SOFTWARE\Classes\ChromiumHTML\shell\open\command" /ve /t REG_SZ /d """%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe"" --flag-switches-begin --no-default-browser-check --extension-mime-request-handling=always-prompt-for-install --flag-switches-end --single-argument %%1" /f | |||
::reg add "HKLM\SOFTWARE\Policies\Chromium" /v "DefaultBrowserSettingEnabled" /t REG_DWORD /d 0 /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium" /ve /t REG_SZ /d "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "Ungoogled Chromium" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities" /v "ApplicationIcon" /t REG_SZ /d "%ICON%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities" /v "ApplicationName" /t REG_SZ /d "Ungoogled Chromium" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\FileAssociations" /v ".htm" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\FileAssociations" /v ".html" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\FileAssociations" /v ".pdf" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\FileAssociations" /v ".shtml" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\FileAssociations" /v ".svg" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\FileAssociations" /v ".xht" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\FileAssociations" /v ".xhtml" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\FileAssociations" /v ".webp" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\Startmenu" /v "StartMenuInternet" /t REG_SZ /d "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "http" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "https" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "irc" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "mailto" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "mms" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "news" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "nntp" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "sms" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "smsto" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "snews" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "tel" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "urn" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities\URLAssociations" /v "webcal" /t REG_SZ /d "ChromiumHTML" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\DefaultIcon" /ve /t REG_SZ /d "%ICON%" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\InstallInfo" /v "HideIconsCommand" /t REG_SZ /d """%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe"" --hide-icons" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\InstallInfo" /v "ShowIconsCommand" /t REG_SZ /d """%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe"" --show-icons" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\InstallInfo" /v "IconsVisible" /t REG_DWORD /d "1" /f | |||
reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Chromium\shell\open\command" /ve /t REG_SZ /d """%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe"" /f | |||
reg add "HKCR\.htm\OpenWithProgids" /v "Chromium" /f | |||
reg add "HKCR\.html\OpenWithProgids" /v "Chromium" /f | |||
reg add "HKCR\.pdf\OpenWithProgids" /v "Chromium" /f | |||
reg add "HKCR\.shtml\OpenWithProgids" /v "Chromium" /f | |||
reg add "HKCR\.svg\OpenWithProgids" /v "Chromium" /f | |||
reg add "HKCR\.xht\OpenWithProgids" /v "Chromium" /f | |||
reg add "HKCR\.xhtml\OpenWithProgids" /v "Chromium" /f | |||
reg add "HKCR\.webp\OpenWithProgids" /v "Chromium" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe" /ve /t REG_SZ /d "%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe" /v "Path" /t REG_SZ /d "%PROGRAMFILES%\UngoogledChromium\bin" /f | |||
reg add "HKLM\SOFTWARE\RegisteredApplications" /v "Chromium" /d "SOFTWARE\Clients\StartMenuInternet\Chromium\Capabilities" /f | |||
copy /y "ugc_uninstaller.exe" "%ProgramData%\chocolatey\tools" | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-Uninstaller" /v "DisplayName" /t REG_SZ /d "Ungoogled Chromium" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-Uninstaller" /v "DisplayIcon" /t REG_SZ /d "%ICON%" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-Uninstaller" /v "UninstallString" /t REG_SZ /d """%PROGRAMFILES%\UngoogledChromium\Ungoogled Uninstaller.exe""" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-Uninstaller" /v "QuietUninstallString" /t REG_SZ /d """%PROGRAMFILES%\UngoogledChromium\Ungoogled Uninstaller.exe""" /f | |||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UGC-Uninstaller" /v "NoRepair" /t REG_DWORD /d "1" /f | |||
@echo off | |||
for /f "usebackq tokens=2 delims=\" %%A in (`reg query "HKEY_USERS" ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do ( | |||
REM If the "Volatile Environment" key exists, that means it is a proper user. Built in accounts/SIDs don't have this key. | |||
reg query "HKU\%%A" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > NUL 2>&1 | |||
if not errorlevel 1 ( | |||
PowerShell -NoP -ExecutionPolicy Bypass -File assoc.ps1 "Placeholder" "%%A" ".html:ChromiumHTML" ".htm:ChromiumHTML" "Proto:https:ChromiumHTML" "Proto:http:ChromiumHTML" | |||
) | |||
) | |||
mkdir "%PROGRAMFILES%\UngoogledChromium\Extensions" | |||
copy /y "UGC\Chromium.Web.Store.crx" "%PROGRAMFILES%\UngoogledChromium\Extensions" | |||
copy /y "uBlock.Origin.crx" "%PROGRAMFILES%\UngoogledChromium\Extensions" | |||
copy /y "UGC\initial_preferences_ugc" "%PROGRAMFILES%\UngoogledChromium\bin\initial_preferences" | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions\ocaahdebbfolfmndjeplogmgcagdmblk" /v "Path" /t REG_SZ /d "%PROGRAMFILES%\UngoogledChromium\Extensions\Chromium.Web.Store.crx" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions\ocaahdebbfolfmndjeplogmgcagdmblk" /v "Version" /t REG_SZ /d "1.5.4" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions\cjpalhdlnbpafiamejdnhcphjbkeiagm" /v "Path" /t REG_SZ /d "%PROGRAMFILES%\UngoogledChromium\Extensions\uBlock.Origin.crx" /f | |||
reg add "HKLM\SOFTWARE\WOW6432Node\Google\Chrome\Extensions\cjpalhdlnbpafiamejdnhcphjbkeiagm" /v "Version" /t REG_SZ /d "1.52.2" /f | |||
schtasks /create /tn "UGC Update" /tr "\"%PROGRAMFILES%\UngoogledChromium\chrlauncher.exe\"" /ru "SYSTEM" /sc ONLOGON /delay "0000:30" /it /rl HIGHEST /f > NUL | |||
PowerShell -NoP -C "$TaskSet = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries; Set-ScheduledTask -TaskName 'UGC Update' -Settings $TaskSet" > NUL | |||
for /f "usebackq delims=" %%A in (`dir /b /a:d "%SYSTEMDRIVE%\Users" ^| findstr /v /i /x /c:"Public" /c:"Default User" /c:"All Users"`) do ( | |||
echo PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%PUBLIC%\Desktop\Chromium.lnk'); $S.TargetPath = '%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe'; $S.Arguments = '--flag-switches-begin --no-default-browser-check --extension-mime-request-handling=always-prompt-for-install --flag-switches-end'; $S.WorkingDirectory = '%PROGRAMFILES%\UngoogledChromium\bin'; $S.IconLocation = '%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe, 0'; $S.Save()" | |||
PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%PUBLIC%\Desktop\Chromium.lnk'); $S.TargetPath = '%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe'; $S.Arguments = '--flag-switches-begin --no-default-browser-check --extension-mime-request-handling=always-prompt-for-install --flag-switches-end'; $S.WorkingDirectory = '%PROGRAMFILES%\UngoogledChromium\bin'; $S.IconLocation = '%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe, 0'; $S.Save()" | |||
mkdir "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned" | |||
copy /y "%PUBLIC%\Desktop\Chromium.lnk" "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned" | |||
) | |||
PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Chromium.lnk'); $S.TargetPath = '%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe'; $S.Arguments = '--flag-switches-begin --no-default-browser-check --extension-mime-request-handling=always-prompt-for-install --flag-switches-end'; $S.WorkingDirectory = '%PROGRAMFILES%\UngoogledChromium\bin'; $S.IconLocation = '%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe, 0'; $S.Save()" | |||
PowerShell -NoP -C "$Content = (Get-Content '%~dp0\Layout.xml'); $Content = $Content -replace '%%ALLUSERSPROFILE%%\\Microsoft\\Windows\\Start Menu\\Programs\\Firefox.lnk', '%%ALLUSERSPROFILE%%\Microsoft\Windows\Start Menu\Programs\Chromium.lnk' | Set-Content '%~dp0\Layout.xml'" | |||
for /f "usebackq tokens=2 delims=\" %%A in (`reg query "HKEY_USERS" ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do ( | |||
reg query "HKU\%%A" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > NUL 2>&1 | |||
if not errorlevel 1 ( | |||
if "%%A"=="AME_UserHive_Default" ( | |||
call :AFISCALL "%SYSTEMDRIVE%\Users\Default\AppData\Roaming" "%%A" | |||
) else ( | |||
for /f "usebackq tokens=2* delims= " %%B in (`reg query "HKU\%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "AppData" 2^>^&1 ^| findstr /R /X /C:".*AppData[ ]*REG_SZ[ ].*"`) do ( | |||
call :AFISCALL "%%C" "%%A" | |||
) | |||
) | |||
) | |||
) | |||
exit /b 0 | |||
:AFISCALL | |||
setlocal | |||
if not "%~2"=="AME_UserHive_Default" ( | |||
del "%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Chromium.lnk" /q /f | |||
mkdir "%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar" | |||
PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Chromium.lnk'); $S.TargetPath = '%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe'; $S.Arguments = '--flag-switches-begin --no-default-browser-check --extension-mime-request-handling=always-prompt-for-install --flag-switches-end'; $S.IconLocation = '%PROGRAMFILES%\UngoogledChromium\bin\chrome.exe, 0'; $S.Save()" | |||
::reg add "HKU\%~2\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "Favorites" /t REG_BINARY /d "00a40100003a001f80c827341f105c1042aa032ee45287d668260001002600efbe120000001a1e97454eefd801757130704eefd8015eb737704eefd801140056003100000000006355693411005461736b42617200400009000400efbe63556934635569342e0000009d8a0100000001000000000000000000000000000000a29f33005400610073006b00420061007200000016001201320097010000a754662a200046494c4545587e312e4c4e4b00007c0009000400efbe63556934635569342e0000009e8a0100000001000000000000000000520000000000a413a200460069006c00650020004500780070006c006f007200650072002e006c006e006b00000040007300680065006c006c00330032002e0064006c006c002c002d003200320030003600370000001c00120000002b00efbe22283a704eefd8011c00420000001d00efbe02004d006900630072006f0073006f00660074002e00570069006e0064006f00770073002e004500780070006c006f0072006500720000001c00260000001e00efbe0200530079007300740065006d00500069006e006e006500640000001c00000000780300003a001f49471a0359723fa74489c55595fe6b30ee260001002600efbe10000000ce57fdd54defd8016b5d16a0300dda016d49df38310dda011400820074001c004346534616003100000000006355e033120041707044617461000000741a595e96dfd3488d671733bcee28bac5cdfadf9f6756418947c5c76bc0b67f400009000400efbe6355e0336257620b2e00000014070000000002000000000000000000000000000000c013870041007000700044006100740061000000420056003100000000006257b3101000526f616d696e6700400009000400efbe6355e0336257b3102e0000001907000000000200000000000000000000000000000045848a0052006f0061006d0069006e006700000016005c0031000000000093565c2714004d4943524f537e310000440009000400efbe6355e0336257640b2e0000001a0700000000020000000000000000000000000000008d3e04014d006900630072006f0073006f0066007400000018006c00310000000000635544341000494e5445524e7e310000540009000400efbe6355e0336257a20b2e0000002a070000000002000000000000000000000000000000f9f4e30049006e007400650072006e006500740020004500780070006c006f00720065007200000018006200310000000000635545341100515549434b4c7e3100004a0009000400efbe6355e0336257a20b2e0000002b070000000002000000000000000000000000000000db7ee80051007500690063006b0020004c00610075006e00630068000000180060003100000000006355693412005553455250497e310000480009000400efbe635544346257780c2e000000a68701000000020000000000000000000000000000008be53a0055007300650072002000500069006e006e00650064000000180056003100000000000000000010005461736b42617200400009000400efbe00000000000000002e00000000000000000000000000000000000000000000000000000000005400610073006b0042006100720000001600840032003209000062570e1120004368726f6d69756d2e6c6e6b00004a0009000400efbe62575b1062570e112e000000467a00000000080000000000000000000000000000005f89ee004300680072006f006d00690075006d002e006c006e006b0000001c001e0000001d00efbe02004300680072006f006d00690075006d0000001c000000ff" /f | |||
::reg add "HKU\%~2\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "FavoritesResolve" /t REG_BINARY /d "330300004c0000000114020000000000c0000000000000468300800020000000e7e332704eefd80122283a704eefd8015cf4e1fbd161d801970100000000000001000000000000000000000000000000a0013a001f80c827341f105c1042aa032ee45287d668260001002600efbe120000001a1e97454eefd801757130704eefd8015eb737704eefd801140056003100000000006355693411005461736b42617200400009000400efbe63556934635569342e0000009d8a0100000001000000000000000000000000000000a29f33005400610073006b00420061007200000016000e01320097010000a754662a200046494c4545587e312e4c4e4b00007c0009000400efbe63556934635569342e0000009e8a0100000001000000000000000000520000000000a413a200460069006c00650020004500780070006c006f007200650072002e006c006e006b00000040007300680065006c006c00330032002e0064006c006c002c002d003200320030003600370000001c00220000001e00efbe02005500730065007200500069006e006e006500640000001c00120000002b00efbe22283a704eefd8011c00420000001d00efbe02004d006900630072006f0073006f00660074002e00570069006e0064006f00770073002e004500780070006c006f0072006500720000001c0000009c0000001c000000010000001c0000002d000000000000009b000000110000000300000013ebc8041000000000433a5c55736572735c4d634e696e5c417070446174615c526f616d696e675c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e63685c557365722050696e6e65645c5461736b4261725c46696c65204578706c6f7265722e6c6e6b000060000000030000a058000000000000006465736b746f702d666a63716f626d00a84d9f7c73d4f344bf15faa23dfd8b4733f18e66405bed11aa54000c29341e2ea84d9f7c73d4f344bf15faa23dfd8b4733f18e66405bed11aa54000c29341e2e45000000090000a03900000031535053b1166d44ad8d7048a748402ea43d788c1d0000006800000000480000009b7b87bf89df6547b6a80dc335f1c9bf000000000000000000000000060500004c0000000114020000000000c00000000000004683008000200000006d6c53b0300dda01ed0c2d77310dda01a1ac2577310dda0132090000000000000100000000000000000000000000000078033a001f49471a0359723fa74489c55595fe6b30ee260001002600efbe10000000ce57fdd54defd8016b5d16a0300dda016d49df38310dda011400820074001c004346534616003100000000006355e033120041707044617461000000741a595e96dfd3488d671733bcee28bac5cdfadf9f6756418947c5c76bc0b67f400009000400efbe6355e0336257620b2e00000014070000000002000000000000000000000000000000c013870041007000700044006100740061000000420056003100000000006257b3101000526f616d696e6700400009000400efbe6355e0336257b3102e0000001907000000000200000000000000000000000000000045848a0052006f0061006d0069006e006700000016005c0031000000000093565c2714004d4943524f537e310000440009000400efbe6355e0336257640b2e0000001a0700000000020000000000000000000000000000008d3e04014d006900630072006f0073006f0066007400000018006c00310000000000635544341000494e5445524e7e310000540009000400efbe6355e0336257a20b2e0000002a070000000002000000000000000000000000000000f9f4e30049006e007400650072006e006500740020004500780070006c006f00720065007200000018006200310000000000635545341100515549434b4c7e3100004a0009000400efbe6355e0336257a20b2e0000002b070000000002000000000000000000000000000000db7ee80051007500690063006b0020004c00610075006e00630068000000180060003100000000006355693412005553455250497e310000480009000400efbe635544346257780c2e000000a68701000000020000000000000000000000000000008be53a0055007300650072002000500069006e006e00650064000000180056003100000000000000000010005461736b42617200400009000400efbe00000000000000002e00000000000000000000000000000000000000000000000000000000005400610073006b0042006100720000001600840032003209000062570e1120004368726f6d69756d2e6c6e6b00004a0009000400efbe62575b1062570e112e000000467a00000000080000000000000000000000000000005f89ee004300680072006f006d00690075006d002e006c006e006b0000001c001e0000001d00efbe02004300680072006f006d00690075006d0000001c000000970000001c000000010000001c0000002d0000000000000096000000110000000300000013ebc8041000000000433a5c55736572735c4d634e696e5c417070446174615c526f616d696e675c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e63685c557365722050696e6e65645c5461736b4261725c4368726f6d69756d2e6c6e6b000060000000030000a058000000000000006465736b746f702d666a63716f626d00a84d9f7c73d4f344bf15faa23dfd8b476a5169c1e978ee11aa63000c290b7f7ca84d9f7c73d4f344bf15faa23dfd8b476a5169c1e978ee11aa63000c290b7f7c45000000090000a03900000031535053b1166d44ad8d7048a748402ea43d788c1d0000006800000000480000009b7b87bf89df6547b6a80dc335f1c9bf000000000000000000000000" /f | |||
) |
@ -0,0 +1,96 @@ | |||
[chrlauncher] | |||
# Custom Chromium update URL (string): | |||
#ChromiumUpdateUrl=https://chromium.woolyss.com/api/v3/?os=windows&bit=%d&type=%s&out=string | |||
# Command line for Chromium (string): | |||
# See here: https://peter.sh/experiments/chromium-command-line-switches/ | |||
ChromiumCommandLine=--flag-switches-begin --no-default-browser-check --flag-switches-end | |||
# Chromium executable file name (string): | |||
ChromiumBinary=chrome.exe | |||
# Chromium binaries directory (string): | |||
# Relative (to chrlauncher directory) or full path (env. variables supported). | |||
ChromiumDirectory=.\bin | |||
# Set Chromium binaries architecture (integer): | |||
# | |||
# 0 -> autodetect (default) | |||
# 64 -> 64-bit | |||
# 32 -> 32-bit | |||
ChromiumArchitecture=0 | |||
# Auto download updates if found (boolean) | |||
# | |||
# false -> show tray tip if update found, downloading manually (default) | |||
# true -> auto download update and install it! | |||
ChromiumAutoDownload=true | |||
# Bring chrlauncher window when download started (boolean) | |||
# | |||
# false -> don't bring main window to front automatically | |||
# true -> bring chrlauncher window to front when download started (default) | |||
ChromiumBringToFront=false | |||
# Set download in foreground mode (boolean): | |||
# | |||
# false -> start browser and check/download/install update in background | |||
# true -> start browser only when check/download/install update complete (default) | |||
ChromiumWaitForDownloadEnd=false | |||
# Use chrlauncher as updater, but does not start Chromium (boolean): | |||
# | |||
# false -> update & start Chromium (default) | |||
# true -> download & install Chromium update without start | |||
ChromiumUpdateOnly=true | |||
# Type of Chromium builds: | |||
# | |||
# dev-official | |||
# Official development builds from snapshots repository | |||
# "storage.googleapis.com/chromium-browser-snapshots/index.html" (32/64 bit) | |||
# | |||
# stable-codecs-sync | |||
# Unofficial stable builds with codecs | |||
# "github.com/Hibbiki/chromium-win64/releases" (64 bit) | |||
# "github.com/Hibbiki/chromium-win32/releases" (32 bit) | |||
# | |||
# dev-nosync | |||
# Unofficial development builds without Google services | |||
# "github.com/RobRich999/Chromium_Clang/releases" (32/64 bit) | |||
# | |||
# dev-codecs-sync | |||
# Unofficial development builds with codecs and without Google services | |||
# "github.com/macchrome/winchrome/releases" (64 bit) | |||
# | |||
# dev-codecs-nosync | |||
# Unofficial development builds with codecs and without Google services | |||
# "github.com/macchrome/winchrome/releases" (64 bit) | |||
# | |||
# ungoogled-chromium | |||
# Unofficial builds without Google integration and enhanced privacy (based on Eloston project) | |||
# "github.com/macchrome/winchrome/releases/" (32/64 bit) | |||
# "github.com/Eloston/ungoogled-chromium" | |||
# | |||
# stable-codecs-nosync | |||
# Unofficial stable builds with codecs and without google services | |||
# !!! DISCONTINUED since June 2018 !!! | |||
ChromiumType=ungoogled-chromium | |||
# Check for new Chromium version once in X days (integer): | |||
# | |||
# 2 -> check updates once in a X days (default) | |||
# 0 -> disable update checking | |||
# -1 -> force update checking | |||
ChromiumCheckPeriod=-1 | |||
# Last cached update checking timestamp (integer): | |||
ChromiumLastCheck=0 | |||
# | |||
# Internal settings (SDK) | |||
# | |||
# Set custom useragent (string): | |||
#UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.0.0 Safari/537.36 |
@ -1,5 +1,7 @@ | |||
{ | |||
"https_only_mode_enabled": true, | |||
"skip_first_run_ui" : true, | |||
"show_welcome_page" : false, | |||
"extensions": { | |||
"settings": { | |||
"ocaahdebbfolfmndjeplogmgcagdmblk": { |
@ -1,3 +0,0 @@ | |||
Write-Host 'Running uninstaller...' | |||
try { <Command> } catch {} | |||
Write-Host 'Uninstaller complete' |