Browse Source

Update to v0.6

master 0.6
Styris 6 months ago
parent
commit
1e7da77e98
23 changed files with 284 additions and 204 deletions
  1. +8
    -0
      src/Configuration/features/base/appx.yml
  2. +1
    -1
      src/Configuration/features/base/config.yml
  3. +2
    -2
      src/Configuration/features/base/files.yml
  4. +14
    -0
      src/Configuration/features/base/regedits.yml
  5. +4
    -3
      src/Configuration/features/base/services.yml
  6. +1
    -8
      src/Configuration/features/base/software.yml
  7. +2
    -1
      src/Executables/BRAVE.bat
  8. +1
    -0
      src/Executables/FIREFOX.bat
  9. +1
    -0
      src/Executables/LIBREWOLF.bat
  10. +2
    -2
      src/Executables/ONED.bat
  11. +0
    -160
      src/Executables/UGC.bat
  12. BIN
      src/Executables/UGC/Chromium.Web.Store.crx
  13. +149
    -0
      src/Executables/UGC/UGC.bat
  14. BIN
      src/Executables/UGC/chrlauncher.exe
  15. +96
    -0
      src/Executables/UGC/chrlauncher.ini
  16. BIN
      src/Executables/UGC/chrome.exe
  17. +2
    -0
      src/Executables/UGC/initial_preferences_ugc
  18. BIN
      src/Executables/UGC/ugc_uninstaller.exe
  19. +0
    -23
      src/Executables/UGCWIDEVINE.ps1
  20. BIN
      src/Executables/chromium.ico
  21. BIN
      src/Executables/uBlock.Origin.crx
  22. +0
    -3
      src/Executables/ugcChocoUninstall.ps1
  23. +1
    -1
      src/playbook.conf

+ 8
- 0
src/Configuration/features/base/appx.yml View File

@ -78,13 +78,21 @@ actions:
- !appx: {name: '*MicrosoftTeams*', type: family}
- !appx: {name: '*Clipchamp*', type: family}
- !appx: {name: '*QuickAssist*', type: family}
- !appx: {name: '*Windows.DevHome*', type: family}
- !appx: {name: '*OutlookForWindows*', type: family}
- !appx: {name: '*MSPaint*', type: family}
- !appx: {name: '*ScreenSketch*', type: family}
- !appx: {name: '*CamoStudio*', type: family}
- !appx: {name: '*WindowsBackup*', type: app}
- !appx: {name: '*Global.IrisService*', type: app}
- !appx: {name: '*Global.Accounts*', type: app}
- !appx: {name: '*Global.ValueBanner*', type: app}
- !appx: {name: '*Global.DesktopSpotlight*', type: app}
- !appx: {name: '*Client.CBS*', operation: clearCache}
- !appx: {name: '*StartMenuExperienceHost*', operation: clearCache}


+ 1
- 1
src/Configuration/features/base/config.yml View File

@ -21,7 +21,7 @@ actions:
exe: "CLEANUP.bat"
weight: 30
- !run: {exe: "NSudoLC.exe", args: '-U:C explorer.exe', baseDir: true}
- !run: {exe: "explorer.exe", wait: false, runas: currentUser}
- !writeStatus: {status: 'Configuring permissions', option: "security-enhanced"}
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System', value: 'ConsentPromptBehaviorAdmin', type: REG_DWORD, data: '5', option: "security-enhanced"}


+ 2
- 2
src/Configuration/features/base/files.yml View File

@ -61,8 +61,8 @@ actions:
name: "OneDrive"
- !taskKill:
name: "msiexec"
- !file:
path: "%windir%\\System32\\wlidsvc.dll"
# - !file:
# path: "%windir%\\System32\\wlidsvc.dll"
- !file:
path: "%windir%\\System32\\WpcDesktopMonSvc.dll"
- !file:


+ 14
- 0
src/Configuration/features/base/regedits.yml View File

@ -39,6 +39,11 @@ actions:
# Disable opening GameBar when pressing the XBOX button on an XBOX controller
- !registryValue: {path: 'HKCU\Software\Microsoft\GameBar', value: 'UseNexusForGameBarEnabled', type: REG_DWORD, data: '0'}
# Hide 'Chat' taskbar option from Settings
- !registryValue: {path: 'HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Chat', value: 'ChatIcon', type: REG_DWORD, data: '3'}
# Hide 'Copilot' taskbar option from Settings
- !registryValue: {path: 'HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot', value: 'TurnOffWindowsCopilot', type: REG_DWORD, data: '1'}
# Disables SmartScreen
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer', value: 'SmartScreenEnabled', type: REG_SZ, data: 'Off'}
@ -327,6 +332,9 @@ actions:
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'LaunchTo', type: REG_DWORD, data: '1'}
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'HideFileExt', type: REG_DWORD, data: '0'}
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'Hidden', type: REG_DWORD, data: '1'}
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'ShowCopilotButton', type: REG_DWORD, data: '0'}
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'Start_IrisRecommendations', type: REG_DWORD, data: '0'}
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'Start_AccountNotifications', type: REG_DWORD, data: '0'}
- !registryValue: {option: "ui", path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'TaskbarGlomLevel', type: REG_DWORD, data: '2'}
- !registryValue: {option: "ui", path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'TaskbarDa', type: REG_DWORD, data: '0'}
- !registryValue: {option: "ui", path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'TaskbarAl', type: REG_DWORD, data: '0'}
@ -420,6 +428,12 @@ actions:
- !registryValue: { path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\downloadsFolder', type: REG_SZ, value: 'Value', data: 'Allow' }
- !registryValue: { path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\downloadsFolder', type: REG_SZ, value: 'Value', data: 'Allow' }
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Start', value: 'ShowFrequentList', type: REG_DWORD, data: '0'}
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Start', value: 'ShowRecentList', type: REG_DWORD, data: '0'}
# Remove 'Gallery' in file explorer
- !registryKey: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace_41040327\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}', operation: delete}
- !writeStatus: {status: 'Checking users'}
- !run:
exeDir: true


+ 4
- 3
src/Configuration/features/base/services.yml View File

@ -147,6 +147,7 @@ actions:
- !service:
name: "XboxNetApiSvc"
operation: stop
- !service:
name: "wlidsvc"
operation: delete
# Breaks APPX installation sometimes
# - !service:
# name: "wlidsvc"
# operation: delete

+ 1
- 8
src/Configuration/features/base/software.yml View File

@ -46,7 +46,7 @@ actions:
- !writeStatus: {status: 'Installing UGC', option: "browser-ugc"}
- !run:
exeDir: true
exe: "UGC.bat"
exe: "UGC\\UGC.bat"
weight: 150
option: "browser-ugc"
@ -300,13 +300,6 @@ actions:
weight: 200
option: "software"
- !writeStatus: {status: 'Installing DirectX 9', option: "software"}
- !run:
path: '%ProgramData%\chocolatey\bin'
exe: 'choco.exe'
args: 'install -y --allow-empty-checksums directx'
weight: 150
option: "software"
- !writeStatus: {status: 'Installing OnlyOffice', option: "office-onlyoffice"}
- !run:
path: '%ProgramData%\chocolatey\bin'


+ 2
- 1
src/Executables/BRAVE.bat View File

@ -53,7 +53,8 @@ exit /b 0
setlocal
if not "%~2"=="AME_UserHive_Default" (
del "%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Chromium.lnk" /q /f
del "%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Brave.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\Brave.lnk'); $S.TargetPath = '%dir%\brave.exe'; $S.WorkingDirectory = '%dir%'; $S.Save()"
:: reg add "HKU\%~2\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "Favorites" /t REG_BINARY /d "00A40100003A001F80C827341F105C1042AA032EE45287D668260001002600EFBE12000000B938E4724DEFD801B773BC9C4DEFD8017514D99C4DEFD801140056003100000000006355AC3311005461736B42617200400009000400EFBE6355AC336355AC332E0000002C9D01000000010000000000000000000000000000008B2592005400610073006B00420061007200000016001201320097010000874F0749200046494C4545587E312E4C4E4B00007C0009000400EFBE6355AC336355AC332E000000309D0100000001000000000000000000520000000000589C4400460069006C00650020004500780070006C006F007200650072002E006C006E006B00000040007300680065006C006C00330032002E0064006C006C002C002D003200320030003600370000001C00120000002B00EFBED66CDB9C4DEFD8011C00420000001D00EFBE02004D006900630072006F0073006F00660074002E00570069006E0064006F00770073002E004500780070006C006F0072006500720000001C00260000001E00EFBE0200530079007300740065006D00500069006E006E006500640000001C00000000E00100003A001F80C827341F105C1042AA032EE45287D668260001002600EFBE12000000B938E4724DEFD801B773BC9C4DEFD801FFAAD393E790D90114005600310000000000BB56D6B011005461736B42617200400009000400EFBE6355AC33BB56D7B02E0000002C9D0100000001000000000000000000000000000000CA148A005400610073006B00420061007200000016004E01320063070000BB56E4B0200042726176652E6C6E6B00440009000400EFBEBB56E4B0BB56E4B02E000000408C000000000400000000000000000000000000000030214000420072006100760065002E006C006E006B0000001800220000001E00EFBE02005500730065007200500069006E006E006500640000001800120000002B00EFBEFFAAD393E790D9011800BE0000001D00EFBE02007B00360044003800300039003300370037002D0036004100460030002D0034003400340042002D0038003900350037002D004100330037003700330046003000320032003000300045007D005C004200720061007600650053006F006600740077006100720065005C00420072006100760065002D00420072006F0077007300650072005C004100700070006C00690063006100740069006F006E005C00620072006100760065002E00650078006500000018000000FF" /f


+ 1
- 0
src/Executables/FIREFOX.bat View File

@ -72,6 +72,7 @@ setlocal
if exist "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" (
if not "%~2"=="AME_UserHive_Default" (
del "%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Firefox.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\Firefox.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Firefox\firefox.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Firefox'; $S.Save()"
reg add "HKU\%~2\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "FavoritesResolve" /t REG_BINARY /d "320300004c0000000114020000000000c0000000000000468300800020000000964fd49c4defd801d66cdb9c4defd801a8b6c6daddacd501970100000000000001000000000000000000000000000000a0013a001f80c827341f105c1042aa032ee45287d668260001002600efbe12000000b938e4724defd801b773bc9c4defd8017514d99c4defd801140056003100000000006355ac3311005461736b42617200400009000400efbe6355ac336355ac332e0000002c9d01000000010000000000000000000000000000008b2592005400610073006b00420061007200000016000e01320097010000874f0749200046494c4545587e312e4c4e4b00007c0009000400efbe6355ac336355ac332e000000309d0100000001000000000000000000520000000000589c4400460069006c00650020004500780070006c006f007200650072002e006c006e006b00000040007300680065006c006c00330032002e0064006c006c002c002d003200320030003600370000001c00220000001e00efbe02005500730065007200500069006e006e006500640000001c00120000002b00efbed66cdb9c4defd8011c00420000001d00efbe02004d006900630072006f0073006f00660074002e00570069006e0064006f00770073002e004500780070006c006f0072006500720000001c0000009b0000001c000000010000001c0000002d000000000000009a00000011000000030000000522c56c1000000000433a5c55736572735c757365725c417070446174615c526f616d696e675c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e63685c557365722050696e6e65645c5461736b4261725c46696c65204578706c6f7265722e6c6e6b000060000000030000a058000000000000006465736b746f702d666268387633650014b5bc69c2059d439b4347f5b6c63660a421c645405bed118152000c2923d22b14b5bc69c2059d439b4347f5b6c63660a421c645405bed118152000c2923d22b45000000090000a03900000031535053b1166d44ad8d7048a748402ea43d788c1d000000680000000048000000a3e237a16911924ea5dfb5374e1db68a000000000000000000000000460300004c0000000114020000000000c0000000000000468300800020000000411d47ab1561d901411d47ab1561d901411d47ab1561d901580400000000000001000000000000000000000000000000ba013a001f80c827341f105c1042aa032ee45287d668260001002600efbe12000000b938e4724defd801b773bc9c4defd801411d47ab1561d901140056003100000000007c56500c11005461736b42617200400009000400efbe6355ac337c56510c2e0000002c9d0100000001000000000000000000000000000000fce08e005400610073006b004200610072000000160028013200580400007c56840c200046697265666f782e6c6e6b00480009000400efbe7c56840c7c56840c2e00000057780000000003000000000000000000000000000000bf560100460069007200650066006f0078002e006c006e006b0000001a00220000001e00efbe02005500730065007200500069006e006e006500640000001a00120000002b00efbe411d47ab1561d9011a00920000001d00efbe02007b00360044003800300039003300370037002d0036004100460030002d0034003400340042002d0038003900350037002d004100330037003700330046003000320032003000300045007d005c004d006f007a0069006c006c0061002000460069007200650066006f0078005c00660069007200650066006f0078002e0065007800650000001a000000950000001c000000010000001c0000002d000000000000009400000011000000030000000522c56c1000000000433a5c55736572735c757365725c417070446174615c526f616d696e675c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e63685c557365722050696e6e65645c5461736b4261725c46697265666f782e6c6e6b000060000000030000a058000000000000006465736b746f702d666268387633650014b5bc69c2059d439b4347f5b6c636600bec6f75f9cced118156000c291f4a8414b5bc69c2059d439b4347f5b6c636600bec6f75f9cced118156000c291f4a8445000000090000a03900000031535053b1166d44ad8d7048a748402ea43d788c1d000000680000000048000000a3e237a16911924ea5dfb5374e1db68a000000000000000000000000" /f


+ 1
- 0
src/Executables/LIBREWOLF.bat View File

@ -44,6 +44,7 @@ setlocal
if not "%~2"=="AME_UserHive_Default" (
del "%~1\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\LibreWolf.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\LibreWolf.lnk'); $S.TargetPath = '%ProgramFiles%\LibreWolf\librewolf.exe'; $S.WorkingDirectory = '%ProgramFiles%\LibreWolf'; $S.Save()"
:: reg add "HKU\%~2\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "Favorites" /t REG_BINARY /d "00A40100003A001F80C827341F105C1042AA032EE45287D668260001002600EFBE12000000B938E4724DEFD801B773BC9C4DEFD8017514D99C4DEFD801140056003100000000006355AC3311005461736B42617200400009000400EFBE6355AC336355AC332E0000002C9D01000000010000000000000000000000000000008B2592005400610073006B00420061007200000016001201320097010000874F0749200046494C4545587E312E4C4E4B00007C0009000400EFBE6355AC336355AC332E000000309D0100000001000000000000000000520000000000589C4400460069006C00650020004500780070006C006F007200650072002E006C006E006B00000040007300680065006C006C00330032002E0064006C006C002C002D003200320030003600370000001C00120000002B00EFBED66CDB9C4DEFD8011C00420000001D00EFBE02004D006900630072006F0073006F00660074002E00570069006E0064006F00770073002E004500780070006C006F0072006500720000001C00260000001E00EFBE0200530079007300740065006D00500069006E006E006500640000001C00000000B80100003A001F80C827341F105C1042AA032EE45287D668260001002600EFBE12000000B938E4724DEFD801B773BC9C4DEFD8017C6FD6F4F190D90114005600310000000000BB56E4B011005461736B42617200400009000400EFBE6355AC33BB56E4B02E0000002C9D010000000100000000000000000000000000000093BB3D005400610073006B004200610072000000160026013200EB060000BB56EAB220004C49425245577E312E4C4E4B00004C0009000400EFBEBB56ADBABB56ADBA2E000000638C0000000004000000000000000000000000000000F12CFE004C00690062007200650057006F006C0066002E006C006E006B0000001C00220000001E00EFBE02005500730065007200500069006E006E006500640000001C00120000002B00EFBE81D3D8F4F190D9011C008A0000001D00EFBE02007B00360044003800300039003300370037002D0036004100460030002D0034003400340042002D0038003900350037002D004100330037003700330046003000320032003000300045007D005C004C00690062007200650057006F006C0066005C006C00690062007200650077006F006C0066002E0065007800650000001C000000FF" /f


+ 2
- 2
src/Executables/ONED.bat View File

@ -14,8 +14,8 @@ taskkill /f /im "OneDrive.exe"
for /f "usebackq delims=" %%a in (`dir /b /a:d "%SystemDrive%\Users"`) do (
echo rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\OneDrive"
rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\OneDrive"
echo rmdir /q /s "%SystemDrive%\Users\%%a\OneDrive"
rmdir /q /s "%SystemDrive%\Users\%%a\OneDrive"
::echo rmdir /q /s "%SystemDrive%\Users\%%a\OneDrive"
::rmdir /q /s "%SystemDrive%\Users\%%a\OneDrive"
echo del /q /f "%SystemDrive%\Users\%%a\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
del /q /f "%SystemDrive%\Users\%%a\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"


+ 0
- 160
src/Executables/UGC.bat View File

@ -1,160 +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'"
PowerShell -NoP -EP Unrestricted -File "UGCWIDEVINE.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
)

BIN
src/Executables/Chromium.Web.Store.crx → src/Executables/UGC/Chromium.Web.Store.crx View File


+ 149
- 0
src/Executables/UGC/UGC.bat View File

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

BIN
src/Executables/UGC/chrlauncher.exe View File


+ 96
- 0
src/Executables/UGC/chrlauncher.ini View File

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

BIN
src/Executables/UGC/chrome.exe View File


src/Executables/initial_preferences_ugc → src/Executables/UGC/initial_preferences_ugc View File

@ -1,5 +1,7 @@
{
"https_only_mode_enabled": true,
"skip_first_run_ui" : true,
"show_welcome_page" : false,
"extensions": {
"settings": {
"ocaahdebbfolfmndjeplogmgcagdmblk": {

BIN
src/Executables/ugc_uninstaller.exe → src/Executables/UGC/ugc_uninstaller.exe View File


+ 0
- 23
src/Executables/UGCWIDEVINE.ps1 View File

@ -1,23 +0,0 @@
# https://chromium.woolyss.com/#widevine
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
# make temp directories
$rootTemp = Join-Path -Path $env:TEMP -ChildPath $([System.IO.Path]::GetRandomFileName())
New-Item $rootTemp -ItemType Directory -Force | Out-Null
# get latest version and download it
$latestVersion = (Invoke-RestMethod "https://dl.google.com/widevine-cdm/versions.txt" -UseBasicParsing) -split "`n" | ? {$_.Trim() -ne "" } | Select-Object -Last 1
Invoke-WebRequest "https://dl.google.com/widevine-cdm/$latestVersion-win-x64.zip" -OutFile "$rootTemp\widevine-ugc.zip" -UseBasicParsing
# extract to temp
Expand-Archive "$rootTemp\widevine-ugc.zip" -DestinationPath $rootTemp -Force
# copy to UGC
foreach ($user in $(Get-ChildItem "$env:SystemDrive\Users" -Force -Directory -Exclude "All Users", "Default User", "Public")) {
$widevinePath = "$user\AppData\Local\Chromium\User Data\WidevineCdm\_platform_specific"
New-Item @("$widevinePath\..", "$widevinePath") -Force -ItemType Directory
Copy-Item "$rootTemp\*" -Destination $widevinePath -Recurse -Force -Include "*.dll*"
Copy-Item "$rootTemp\*" -Destination "$widevinePath\.." -Recurse -Force -Exclude "*.zip", "*.dll*"
}

BIN
src/Executables/chromium.ico View File

Before After

BIN
src/Executables/uBlock.Origin.crx View File


+ 0
- 3
src/Executables/ugcChocoUninstall.ps1 View File

@ -1,3 +0,0 @@
Write-Host 'Running uninstaller...'
try { <Command> } catch {}
Write-Host 'Uninstaller complete'

+ 1
- 1
src/playbook.conf View File

@ -6,7 +6,7 @@
<Title>Windows 10 Amelioration Playbook</Title>
<Description>This Playbook will ameliorate your installation&#xD;&#xA;&#xD;&#xA;The amelioration process makes heavy alterations to your installation. This Playbook assists you in quickly deploying AME with a default configuration.</Description>
<Details>Official Ameliorated Playbook for Windows 10. Cutting the tumor out of your OS.</Details>
<Version>0.5</Version>
<Version>0.6</Version>
<Overhaul>true</Overhaul>
<SupportedBuilds>
<string>19045</string>


Loading…
Cancel
Save