Browse Source

Update

review
Styris 1 year ago
parent
commit
7a85d42bb1
33 changed files with 575 additions and 168 deletions
  1. +1
    -1
      src/Configuration/custom.yml
  2. +1
    -0
      src/Configuration/features/base/appx.yml
  3. +3
    -13
      src/Configuration/features/base/components.yml
  4. +0
    -6
      src/Configuration/features/base/config.yml
  5. +3
    -8
      src/Configuration/features/base/dotnet.yml
  6. +2
    -1
      src/Configuration/features/base/files.yml
  7. +10
    -5
      src/Configuration/features/base/regedits.yml
  8. +191
    -34
      src/Configuration/features/base/software.yml
  9. +3
    -1
      src/Executables/ADMIN.bat
  10. BIN
      src/Executables/Associations.dll
  11. +0
    -2
      src/Executables/CONVERT.bat
  12. +16
    -11
      src/Executables/EDGE.bat
  13. +0
    -5
      src/Executables/EDGEX.bat
  14. +2
    -3
      src/Executables/FILEASSOC.bat
  15. +67
    -45
      src/Executables/FIREFOXCONF.bat
  16. +8
    -0
      src/Executables/LayoutUser.xml
  17. +15
    -0
      src/Executables/NOMACSCONF.bat
  18. +8
    -8
      src/Executables/ONED.bat
  19. +6
    -8
      src/Executables/SHRT.bat
  20. +1
    -1
      src/Executables/SLNT.bat
  21. +2
    -2
      src/Executables/STARTMENU.bat
  22. BIN
      src/Executables/Terminal.lnk
  23. +12
    -9
      src/Executables/WALLPAPER.bat
  24. BIN
      src/Executables/ame_wallpaper_1440.bmp
  25. BIN
      src/Executables/ame_wallpaper_4K.bmp
  26. BIN
      src/Executables/amecs.exe
  27. +188
    -0
      src/Executables/assoc.ps1
  28. BIN
      src/Executables/img0.jpg
  29. BIN
      src/Executables/img100.jpg
  30. BIN
      src/Executables/img103.png
  31. +16
    -0
      src/Executables/nomacssettings.ini
  32. +15
    -2
      src/Executables/scoop.ps1
  33. +5
    -3
      src/playbook.conf

+ 1
- 1
src/Configuration/custom.yml View File

@ -5,7 +5,7 @@ privilege: Admin
actions: []
features:
- features\base\regedits.yml
- features\base\dotnet.yml
#- features\base\dotnet.yml
- features\base\appx.yml
- features\base\services.yml
- features\base\components.yml


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

@ -78,6 +78,7 @@ actions:
- !appx: {name: '*MicrosoftTeams*', type: family}
- !appx: {name: '*Clipchamp*', type: family}
- !appx: {name: '*WindowsTerminal*', type: family}
- !appx: {name: '*Global.IrisService*', type: app}
- !appx: {name: '*Global.Accounts*', type: app}


+ 3
- 13
src/Configuration/features/base/components.yml View File

@ -130,19 +130,6 @@ actions:
# WebView
- !registryKey: {path: 'HKCU\SOFTWARE\Microsoft\EdgeWebView'}
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband'
value: 'FavoritesResolve'
data: "320300004C0000000114020000000000C0000000000000468300800020000000549E39A5246AD8012B113CA5246AD801A8B6C6DADDACD501970100000000000001000000000000000000000000000000A0013A001F80C827341F105C1042AA032EE45287D668260001002600EFBE1200000056F21270246AD8010F37A185246AD8012B113CA5246AD80114005600310000000000B154E29B11005461736B42617200400009000400EFBEB154C69BB154E29B2E000000F4940100000001000000000000000000000000000000D5BA89005400610073006B00420061007200000016000E01320097010000874F0749200046494C4545587E312E4C4E4B00007C0009000400EFBEB154E29BB154E29B2E00000097900100000002000000000000000000520000000000589C4400460069006C00650020004500780070006C006F007200650072002E006C006E006B00000040007300680065006C006C00330032002E0064006C006C002C002D003200320030003600370000001C00220000001E00EFBE02005500730065007200500069006E006E006500640000001C00120000002B00EFBE2B113CA5246AD8011C00420000001D00EFBE02004D006900630072006F0073006F00660074002E00570069006E0064006F00770073002E004500780070006C006F0072006500720000001C0000009B0000001C000000010000001C0000002D000000000000009A0000001100000003000000E4A63B761000000000433A5C55736572735C757365725C417070446174615C526F616D696E675C4D6963726F736F66745C496E7465726E6574204578706C6F7265725C517569636B204C61756E63685C557365722050696E6E65645C5461736B4261725C46696C65204578706C6F7265722E6C6E6B000060000000030000A058000000000000006465736B746F702D62356E36683339006E1A1EE27BFFA94ABB0361D86F25337E500764DB17D6EC11A598000C2907D6A06E1A1EE27BFFA94ABB0361D86F25337E500764DB17D6EC11A598000C2907D6A045000000090000A03900000031535053B1166D44AD8D7048A748402EA43D788C1D000000680000000048000000CE2181FCD4BF31408F25FF009E4345CA000000000000000000000000"
type: REG_BINARY
operation: add
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband'
value: 'Favorites'
data: "00A40100003A001F80C827341F105C1042AA032EE45287D668260001002600EFBE1200000056F21270246AD8010F37A185246AD8012B113CA5246AD80114005600310000000000B154E29B11005461736B42617200400009000400EFBEB154C69BB154E29B2E000000F4940100000001000000000000000000000000000000D5BA89005400610073006B00420061007200000016001201320097010000874F0749200046494C4545587E312E4C4E4B00007C0009000400EFBEB154E29BB154E29B2E00000097900100000002000000000000000000520000000000589C4400460069006C00650020004500780070006C006F007200650072002E006C006E006B00000040007300680065006C006C00330032002E0064006C006C002C002D003200320030003600370000001C00120000002B00EFBE2B113CA5246AD8011C00420000001D00EFBE02004D006900630072006F0073006F00660074002E00570069006E0064006F00770073002E004500780070006C006F0072006500720000001C00260000001E00EFBE0200530079007300740065006D00500069006E006E006500640000001C000000FF"
type: REG_BINARY
operation: add
- !run: {exeDir: true, exe: "EDGE.bat", weight: 20}
- !file:
@ -151,6 +138,9 @@ actions:
path: "%ProgramW6432%\\Internet Explorer"
- !run: {exeDir: true, exe: "EDGEX.bat", weight: 20}
- !systemPackage: {name: 'Microsoft-Windows-Internet-Browser-Deployment', arch: amd64, language: 'neutral'}
- !file: {path: '%SYSTEMDRIVE%\Users\Public\Desktop\Microsoft Edge.lnk'}
- !file: {path: "%ProgramFiles(x86)%\\Microsoft\\Edge", weight: 10}
- !file: {path: "%ProgramFiles(x86)%\\Microsoft\\EdgeUpdate", weight: 10}
- !file: {path: "%ProgramFiles(x86)%\\Microsoft\\EdgeCore", weight: 10}


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

@ -28,12 +28,6 @@ actions:
exe: "STARTMENU.bat"
weight: 15
- !writeStatus: {status: 'Setting wallpapers'}
- !run:
exeDir: true
exe: "WALLPAPER.bat"
weight: 20
- !writeStatus: {status: 'Modifying login screen'}
- !run:
exeDir: true

+ 3
- 8
src/Configuration/features/base/dotnet.yml View File

@ -9,11 +9,6 @@ actions:
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
- !run:
exeDir: true
exe: "CONVERT.bat"
weight: 10
- !cmd:
command: '"%ProgramData%\chocolatey\bin\choco.exe" install -y --force --allow-empty-checksums dotnet3.5'
weight: 250

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

@ -667,4 +667,5 @@ actions:
path: "%windir%\\System32\\wuaueng.dll"
- !file:
path: "%windir%\\System32\\MRT.exe"
- !run: {exe: "explorer.exe", wait: false}
- !run: {exe: "NSudoLC.exe", args: '-U:C explorer.exe', baseDir: true}

+ 10
- 5
src/Configuration/features/base/regedits.yml View File

@ -27,8 +27,8 @@ actions:
- !registryValue: {path: 'HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform', value: 'NoGenTicket', type: REG_DWORD, data: '1'}
# Remove SecurityHealth from startup
- !registryKey: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth', operation: add}
- !registryKey: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /v "SecurityHealth', operation: add}
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', value: 'SecurityHealth', operation: delete}
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run', value: 'SecurityHealth', operation: delete}
# Turns off Windows blocking installation of files downloaded from the internet
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments', value: 'SaveZoneInformation', type: REG_DWORD, data: '1'}
@ -40,7 +40,7 @@ actions:
- !registryKey: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata', operation: add}
# New Control Panel cleanup - List of commands: https://winaero.com/ms-settings-commands-in-windows-10/
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer', value: 'SettingsPageVisibility', type: REG_SZ, data: 'showonly:display;nightlight;sound;notifications;quiethours;powersleep;batterysaver;tabletmode;multitasking;clipboard;remote-desktop;about;bluetooth;connecteddevices;printers;mousetouchpad;devices-touchpad;typing;pen;autoplay;usb;network-status;network-cellular;network-wifi;network-wificalling;network-wifisettings;network-ethernet;network-dialup;network-vpn;network-airplanemode;network-mobilehotspot;datausage;network-proxy;personalization-background;personalization-start;fonts;personalization-colors;colors;lockscreen;themes;taskbar;defaultapps;videoplayback;startupapps;dateandtime;regionformatting;gaming;gamemode;easeofaccess-display;easeofaccess-colorfilter;easeofaccess-audio;easeofaccess-easeofaccess-narrator;easeofaccess-magnifier;easeofaccess-highcontrast;easeofaccess-closedcaptioning;easeofaccess-speechrecognition;easeofaccess-eyecontrol;easeofaccess-keyboard;easeofaccess-mouse'}
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer', value: 'SettingsPageVisibility', type: REG_SZ, data: 'showonly:display;nightlight;sound;notifications;quiethours;powersleep;batterysaver;tabletmode;multitasking;clipboard;remote-desktop;about;bluetooth;connecteddevices;printers;mousetouchpad;devices-touchpad;typing;pen;autoplay;usb;network-status;network-cellular;network-wifi;network-wificalling;network-wifisettings;network-ethernet;network-dialup;network-vpn;network-airplanemode;network-mobilehotspot;datausage;network-proxy;personalization-background;personalization-start;fonts;personalization-colors;colors;lockscreen;themes;taskbar;defaultapps;videoplayback;startupapps;dateandtime;regionformatting;gaming;gamemode;easeofaccess-display;easeofaccess-colorfilter;easeofaccess-audio;easeofaccess-easeofaccess-narrator;easeofaccess-magnifier;easeofaccess-highcontrast;easeofaccess-closedcaptioning;easeofaccess-speechrecognition;easeofaccess-eyecontrol;easeofaccess-keyboard;easeofaccess-mouse;network-advancedsettings'}
# Decrease shutdown time
- !registryValue: {path: 'HKLM\SYSTEM\CurrentControlSet\Control', value: 'WaitToKillServiceTimeout', type: REG_SZ, data: '2000'}
@ -59,7 +59,6 @@ actions:
- !registryKey: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}', operation: add}
- !registryKey: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}', operation: add}
- !registryKey: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}', operation: add}
- !registryKey: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}', operation: add}
# Disable Windows Error Reporting
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting', value: 'Disabled', type: REG_DWORD, data: '1'}
@ -344,4 +343,10 @@ actions:
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager', value: 'SubscribedContent-310093Enabled', type: REG_DWORD, data: '0'}
# Disable item checkboxes
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'AutoCheckSelect', type: REG_DWORD, data: '0'}
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced', value: 'AutoCheckSelect', type: REG_DWORD, data: '0'}
- !writeStatus: {status: 'Checking users'}
- !run:
exeDir: true
exe: "CONVERT.bat"
weight: 10

+ 191
- 34
src/Configuration/features/base/software.yml View File

@ -3,15 +3,6 @@ title: Software
description: Installs software
privilege: TrustedInstaller
actions:
- !writeStatus: {status: 'Loading start menu'}
# Load Open-Shell menu
- !powerShell:
command: '(New-Object -ComObject wscript.shell).SendKeys(''{ESCAPE}'')'
- !cmd:
command: 'timeout /t 2'
- !powerShell:
command: '(New-Object -ComObject wscript.shell).SendKeys(''{ESCAPE}'')'
- !writeStatus: {status: 'Installing Open-Shell'}
- !run:
exeDir: true
@ -28,6 +19,12 @@ actions:
exe: "ep_setup-22621.1413.54.5.exe"
weight: 70
- !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
- !cmd:
command: 'reg query "HKLM\SOFTWARE\Clients\StartMenuInternet" /k /f "Firefox-" > "%TEMP%\Firefox-Reg-Output.txt"'
@ -35,15 +32,31 @@ actions:
- !run:
path: '%ProgramData%\chocolatey\bin'
exe: 'choco.exe'
args: 'install -y --force --allow-empty-checksums firefox'
args: 'install -y --allow-empty-checksums firefox'
weight: 150
- !run:
path: '%ProgramData%\chocolatey\bin'
exe: 'choco.exe'
args: 'upgrade -y --allow-empty-checksums firefox'
weight: 150
- !writeStatus: {status: 'Configuring Firefox'}
- !run:
exeDir: true
exe: "FIREFOXCONF.bat"
weight: 20
- !writeStatus: {status: 'Installing Thunderbird'}
- !run:
path: '%ProgramData%\chocolatey\bin'
exe: 'choco.exe'
args: 'install -y --force --allow-empty-checksums thunderbird'
args: 'install -y --allow-empty-checksums thunderbird'
weight: 100
- !run:
path: '%ProgramData%\chocolatey\bin'
exe: 'choco.exe'
args: 'upgrade -y --allow-empty-checksums thunderbird'
weight: 150
- !writeStatus: {status: 'Installing VLC'}
- !run:
@ -57,12 +70,167 @@ actions:
exe: 'choco.exe'
args: 'install -y --force --allow-empty-checksums 7zip'
weight: 50
- !writeStatus: {status: 'Installing jpegview'}
- !writeStatus: {status: 'Installing nomacs'}
- !run:
path: '%ProgramData%\chocolatey\bin'
exe: 'choco.exe'
args: 'install -y --force --allow-empty-checksums jpegview'
args: 'install -y --force --allow-empty-checksums nomacs'
weight: 50
- !writeStatus: {status: 'Configuring nomacs'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.3fr.3', value: '', type: 'REG_SZ', data: 'Hasselblad Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.3fr.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.3fr.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.arw.3', value: '', type: 'REG_SZ', data: 'Sony Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.arw.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.arw.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.avif.3', value: '', type: 'REG_SZ', data: 'AV1 Image File Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.avif.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.avif.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.avifs.3', value: '', type: 'REG_SZ', data: 'AVIF image sequence Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.avifs.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.avifs.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.bmp.3', value: '', type: 'REG_SZ', data: 'Windows Bitmap Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.bmp.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,4'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.bmp.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.crw.3', value: '', type: 'REG_SZ', data: 'Canon Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.crw.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.crw.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.cur.3', value: '', type: 'REG_SZ', data: 'Windows Cursor Files Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.cur.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.cur.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.dcx.3', value: '', type: 'REG_SZ', data: 'Image Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.dcx.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.dcx.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.dng.3', value: '', type: 'REG_SZ', data: 'Digital Negativ Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.dng.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.dng.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.drif.3', value: '', type: 'REG_SZ', data: 'Developers Raw Image Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.drif.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.drif.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.exif.3', value: '', type: 'REG_SZ', data: 'EXIF Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.exif.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.exif.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.gif.3', value: '', type: 'REG_SZ', data: 'Graphic Interchange Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.gif.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,2'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.gif.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heic.3', value: '', type: 'REG_SZ', data: 'Image Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heic.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heic.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heics.3', value: '', type: 'REG_SZ', data: 'Image Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heics.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heics.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heif.3', value: '', type: 'REG_SZ', data: 'Image Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heif.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heif.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heifs.3', value: '', type: 'REG_SZ', data: 'Image Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heifs.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.heifs.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.icns.3', value: '', type: 'REG_SZ', data: 'Apple Icon Image Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.icns.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.icns.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.iiq.3', value: '', type: 'REG_SZ', data: 'Phase One Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.iiq.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.iiq.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jp2.3', value: '', type: 'REG_SZ', data: 'JPEG 2000 Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jp2.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jp2.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jpg.3', value: '', type: 'REG_SZ', data: 'JPEG Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jpg.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,1'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jpg.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jps.3', value: '', type: 'REG_SZ', data: 'JPEG Stereo Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jps.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.jps.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mng.3', value: '', type: 'REG_SZ', data: 'Multi-Image Network Graphics Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mng.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,2'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mng.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mos.3', value: '', type: 'REG_SZ', data: 'Leaf Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mos.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mos.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mpo.3', value: '', type: 'REG_SZ', data: 'Multi Picture Object Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mpo.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mpo.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mrw.3', value: '', type: 'REG_SZ', data: 'Minolta Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mrw.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.mrw.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.nef.3', value: '', type: 'REG_SZ', data: 'Nikon Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.nef.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.nef.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.orf.3', value: '', type: 'REG_SZ', data: 'Olympus Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.orf.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.orf.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pbm.3', value: '', type: 'REG_SZ', data: 'Portable Bitmap Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pbm.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pbm.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pcx.3', value: '', type: 'REG_SZ', data: 'Image Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pcx.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pcx.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pef.3', value: '', type: 'REG_SZ', data: 'Pentax Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pef.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pef.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pgm.3', value: '', type: 'REG_SZ', data: 'Portable Graymap Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pgm.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,4'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pgm.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.png.3', value: '', type: 'REG_SZ', data: 'PNG Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.png.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,3'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.png.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pns.3', value: '', type: 'REG_SZ', data: 'PNG Stereo Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pns.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.pns.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.ppm.3', value: '', type: 'REG_SZ', data: 'Portable Pixmap Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.ppm.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.ppm.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.psb.3', value: '', type: 'REG_SZ', data: 'Large Document Format Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.psb.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.psb.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.psd.3', value: '', type: 'REG_SZ', data: 'Adobe Photoshop Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.psd.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.psd.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.raf.3', value: '', type: 'REG_SZ', data: 'Fujifilm Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.raf.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.raf.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.raw.3', value: '', type: 'REG_SZ', data: 'Panasonic Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.raw.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.raw.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.roh.3', value: '', type: 'REG_SZ', data: 'Rohkost Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.roh.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.roh.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.srw.3', value: '', type: 'REG_SZ', data: 'Samsung Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.srw.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.srw.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.svg.3', value: '', type: 'REG_SZ', data: 'Scalable Vector Graphics Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.svg.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.svg.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.tga.3', value: '', type: 'REG_SZ', data: 'Truvision Graphics Adapter Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.tga.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.tga.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.tif.3', value: '', type: 'REG_SZ', data: 'TIFF Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.tif.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,4'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.tif.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.vec.3', value: '', type: 'REG_SZ', data: 'OpenCV Haar Training Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.vec.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.vec.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.wbmp.3', value: '', type: 'REG_SZ', data: 'Wireless Bitmap Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.wbmp.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.wbmp.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.webp.3', value: '', type: 'REG_SZ', data: 'WebP Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.webp.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,4'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.webp.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.x3f.3', value: '', type: 'REG_SZ', data: 'Sigma Raw Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.x3f.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,5'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.x3f.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.xbm.3', value: '', type: 'REG_SZ', data: 'X11 Bitmap Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.xbm.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.xbm.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.xpm.3', value: '', type: 'REG_SZ', data: 'X11 Pixmap Image'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.xpm.3\DefaultIcon', value: '', type: 'REG_SZ', data: 'C:\Program Files\nomacs\bin\nomacs.exe,0'}
- !registryValue: {path: 'HKLM\SOFTWARE\classes\nomacs.xpm.3\shell\open\command', value: '', type: 'REG_SZ', data: '"C:\Program Files\nomacs\bin\nomacs.exe" "%1"'}
- !run:
exeDir: true
exe: "NOMACSCONF.bat"
weight: 20
- !writeStatus: {status: 'Installing vcredist'}
- !run:
path: '%ProgramData%\chocolatey\bin'
@ -74,7 +242,7 @@ actions:
- !run:
path: '%ProgramData%\chocolatey\bin'
exe: 'choco.exe'
args: 'install -y --force --allow-empty-checksums directx'
args: 'install -y --allow-empty-checksums directx'
weight: 150
- !writeStatus: {status: 'Installing OnlyOffice'}
- !run:
@ -86,25 +254,9 @@ actions:
- !run:
path: '%ProgramData%\chocolatey\bin'
exe: 'choco.exe'
args: 'install -y --force --allow-empty-checksums cascadiamono'
args: 'install -y --allow-empty-checksums cascadiamono'
weight: 30
- !writeStatus: {status: 'Loading open-shell menu'}
# Load Open-Shell menu
- !powerShell:
command: '(New-Object -ComObject wscript.shell).SendKeys(''{ESCAPE}'')'
- !cmd:
command: 'timeout /t 1'
weight: 10
- !powerShell:
command: '(New-Object -ComObject wscript.shell).SendKeys(''{ESCAPE}'')'
- !writeStatus: {status: 'Configuring Firefox'}
- !run:
exeDir: true
exe: "FIREFOXCONF.bat"
weight: 20
- !run:
exeDir: true
exe: "SHRT.bat"
@ -116,10 +268,15 @@ actions:
exe: "FILEASSOC.bat"
weight: 50
- !writeStatus: {status: 'Installing Git'}
- !writeStatus: {status: 'Installing Scoop apps'}
- !run:
exeDir: true
exe: "PowerShell"
args: '-NoP -ExecutionPolicy Bypass -File scoop.ps1'
weight: 120
weight: 120
- !writeStatus: {status: 'Setting wallpapers'}
- !run:
exeDir: true
exe: "WALLPAPER.bat"
weight: 20

+ 3
- 1
src/Executables/ADMIN.bat View File

@ -1,9 +1,11 @@
net user Administrator /active:yes
net user Administrator malte
::net user Administrator malte
@echo OFF
for /f "usebackq delims=" %%A in (`net localgroup administrators ^| findstr /V /X /I /R /c:"Alias name[ ].*" /c:"Comment[ ].*" /c:"Members" /c:"-*" /c:"The command completed.*" /c:"Administrator"`) do (
echo net localgroup administrators "%%A" /delete
net localgroup administrators "%%A" /delete
echo net localgroup users "%%A" /add
net localgroup users "%%A" /add
)
@echo ON


BIN
src/Executables/Associations.dll View File


+ 0
- 2
src/Executables/CONVERT.bat View File

@ -16,8 +16,6 @@ for /f "usebackq delims=" %%E in (`reg query "HKLM\SOFTWARE\Microsoft\Windows\Cu
for /f "usebackq delims=" %%E in (`reg query "HKLM\SOFTWARE\Microsoft\IdentityStore\Providers" /s /f "MicrosoftAccount" ^| findstr /c:"Providers\\"`) do reg delete "%%E" /f
for /f "usebackq delims=" %%E in (`reg query "HKLM\SOFTWARE\Microsoft\IdentityStore\Providers" /s /f "MicrosoftAccount" ^| findstr /c:"Providers\\"`) do reg delete "%%E" /f
exit /b 0
:CONVERTUSER


+ 16
- 11
src/Executables/EDGE.bat View File

@ -21,22 +21,27 @@ for /f "usebackq tokens=2 delims=\" %%a in (`reg query "HKEY_USERS" ^| findstr /
for /f "usebackq delims=" %%e in (`reg query "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" ^| findstr /i /r /c:"Microsoft[ ]*Edge" /c:"msedge"`) do reg delete "%%e" /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 del /q /f "!SystemDrive!\Users\%%a\Desktop\Microsoft Edge.lnk"
del /q /f "!SystemDrive!\Users\%%a\Desktop\Microsoft Edge.lnk"
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 del /q /f "%SystemDrive%\Users\%%a\Desktop\Microsoft Edge.lnk"
del /q /f "%SystemDrive%\Users\%%a\Desktop\Microsoft Edge.lnk"
:: WebView
echo rmdir /q /s "!SystemDrive!\Users\%%a\AppData\Local\Microsoft\EdgeWebView"
rmdir /q /s "!SystemDrive!\Users\%%a\AppData\Local\Microsoft\EdgeWebView"
echo rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\EdgeWebView"
rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\EdgeWebView"
echo rmdir /q /s "!SystemDrive!\Users\%%a\AppData\Local\Microsoft\Edge"
rmdir /q /s "!SystemDrive!\Users\%%a\AppData\Local\Microsoft\Edge"
echo rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\Edge"
rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\Edge"
echo rmdir /q /s "!SystemDrive!\Users\%%a\AppData\Local\Microsoft\EdgeUpdate"
rmdir /q /s "!SystemDrive!\Users\%%a\AppData\Local\Microsoft\EdgeUpdate"
echo rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\EdgeUpdate"
rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\EdgeUpdate"
echo rmdir /q /s "!SystemDrive!\Users\%%a\AppData\Local\Microsoft\EdgeCore"
rmdir /q /s "!SystemDrive!\Users\%%a\AppData\Local\Microsoft\EdgeCore"
echo rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\EdgeCore"
rmdir /q /s "%SystemDrive%\Users\%%a\AppData\Local\Microsoft\EdgeCore"
echo del /q /f "%SYSTEMDRIVE%\Users\%%A\Desktop\Microsoft Edge.lnk"
del /q /f "%SYSTEMDRIVE%\Users\%%A\Desktop\Microsoft Edge.lnk"
echo del /q /f "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk"
del /q /f "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk"
)
exit /b 0


+ 0
- 5
src/Executables/EDGEX.bat View File

@ -1,8 +1,3 @@
start /b /wait install_wim_tweak.exe /o /l
start /b /wait install_wim_tweak.exe /o /c Microsoft-Windows-Internet-Browser-Package /r
start /b /wait install_wim_tweak.exe /h /o /l
:: Removes ActiveX item in open with menu
reg delete "HKCR\Applications\iexplore.exe" /f


+ 2
- 3
src/Executables/FILEASSOC.bat View File

@ -1,12 +1,11 @@
copy /y "Associations.dll" "%WINDIR%\System32\OEMDefaultAssociations.dll"
del /q /f "%WINDIR%\System32\OEMDefaultAssociations.xml"
@echo OFF
for /f "usebackq tokens=2 delims=\" %%A in (`reg query "HKEY_USERS" ^| findstr /c:"S-" /c:"AME_UserHive_"`) do (
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:FirefoxHTML-308046B0AF4A39CB" ".htm:FirefoxHTML-308046B0AF4A39CB" ".url:FirefoxURL-308046B0AF4A39CB" "Proto:https:FirefoxURL-308046B0AF4A39CB" "Proto:http:FirefoxURL-308046B0AF4A39CB" "Proto:mailto:Thunderbird.Url.mailto" ".3g2:VLC.3g2" ".3gp:VLC.3gp" ".3gp2:VLC.3gp2" ".3gpp:VLC.3gpp" ".aac:VLC.aac" ".adts:VLC.adts" ".aif:VLC.aif" ".aifc:VLC.aifc" ".aiff:VLC.aiff" ".amr:VLC.amr" ".asf:VLC.asf" ".asx:VLC.asx" ".au:VLC.au" ".avi:VLC.avi" ".bmp:JPEGView.exe" ".cda:VLC.cda" ".flac:VLC.flac" ".jpeg:JPEGView.exe" ".jpg:JPEGView.exe" ".m1v:VLC.m1v" ".m2t:VLC.m2t" ".m2ts:VLC.m2ts" ".m3u:VLC.m3u" ".m4a:VLC.m4a" ".m4p:VLC.m4p" ".m4v:VLC.m4v" ".mid:VLC.mid" ".mka:VLC.mka" ".mkv:VLC.mkv" ".mov:VLC.mov" ".MP2:VLC.mp2" ".mp2v:VLC.mp2v" ".mp3:VLC.mp3" ".mp4:VLC.mp4" ".mp4v:VLC.mp4v" ".mpa:VLC.mpa" ".MPE:VLC.mpe" ".mpeg:VLC.mpeg" ".mpg:VLC.mpg" ".mpv2:VLC.mpv2" ".mts:VLC.mts" ".png:JPEGView.exe" ".ra:VLC.ra" ".ram:VLC.ram" ".rmi:VLC.rmi" ".s3m:VLC.s3m" ".snd:VLC.snd" ".TS:VLC.ts" ".TTS:VLC.tts" ".voc:VLC.voc" ".wav:VLC.wav" ".webp:JPEGView.exe" ".wma:VLC.wma" ".wmv:VLC.wmv" ".WPL:VLC.wpl" ".wvx:VLC.wvx" ".xm:VLC.xm" ".zpl:VLC.zpl" ".xml:txtfilelegacy"
PowerShell -NoP -ExecutionPolicy Bypass -File assoc.ps1 "Placeholder" "%%A" ".html:FirefoxHTML-308046B0AF4A39CB" ".htm:FirefoxHTML-308046B0AF4A39CB" ".url:FirefoxURL-308046B0AF4A39CB" "Proto:https:FirefoxURL-308046B0AF4A39CB" "Proto:http:FirefoxURL-308046B0AF4A39CB" "Proto:mailto:Thunderbird.Url.mailto" ".3fr:nomacs.3fr.3" ".3g2:VLC.3g2" ".3gp:VLC.3gp" ".3gp2:VLC.3gp2" ".3gpp:VLC.3gpp" ".aac:VLC.aac" ".adts:VLC.adts" ".aif:VLC.aif" ".aifc:VLC.aifc" ".aiff:VLC.aiff" ".amr:VLC.amr" ".asf:VLC.asf" ".asx:VLC.asx" ".au:VLC.au" ".avi:VLC.avi" ".avifs:nomacs.avifs.3" ".bmp:nomacs.bmp.3" ".cda:VLC.cda" ".cur:nomacs.cur.3" ".dcx:nomacs.dcx.3" ".drif:nomacs.drif.3" ".exif:nomacs.exif.3" ".flac:VLC.flac" ".heif:nomacs.heif.3" ".heifs:nomacs.heifs.3" ".icns:nomacs.icns.3" ".iiq:nomacs.iiq.3" ".jp2:nomacs.jp2.3" ".jpf:nomacs.jp2.3" ".jpg:nomacs.jpg.3" ".jpeg:nomacs.jpg.3" ".jps:nomacs.jps.3" ".m1v:VLC.m1v" ".m2t:VLC.m2t" ".m2ts:VLC.m2ts" ".m3u:VLC.m3u" ".m4a:VLC.m4a" ".m4p:VLC.m4p" ".m4v:VLC.m4v" ".mid:VLC.mid" ".mka:VLC.mka" ".mkv:VLC.mkv" ".mng:nomacs.mng.3" ".mos:nomacs.mos.3" ".mov:VLC.mov" ".MP2:VLC.mp2" ".mp2v:VLC.mp2v" ".mp3:VLC.mp3" ".mp4:VLC.mp4" ".mp4v:VLC.mp4v" ".mpa:VLC.mpa" ".MPE:VLC.mpe" ".mpeg:VLC.mpeg" ".mpg:VLC.mpg" ".mpo:nomacs.mpo.3" ".mpv2:VLC.mpv2" ".mts:VLC.mts" ".pbm:nomacs.pbm.3" ".pcx:nomacs.pcx.3" ".pgm:nomacs.pgm.3" ".png:nomacs.png.3" ".pns:nomacs.pns.3" ".ppm:nomacs.ppm.3" ".psb:nomacs.psb.3" ".psd:nomacs.psd.3" ".ra:VLC.ra" ".raf:nomacs.raf.3" ".ram:VLC.ram" ".rmi:VLC.rmi" ".roh:nomacs.roh.3" ".s3m:VLC.s3m" ".snd:VLC.snd" ".svg:nomacs.svg.3" ".tga:nomacs.tga.3" ".tif:nomacs.tif.3" ".TS:VLC.ts" ".TTS:VLC.tts" ".vec:nomacs.vec.3" ".voc:VLC.voc" ".wav:VLC.wav" ".wbmp:nomacs.wbmp.3" ".webp:nomacs.webp.3" ".wma:VLC.wma" ".wmv:VLC.wmv" ".WPL:VLC.wpl" ".wvx:VLC.wvx" ".x3f:nomacs.x3f.3" ".xbm:nomacs.xbm.3" ".xm:VLC.xm" ".xpm:nomacs.xpm.3" ".zpl:VLC.zpl" ".xml:txtfilelegacy"
)
)

+ 67
- 45
src/Executables/FIREFOXCONF.bat View File

@ -8,7 +8,7 @@ if not exist "%~dp0\AME-Firefox-Injection" (
echo. & echo Grabbing previous Firefox entries...
if not exist "%TEMP%\Firefox-Reg-Output.txt" echo No input entries detected & echo. & echo Generating random string... & goto GenRND
if not exist "%TEMP%\Firefox-Reg-Output.txt" echo No input entries detected & goto CHECKS
setlocal EnableDelayedExpansion
set /a "count1=0"
@ -37,26 +37,39 @@ set "RunEC=10"
set /a "count0=1"
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"
call :AFISCALL "%SYSTEMDRIVE%\Users\Default\AppData\Roaming" "%%A"
if errorlevel 2 set "RunEC=2"
if errorlevel 1 set "RunEC=1"
if errorlevel 0 set "RunEC=0"
) 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"
call :AFISCALL "%%C" "%%A"
if errorlevel 2 set "RunEC=2"
if errorlevel 1 set "RunEC=1"
if errorlevel 0 set "RunEC=0"
)
)
)
)
exit /b %RunEC%
:AFISCALL
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
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 "330300004c0000000114020000000000c0000000000000468300800020000000e7e332704eefd80122283a704eefd8015cf4e1fbd161d801970100000000000001000000000000000000000000000000a0013a001f80c827341f105c1042aa032ee45287d668260001002600efbe120000001a1e97454eefd801757130704eefd8015eb737704eefd801140056003100000000006355693411005461736b42617200400009000400efbe63556934635569342e0000009d8a0100000001000000000000000000000000000000a29f33005400610073006b00420061007200000016000e01320097010000a754662a200046494c4545587e312e4c4e4b00007c0009000400efbe63556934635569342e0000009e8a0100000001000000000000000000520000000000a413a200460069006c00650020004500780070006c006f007200650072002e006c006e006b00000040007300680065006c006c00330032002e0064006c006c002c002d003200320030003600370000001c00220000001e00efbe02005500730065007200500069006e006e006500640000001c00120000002b00efbe22283a704eefd8011c00420000001d00efbe02004d006900630072006f0073006f00660074002e00570069006e0064006f00770073002e004500780070006c006f0072006500720000001c0000009c0000001c000000010000001c0000002d000000000000009b000000110000000300000013ebc8041000000000433a5c55736572735c4d634e696e5c417070446174615c526f616d696e675c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e63685c557365722050696e6e65645c5461736b4261725c46696c65204578706c6f7265722e6c6e6b000060000000030000a058000000000000006465736b746f702d666a63716f626d00a84d9f7c73d4f344bf15faa23dfd8b4733f18e66405bed11aa54000c29341e2ea84d9f7c73d4f344bf15faa23dfd8b4733f18e66405bed11aa54000c29341e2e45000000090000a03900000031535053b1166d44ad8d7048a748402ea43d788c1d0000006800000000480000009b7b87bf89df6547b6a80dc335f1c9bf000000000000000000000000e30200004c0000000114020000000000c000000000000046830080002000000098425f0f3461d901570c60443461d901d72f4c542e61d901ed030000000000000100000000000000000000000000000056013a001f80c827341f105c1042aa032ee45287d668260001002600efbe120000001a1e97454eefd801757130704eefd801570c60443461d901140056003100000000007c56e22911005461736b42617200400009000400efbe635569347c56e2292e0000009d8a0100000001000000000000000000000000000000e5c2be005400610073006b0042006100720000001600c4003200ed0300007c561424200046697265666f782e6c6e6b00480009000400efbe7c56b5297c56e5292e000000ab1f010000000900000000000000000000000000000029344f00460069007200650066006f0078002e006c006e006b0000001a00220000001e00efbe02005500730065007200500069006e006e006500640000001a00120000002b00efbe570c60443461d9011a002e0000001d00efbe0200330030003800300034003600420030004100460034004100330039004300420000001a000000960000001c000000010000001c0000002d0000000000000095000000110000000300000013ebc8041000000000433a5c55736572735c4d634e696e5c417070446174615c526f616d696e675c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e63685c557365722050696e6e65645c5461736b4261725c46697265666f782e6c6e6b000060000000030000a058000000000000006465736b746f702d666a63716f626d00a84d9f7c73d4f344bf15faa23dfd8b470616f0c623cded11aa5d000c29a5dd03a84d9f7c73d4f344bf15faa23dfd8b470616f0c623cded11aa5d000c29a5dd0345000000090000a03900000031535053b1166d44ad8d7048a748402ea43d788c1d0000006800000000480000009b7b87bf89df6547b6a80dc335f1c9bf000000000000000000000000" /f
reg add "HKU\%~2\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "Favorites" /t REG_BINARY /d "00a40100003a001f80c827341f105c1042aa032ee45287d668260001002600efbe120000001a1e97454eefd801757130704eefd8015eb737704eefd801140056003100000000006355693411005461736b42617200400009000400efbe63556934635569342e0000009d8a0100000001000000000000000000000000000000a29f33005400610073006b00420061007200000016001201320097010000a754662a200046494c4545587e312e4c4e4b00007c0009000400efbe63556934635569342e0000009e8a0100000001000000000000000000520000000000a413a200460069006c00650020004500780070006c006f007200650072002e006c006e006b00000040007300680065006c006c00330032002e0064006c006c002c002d003200320030003600370000001c00120000002b00efbe22283a704eefd8011c00420000001d00efbe02004d006900630072006f0073006f00660074002e00570069006e0064006f00770073002e004500780070006c006f0072006500720000001c00260000001e00efbe0200530079007300740065006d00500069006e006e006500640000001c00000000560100003a001f80c827341f105c1042aa032ee45287d668260001002600efbe120000001a1e97454eefd801757130704eefd801570c60443461d901140056003100000000007c56e22911005461736b42617200400009000400efbe635569347c56e2292e0000009d8a0100000001000000000000000000000000000000e5c2be005400610073006b0042006100720000001600c4003200ed0300007c561424200046697265666f782e6c6e6b00480009000400efbe7c56b5297c56e5292e000000ab1f010000000900000000000000000000000000000029344f00460069007200650066006f0078002e006c006e006b0000001a00220000001e00efbe02005500730065007200500069006e006e006500640000001a00120000002b00efbe570c60443461d9011a002e0000001d00efbe0200330030003800300034003600420030004100460034004100330039004300420000001a000000ff" /f
)
)
echo. & echo Generating random string...
:GenRND
@ -69,17 +82,41 @@ if "%RNDStr:~7%"=="" (goto GenRND)
endlocal & set "RNDStr=%RNDStr%"
:: Redundancy, incase the original Firefox installed check fails
if "%NewCode%"=="NULL" echo. & echo No Firefox install detected & goto PREFSONLY
if "%NewCode%"=="" echo. & echo Firefox version already installed & goto PREFSONLY
if not EXIST "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" echo. & echo Can't find Firefox.exe & goto PREFSONLY
if "%NewCode%"=="NULL" (
echo.
echo No Firefox install detected
call :PREFSONLY "%~1"
exit /b 0
)
if "%NewCode%"=="" (
echo.
echo Firefox version already installed
call :PREFSONLY "%~1"
exit /b 0
)
if not EXIST "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" (
echo.
echo Can't find Firefox.exe
call :PREFSONLY "%~1"
exit /b 0
)
if exist "%~1\Mozilla\Firefox\profiles.ini" (
findstr /c:"%NewCode%" "%~1\Mozilla\Firefox\profiles.ini" > NUL 2>&1
if not errorlevel 1 echo. & echo Firefox version already in profiles.ini & goto PREFSONLY
if not errorlevel 1 (
echo. & echo Firefox version already in profiles.ini
call :PREFSONLY "%~1"
exit /b 0
)
)
:PROFILENAME
if %count0% GTR 50 echo. & echo Default-release count exceeded 50 & goto PREFSONLY
if %count0% GTR 50 (
echo.
echo Default-release count exceeded 50
call :PREFSONLY "%~1"
exit /b 0
)
if exist "%~1\Mozilla\Firefox\profiles.ini" (
findstr /c:"Name=default-release" "%~1\Mozilla\Firefox\profiles.ini" > NUL 2>&1
if not errorlevel 1 (
@ -155,46 +192,31 @@ if exist "%TEMP%\prefs.js.tmp" del /q /f "%TEMP%\prefs.js.tmp" > NUL
set /a "count3=0"
@echo OFF
for /f "usebackq delims=" %%A in (`dir /B /A:d "%~1\Mozilla\Firefox\Profiles"`) do (
set /a "count3=%count3%+1"
if exist "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js" (
:: Removes lines containing these entries from the profiles prefs.js. This way any old prefs don't overlap with the new prefs
echo findstr /V /C:""""app.shield.optoutstudies.enabled"""" /C:""""browser.aboutwelcome.enabled"""" /C:""""browser.disableResetPrompt"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features"""" /C:""""browser.newtabpage.activity-stream.feeds.section.topstories"""" /C:""""browser.newtabpage.activity-stream.feeds.topsites"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includePocket"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includeVisited"""" /C:""""browser.newtabpage.activity-stream.showSponsored"""" /C:""""browser.newtabpage.activity-stream.showSponsoredTopSites"""" /C:""""browser.urlbar.placeholderNam"""" /C:""""browser.urlbar.suggest.quicksuggest.nonsponsored"""" /C:""""browser.urlbar.suggest.quicksuggest.sponsored"""" /C:""""browser.urlbar.suggest.topsites"""" /C:""""datareporting.healthreport.uploadEnabled"""" /C:""""dom.security.https_only_mode"""" /C:""""dom.security.https_only_mode_ever_enabled"""" "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js "^>^> "%TEMP%\prefs.js.tmp"
findstr /V /C:""""app.shield.optoutstudies.enabled"""" /C:""""browser.aboutwelcome.enabled"""" /C:""""browser.disableResetPrompt"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features"""" /C:""""browser.newtabpage.activity-stream.feeds.section.topstories"""" /C:""""browser.newtabpage.activity-stream.feeds.topsites"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includePocket"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includeVisited"""" /C:""""browser.newtabpage.activity-stream.showSponsored"""" /C:""""browser.newtabpage.activity-stream.showSponsoredTopSites"""" /C:""""browser.urlbar.placeholderNam"""" /C:""""browser.urlbar.suggest.quicksuggest.nonsponsored"""" /C:""""browser.urlbar.suggest.quicksuggest.sponsored"""" /C:""""browser.urlbar.suggest.topsites"""" /C:""""datareporting.healthreport.uploadEnabled"""" /C:""""dom.security.https_only_mode"""" /C:""""dom.security.https_only_mode_ever_enabled"""" "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js ">> "%TEMP%\prefs.js.tmp"
)
:: Filters out a few prefs from AME-Firefox-Injectiont\prefs.js and adds them to prefs.js.tmp
echo findstr /V /C:""""browser.toolbars.bookmarks.visibility"""" /C:""""extensions.webextensions.uuids"""" /C:""""extensions.webextensions.uuids"""" "%~dp0\AME-Firefox-Injection\prefs.js"^>^> "%TEMP%\prefs.js.tmp"
findstr /V /C:""""browser.toolbars.bookmarks.visibility"""" /C:""""extensions.webextensions.uuids"""" /C:""""extensions.webextensions.uuids"""" "%~dp0\AME-Firefox-Injection\prefs.js">> "%TEMP%\prefs.js.tmp"
echo move /y "%TEMP%\prefs.js.tmp" "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js"
move /y "%TEMP%\prefs.js.tmp" "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js"
if exist "%~1\Mozilla\Firefox\Profiles\%%A\search.json.mozlz4" echo del /Q /F "%~1\Mozilla\Firefox\Profiles\%%A\search.json.mozlz4" & del /Q /F "%~1\Mozilla\Firefox\Profiles\%%A\search.json.mozlz4"
echo robocopy "%~dp0\AME-Firefox-Injection" "%~1\Mozilla\Firefox\Profiles\%%A" search.json.mozlz4 /E ^> NUL
robocopy "%~dp0\AME-Firefox-Injection" "%~1\Mozilla\Firefox\Profiles\%%A" search.json.mozlz4 /E > NUL
)
for /f "usebackq delims=" %%A in (`dir /B /A:d "%SYSTEMDRIVE%\Users"`) do (
if exist "%~1\Mozilla\Firefox\Profiles" (
for /f "usebackq delims=" %%B in (`dir /B /A:d "%~1\Mozilla\Firefox\Profiles"`) do (
set /a "count3=%count3%+1"
if exist "%~1\Mozilla\Firefox\Profiles\%%B\prefs.js" (
:: Removes lines containing these entries from the profiles prefs.js. This way any old prefs don't overlap with the new prefs
echo findstr /V /C:""""app.shield.optoutstudies.enabled"""" /C:""""browser.aboutwelcome.enabled"""" /C:""""browser.disableResetPrompt"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features"""" /C:""""browser.newtabpage.activity-stream.feeds.section.topstories"""" /C:""""browser.newtabpage.activity-stream.feeds.topsites"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includePocket"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includeVisited"""" /C:""""browser.newtabpage.activity-stream.showSponsored"""" /C:""""browser.newtabpage.activity-stream.showSponsoredTopSites"""" /C:""""browser.urlbar.placeholderNam"""" /C:""""browser.urlbar.suggest.quicksuggest.nonsponsored"""" /C:""""browser.urlbar.suggest.quicksuggest.sponsored"""" /C:""""browser.urlbar.suggest.topsites"""" /C:""""datareporting.healthreport.uploadEnabled"""" /C:""""dom.security.https_only_mode"""" /C:""""dom.security.https_only_mode_ever_enabled"""" "%~1\Mozilla\Firefox\Profiles\%%B\prefs.js "^>^> "%TEMP%\prefs.js.tmp"
findstr /V /C:""""app.shield.optoutstudies.enabled"""" /C:""""browser.aboutwelcome.enabled"""" /C:""""browser.disableResetPrompt"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features"""" /C:""""browser.newtabpage.activity-stream.feeds.section.topstories"""" /C:""""browser.newtabpage.activity-stream.feeds.topsites"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includePocket"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includeVisited"""" /C:""""browser.newtabpage.activity-stream.showSponsored"""" /C:""""browser.newtabpage.activity-stream.showSponsoredTopSites"""" /C:""""browser.urlbar.placeholderNam"""" /C:""""browser.urlbar.suggest.quicksuggest.nonsponsored"""" /C:""""browser.urlbar.suggest.quicksuggest.sponsored"""" /C:""""browser.urlbar.suggest.topsites"""" /C:""""datareporting.healthreport.uploadEnabled"""" /C:""""dom.security.https_only_mode"""" /C:""""dom.security.https_only_mode_ever_enabled"""" "%~1\Mozilla\Firefox\Profiles\%%B\prefs.js ">> "%TEMP%\prefs.js.tmp"
)
:: Filters out a few prefs from AME-Firefox-Injectiont\prefs.js and adds them to prefs.js.tmp
echo findstr /V /C:""""browser.toolbars.bookmarks.visibility"""" /C:""""extensions.webextensions.uuids"""" /C:""""extensions.webextensions.uuids"""" "%~dp0\AME-Firefox-Injection\prefs.js"^>^> "%TEMP%\prefs.js.tmp"
findstr /V /C:""""browser.toolbars.bookmarks.visibility"""" /C:""""extensions.webextensions.uuids"""" /C:""""extensions.webextensions.uuids"""" "%~dp0\AME-Firefox-Injection\prefs.js">> "%TEMP%\prefs.js.tmp"
echo move /y "%TEMP%\prefs.js.tmp" "%~1\Mozilla\Firefox\Profiles\%%B\prefs.js"
move /y "%TEMP%\prefs.js.tmp" "%~1\Mozilla\Firefox\Profiles\%%B\prefs.js"
if exist "%~1\Mozilla\Firefox\Profiles\%%B\search.json.mozlz4" echo del /Q /F "%~1\Mozilla\Firefox\Profiles\%%B\search.json.mozlz4" & del /Q /F "%~1\Mozilla\Firefox\Profiles\%%B\search.json.mozlz4"
echo robocopy "%~dp0\AME-Firefox-Injection" "%~1\Mozilla\Firefox\Profiles\%%B" search.json.mozlz4 /E ^> NUL
robocopy "%~dp0\AME-Firefox-Injection" "%~1\Mozilla\Firefox\Profiles\%%B" search.json.mozlz4 /E > NUL
echo PowerShell -NoP -C "Get-Acl '%~1\Mozilla\Firefox\Profiles' | Set-Acl '%~1\Mozilla\Firefox\Profiles\%%B\prefs.js'" ^> NUL 2^>^&1
PowerShell -NoP -C "Get-Acl '%~1\Mozilla\Firefox\Profiles' | Set-Acl '%~1\Mozilla\Firefox\Profiles\%%B\prefs.js'" > NUL 2>&1
echo PowerShell -NoP -C "Get-Acl '%~1\Mozilla\Firefox\Profiles' | Set-Acl '%~1\Mozilla\Firefox\Profiles\%%B\search.json.mozlz4'" ^> NUL 2^>^&1
PowerShell -NoP -C "Get-Acl '%~1\Mozilla\Firefox\Profiles' | Set-Acl '%~1\Mozilla\Firefox\Profiles\%%B\search.json.mozlz4'" > NUL 2>&1
if exist "%~1\Mozilla\Firefox\Profiles" (
for /f "usebackq delims=" %%A in (`dir /B /A:d "%~1\Mozilla\Firefox\Profiles"`) do (
set /a "count3=%count3%+1"
if exist "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js" (
:: Removes lines containing these entries from the profiles prefs.js. This way any old prefs don't overlap with the new prefs
echo findstr /V /C:""""app.shield.optoutstudies.enabled"""" /C:""""browser.aboutwelcome.enabled"""" /C:""""browser.disableResetPrompt"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features"""" /C:""""browser.newtabpage.activity-stream.feeds.section.topstories"""" /C:""""browser.newtabpage.activity-stream.feeds.topsites"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includePocket"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includeVisited"""" /C:""""browser.newtabpage.activity-stream.showSponsored"""" /C:""""browser.newtabpage.activity-stream.showSponsoredTopSites"""" /C:""""browser.urlbar.placeholderNam"""" /C:""""browser.urlbar.suggest.quicksuggest.nonsponsored"""" /C:""""browser.urlbar.suggest.quicksuggest.sponsored"""" /C:""""browser.urlbar.suggest.topsites"""" /C:""""datareporting.healthreport.uploadEnabled"""" /C:""""dom.security.https_only_mode"""" /C:""""dom.security.https_only_mode_ever_enabled"""" "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js "^>^> "%TEMP%\prefs.js.tmp"
findstr /V /C:""""app.shield.optoutstudies.enabled"""" /C:""""browser.aboutwelcome.enabled"""" /C:""""browser.disableResetPrompt"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons"""" /C:""""browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features"""" /C:""""browser.newtabpage.activity-stream.feeds.section.topstories"""" /C:""""browser.newtabpage.activity-stream.feeds.topsites"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includePocket"""" /C:""""browser.newtabpage.activity-stream.section.highlights.includeVisited"""" /C:""""browser.newtabpage.activity-stream.showSponsored"""" /C:""""browser.newtabpage.activity-stream.showSponsoredTopSites"""" /C:""""browser.urlbar.placeholderNam"""" /C:""""browser.urlbar.suggest.quicksuggest.nonsponsored"""" /C:""""browser.urlbar.suggest.quicksuggest.sponsored"""" /C:""""browser.urlbar.suggest.topsites"""" /C:""""datareporting.healthreport.uploadEnabled"""" /C:""""dom.security.https_only_mode"""" /C:""""dom.security.https_only_mode_ever_enabled"""" "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js ">> "%TEMP%\prefs.js.tmp"
)
:: Filters out a few prefs from AME-Firefox-Injectiont\prefs.js and adds them to prefs.js.tmp
echo findstr /V /C:""""browser.toolbars.bookmarks.visibility"""" /C:""""extensions.webextensions.uuids"""" /C:""""extensions.webextensions.uuids"""" "%~dp0\AME-Firefox-Injection\prefs.js"^>^> "%TEMP%\prefs.js.tmp"
findstr /V /C:""""browser.toolbars.bookmarks.visibility"""" /C:""""extensions.webextensions.uuids"""" /C:""""extensions.webextensions.uuids"""" "%~dp0\AME-Firefox-Injection\prefs.js">> "%TEMP%\prefs.js.tmp"
echo move /y "%TEMP%\prefs.js.tmp" "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js"
move /y "%TEMP%\prefs.js.tmp" "%~1\Mozilla\Firefox\Profiles\%%A\prefs.js"
if exist "%~1\Mozilla\Firefox\Profiles\%%A\search.json.mozlz4" echo del /Q /F "%~1\Mozilla\Firefox\Profiles\%%A\search.json.mozlz4" & del /Q /F "%~1\Mozilla\Firefox\Profiles\%%A\search.json.mozlz4"
echo robocopy "%~dp0\AME-Firefox-Injection" "%~1\Mozilla\Firefox\Profiles\%%A" search.json.mozlz4 /E ^> NUL
robocopy "%~dp0\AME-Firefox-Injection" "%~1\Mozilla\Firefox\Profiles\%%A" search.json.mozlz4 /E > NUL
echo PowerShell -NoP -C "Get-Acl '%~1\Mozilla\Firefox\Profiles' | Set-Acl '%~1\Mozilla\Firefox\Profiles\%%A\prefs.js'" ^> NUL 2^>^&1
PowerShell -NoP -C "Get-Acl '%~1\Mozilla\Firefox\Profiles' | Set-Acl '%~1\Mozilla\Firefox\Profiles\%%A\prefs.js'" > NUL 2>&1
echo PowerShell -NoP -C "Get-Acl '%~1\Mozilla\Firefox\Profiles' | Set-Acl '%~1\Mozilla\Firefox\Profiles\%%A\search.json.mozlz4'" ^> NUL 2^>^&1
PowerShell -NoP -C "Get-Acl '%~1\Mozilla\Firefox\Profiles' | Set-Acl '%~1\Mozilla\Firefox\Profiles\%%A\search.json.mozlz4'" > NUL 2>&1
)
)
if %count3% EQU 0 (
echo. & echo Failed! No profiles detected
endlocal & exit /b 2


+ 8
- 0
src/Executables/LayoutUser.xml View File

@ -0,0 +1,8 @@
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6" />
</StartLayoutCollection>
</DefaultLayoutOverride>
</LayoutModificationTemplate>

+ 15
- 0
src/Executables/NOMACSCONF.bat View File

@ -0,0 +1,15 @@
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 (
if "%%A"=="AME_UserHive_Default" (
call :SETTINGSCALL "%SYSTEMDRIVE%\Users\Default\AppData\Roaming"
) 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 :SETTINGSCALL "%%C"
)
)
)
exit /b 0
:SETTINGSCALL
mkdir "%1\nomacs\Image Lounge"
copy /y "nomacssettings.ini" "%1\nomacs\Image Lounge\settings.ini"

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

@ -11,14 +11,14 @@ for /f "usebackq tokens=2 delims=\" %%e in (`reg query "HKEY_USERS" ^| findstr /
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 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"
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 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"
)
for /f "usebackq delims=" %%e in (`reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager" ^| findstr /i /c:"OneDrive"`) do echo reg delete "%%e" /f & reg delete "%%e" /f


+ 6
- 8
src/Executables/SHRT.bat View File

@ -7,17 +7,15 @@ for /f "usebackq delims=" %%A in (`dir /b /a:d "%SYSTEMDRIVE%\Users" ^| findstr
echo mkdir "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned"
mkdir "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned"
copy /y "Terminal.lnk" "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Windows Terminal.lnk"
echo PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Mozilla Thunderbird.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Thunderbird\thunderbird.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Thunderbird'; $S.Save(); $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Firefox.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Firefox\firefox.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Firefox'; $S.Save()"
PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Mozilla Thunderbird.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Thunderbird\thunderbird.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Thunderbird'; $S.Save(); $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Firefox.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Firefox\firefox.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Firefox'; $S.Save()"
echo del /q /f "%SYSTEMDRIVE%\Users\%%A\Desktop\Microsoft Edge.lnk"
del /q /f "%SYSTEMDRIVE%\Users\%%A\Desktop\Microsoft Edge.lnk"
echo del /q /f "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk"
del /q /f "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk"
echo mkdir "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\nomacs"
mkdir "%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\nomacs"
echo PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Terminal.lnk'); $S.TargetPath = '%PROGRAMDATA%\Scoop\GlobalScoopApps\apps\windows-terminal\current\WindowsTerminal.exe'; $S.Save(); $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Thunderbird.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Thunderbird\thunderbird.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Thunderbird'; $S.Save(); $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Firefox.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Firefox\firefox.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Firefox'; $S.Save(); $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\nomacs\nomacs - Image Lounge.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\nomacs\bin\nomacs.exe'; $S.WorkingDirectory = 'C:\Program Files\nomacs; $S.Save()"
PowerShell -NoP -C "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Terminal.lnk'); $S.TargetPath = '%PROGRAMDATA%\Scoop\GlobalScoopApps\apps\windows-terminal\current\WindowsTerminal.exe'; $S.Save(); $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Thunderbird.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Thunderbird\thunderbird.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Thunderbird'; $S.Save(); $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\OpenShell\Pinned\Firefox.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\Mozilla Firefox\firefox.exe'; $S.WorkingDirectory = 'C:\Program Files\Mozilla Firefox'; $S.Save(); $s = $ws.CreateShortcut('%SYSTEMDRIVE%\Users\%%A\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\nomacs\nomacs - Image Lounge.lnk'); $S.TargetPath = '%HOMEDRIVE%\Program Files\nomacs\bin\nomacs.exe'; $S.WorkingDirectory = 'C:\Program Files\nomacs'; $S.Save()"
)
@echo ON
del /q /f "%SYSTEMDRIVE%\Users\Public\Desktop\Microsoft Edge.lnk"
del /q /f "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player.lnk"


+ 1
- 1
src/Executables/SLNT.bat View File

@ -54,7 +54,7 @@ reg add "HKU\%~1\SOFTWARE\OpenShell\StartMenu\Settings" /v "GlassColor" /t REG_D
reg add "HKU\%~1\SOFTWARE\OpenShell\StartMenu\Settings" /v "SkinW7" /t REG_SZ /d "Fluent-AME" /f
reg add "HKU\%~1\SOFTWARE\OpenShell\StartMenu\Settings" /v "SkinVariationW7" /t REG_SZ /f
reg add "HKU\%~1\SOFTWARE\OpenShell\StartMenu\Settings" /v "ShiftWin" /t REG_SZ /d "Nothing" /f
::reg add "HKU\%~1\SOFTWARE\OpenShell\StartMenu\Settings" /v "SkinOptionsW7" /t REG_MULTI_SZ /d "DARK_MAIN=0\0METRO_MAIN=0\0LIGHT_MAIN=0\0AUTOMODE_MAIN=1\0DARK_SUBMENU=0\0METRO_SUBMENU=\0LIGHT_SUBMENU=0\0AUTOMODE_SUBMENU=1\0SUBMENU_SEPARATORS=1\0DARK_SEARCH=0\0METRO_SEARCH=\0LIGHT_SEARCH=0\0AUTOMODE_SEARCH=1\0SEARCH_FRAME=1\0SEARCH_COLOR=0\0SMALL_SEARCH=0\0MOERN_SEARCH=1\0SEARCH_ITALICS=0\0NONE=0\0SEPARATOR=0\0TWO_TONE=1\0CLASSIC_SELECTOR=1\0HAF_SELECTOR=0\0CURVED_MENUSEL=1\0CURVED_SUBMENU=0\0SELECTOR_REVEAL=1\0TRANSPARENT=0\0OPAQU_SUBMENU=1\0OPAQUE_MENU=0\0OPAQUE=0\0STANDARD=0\0SMALL_MAIN2=1\0SMALL_ICONS=0\0COMPACT_UBMENU=0\0PRESERVE_MAIN2=0\0LESS_PADDING=0\0EXTRA_PADDING=1\024_PADDING=0\0LARGE_PROGRAMS0\0TRANSPARENT_SHUTDOWN=0\0OUTLINE_SHUTDOWN=0\0BUTTON_SHUTDOWN=1\0EXPERIMENTAL_SHUTDOWN=0\LARGE_FONT=0\0CONNECTED_BORDER=0\0FLOATING_BORDER=1\0LARGE_SUBMENU=0\0LARGE_LISTS=0\0THI_MAIN2=0\0EXPERIMENTAL_MAIN2=1\0USER_IMAGE=1\0USER_OUTSIDE=0\0SCALING_USER=1\056=0\064=\0TRANSPARENT_USER=0\0UWP_SCROLLBAR=0\0MODERN_SCROLLBAR=1\0SMALL_ARROWS=0\0ARROW_BACKGROUD=1\0ICON_FRAME=0\0SEARCH_SEPARATOR=0\0NO_PROGRAMS_BUTTON=0" /f
reg add "HKU\%~1\SOFTWARE\OpenShell\StartMenu\Settings" /v "SkinOptionsW7" /t REG_MULTI_SZ /d "DARK_MAIN=0\0METRO_MAIN=0\0LIGHT_MAIN=0\0AUTOMODE_MAIN=1\0DARK_SUBMENU=0\0METRO_SUBMENU=\0LIGHT_SUBMENU=0\0AUTOMODE_SUBMENU=1\0SUBMENU_SEPARATORS=1\0DARK_SEARCH=0\0METRO_SEARCH=\0LIGHT_SEARCH=0\0AUTOMODE_SEARCH=1\0SEARCH_FRAME=1\0SEARCH_COLOR=0\0SMALL_SEARCH=0\0MOERN_SEARCH=1\0SEARCH_ITALICS=0\0NONE=0\0SEPARATOR=0\0TWO_TONE=1\0CLASSIC_SELECTOR=1\0HAF_SELECTOR=0\0CURVED_MENUSEL=1\0CURVED_SUBMENU=0\0SELECTOR_REVEAL=1\0TRANSPARENT=0\0OPAQU_SUBMENU=1\0OPAQUE_MENU=0\0OPAQUE=0\0STANDARD=0\0SMALL_MAIN2=1\0SMALL_ICONS=0\0COMPACT_UBMENU=0\0PRESERVE_MAIN2=0\0LESS_PADDING=0\0EXTRA_PADDING=1\024_PADDING=0\0LARGE_PROGRAMS0\0TRANSPARENT_SHUTDOWN=0\0OUTLINE_SHUTDOWN=0\0BUTTON_SHUTDOWN=1\0EXPERIMENTAL_SHUTDOWN=0\LARGE_FONT=0\0CONNECTED_BORDER=0\0FLOATING_BORDER=1\0LARGE_SUBMENU=0\0LARGE_LISTS=0\0THI_MAIN2=0\0EXPERIMENTAL_MAIN2=1\0USER_IMAGE=1\0USER_OUTSIDE=0\0SCALING_USER=1\056=0\064=\0TRANSPARENT_USER=0\0UWP_SCROLLBAR=0\0MODERN_SCROLLBAR=1\0SMALL_ARROWS=0\0ARROW_BACKGROUD=1\0ICON_FRAME=0\0SEARCH_SEPARATOR=0\0NO_PROGRAMS_BUTTON=0" /f
reg add "HKU\%~1\SOFTWARE\OpenShell\StartMenu\Settings" /v "SkipMetro" /t REG_DWORD /d 1 /f
reg add "HKU\%~1\SOFTWARE\OpenShell\StartMenu\Settings" /v "MenuItems7" /t REG_MULTI_SZ /d "Item1.Command=user_files\0Item1.Settings=NOEXPAND\0Item2.Command=user_documents\0Item2.Settings=NOEXPAND\0Item3.Command=user_pictures\0Item3.Settings=NOEXPAND\0Item4.Command=user_music\0Item4.Settings=NOEXPAND\0Item5.Command=user_videos\0Item5.Settings=NOEXPAND\0Item6.Command=downloads\0Item6.Settings=NOEXPAND\0Item7.Command=homegroup\0Item7.Settings=ITEM_DISABLED\0Item8.Command=separator\0Item9.Command=games\0Item9.Settings=TRACK_RECENT|NOEXPAND|ITEM_DISABLED\0Item10.Command=favorites\0Item10.Settings=ITEM_DISABLED\0Item11.Command=recent_documents\0Item12.Command=computer\0Item12.Settings=NOEXPAND\0Item13.Command=network\0Item13.Settings=ITEM_DISABLED\0Item14.Command=network_connections\0Item14.Settings=ITEM_DISABLED\0Item15.Command=separator\0Item16.Command=control_panel\0Item16.Settings=TRACK_RECENT\0Item17.Command=pc_settings\0Item17.Settings=TRACK_RECENT\0Item18.Command=admin\0Item18.Settings=TRACK_RECENT|ITEM_DISABLED\0Item19.Command=devices\0Item19.Settings=ITEM_DISABLED\0Item20.Command=defaults\0Item20.Settings=ITEM_DISABLED\0Item21.Command=help\0Item21.Settings=ITEM_DISABLED\0Item22.Command=run\0Item23.Command=apps\0Item23.Settings=ITEM_DISABLED\0Item24.Command=windows_security\0Item24.Settings=ITEM_DISABLED\0" /f


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

@ -10,8 +10,8 @@ for /f "usebackq tokens=2 delims=\" %%A in (`reg query "HKEY_USERS" ^| findstr /
reg query "HKEY_USERS\%%A" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > NUL 2>&1
if not errorlevel 1 (
for /f "usebackq tokens=3* delims= " %%B in (`reg query "HKU\%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Local AppData" 2^>^&1 ^| findstr /R /X /C:".*Local AppData[ ]*REG_SZ[ ].*"`) do (
echo copy /y "Layout.xml" "%%C\Microsoft\Windows\Shell\LayoutModification.xml"
copy /y "Layout.xml" "%%C\Microsoft\Windows\Shell\LayoutModification.xml"
echo copy /y "LayoutUser.xml" "%%C\Microsoft\Windows\Shell\LayoutModification.xml"
copy /y "LayoutUser.xml" "%%C\Microsoft\Windows\Shell\LayoutModification.xml"
)
echo reg add "HKU\%%A\SOFTWARE\Policies\Microsoft\Windows\Explorer" /f
reg add "HKU\%%A\SOFTWARE\Policies\Microsoft\Windows\Explorer" /f


BIN
src/Executables/Terminal.lnk View File


+ 12
- 9
src/Executables/WALLPAPER.bat View File

@ -1,14 +1,14 @@
NSudoLC -U:T -P:E -M:S -Priority:RealTime -UseCurrentConsole -Wait icacls "%WINDIR%\Resources\Themes\aero.theme" /reset /t
PowerShell -NoP -C "$Content = (Get-Content '%WINDIR%\Resources\Themes\aero.theme'); $Content = $Content -replace 'Wallpaper=%%SystemRoot%%.*', 'Wallpaper=%%SystemRoot%%\web\wallpaper\Windows\ame_wallpaper_1440.bmp'; $Content = $Content -replace 'SystemMode=.*', 'SystemMode=Dark'; $Content -replace 'AppMode=.*', 'AppMode=Light' | Set-Content '%WINDIR%\Resources\Themes\aero.theme'"
PowerShell -NoP -C "$Content = (Get-Content '%WINDIR%\Resources\Themes\aero.theme'); $Content = $Content -replace 'Wallpaper=%%SystemRoot%%.*', 'Wallpaper=%%SystemRoot%%\web\wallpaper\Windows\ame_wallpaper_4K.bmp'; $Content = $Content -replace 'SystemMode=.*', 'SystemMode=Dark'; $Content -replace 'AppMode=.*', 'AppMode=Light' | Set-Content '%WINDIR%\Resources\Themes\aero.theme'"
@echo OFF
if exist "ame_wallpaper_1440.bmp" (
echo move /y "ame_wallpaper_1440.bmp" "%WINDIR%\Web\Wallpaper\Windows"
move /y "ame_wallpaper_1440.bmp" "%WINDIR%\Web\Wallpaper\Windows"
echo icacls "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_1440.bmp" /reset
icacls "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_1440.bmp" /reset
if exist "ame_wallpaper_4K.bmp" (
echo move /y "ame_wallpaper_4K.bmp" "%WINDIR%\Web\Wallpaper\Windows"
move /y "ame_wallpaper_4K.bmp" "%WINDIR%\Web\Wallpaper\Windows"
echo icacls "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_4K.bmp" /reset
icacls "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_4K.bmp" /reset
)
set "RunEC=10"
@ -63,12 +63,15 @@ if exist "img0.jpg" (
move /y "img0.jpg" "%WINDIR%\Web\Wallpaper\Windows\img0.jpg"
)
if not exist "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_1440.bmp" set "wallFail=true" & goto lockScreen
if not exist "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_4K.bmp" set "wallFail=true" & goto lockScreen
echo reg add "HKEY_USERS\%~1\Control Panel\Desktop" /v WallPaper /t REG_SZ /d "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_1440.bmp" /f
reg add "HKEY_USERS\%~1\Control Panel\Desktop" /v WallPaper /t REG_SZ /d "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_1440.bmp" /f
echo reg add "HKEY_USERS\%~1\Control Panel\Desktop" /v WallPaper /t REG_SZ /d "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_4K.bmp" /f
reg add "HKEY_USERS\%~1\Control Panel\Desktop" /v WallPaper /t REG_SZ /d "%WINDIR%\Web\Wallpaper\Windows\ame_wallpaper_4K.bmp" /f
if %errorlevel% NEQ 0 set "wallFail=true" & goto lockScreen
del /q /f "%~2\Microsoft\Windows\Themes\TranscodedWallpaper"
rmdir /q /s "%~2\Microsoft\Windows\Themes\CachedFiles"
:lockScreen
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative\%~1" /v "RotatingLockScreen*" > NUL 2>&1


BIN
src/Executables/ame_wallpaper_1440.bmp View File

Before After

BIN
src/src.7z → src/Executables/ame_wallpaper_4K.bmp View File

Before After

BIN
src/Executables/amecs.exe View File


+ 188
- 0
src/Executables/assoc.ps1 View File

@ -1,3 +1,161 @@
function Get-Hash {
[CmdletBinding()]
param (
[Parameter( Position = 0, Mandatory = $True )]
[string]
$BaseInfo
)
function local:Get-ShiftRight {
[CmdletBinding()]
param (
[Parameter( Position = 0, Mandatory = $true)]
[long] $iValue,
[Parameter( Position = 1, Mandatory = $true)]
[int] $iCount
)
if ($iValue -band 0x80000000) {
Write-Output (( $iValue -shr $iCount) -bxor 0xFFFF0000)
}
else {
Write-Output ($iValue -shr $iCount)
}
}
function local:Get-Long {
[CmdletBinding()]
param (
[Parameter( Position = 0, Mandatory = $true)]
[byte[]] $Bytes,
[Parameter( Position = 1)]
[int] $Index = 0
)
Write-Output ([BitConverter]::ToInt32($Bytes, $Index))
}
function local:Convert-Int32 {
param (
[Parameter( Position = 0, Mandatory = $true)]
$Value
)
[byte[]] $bytes = [BitConverter]::GetBytes($Value)
return [BitConverter]::ToInt32( $bytes, 0)
}
[Byte[]] $bytesBaseInfo = [System.Text.Encoding]::Unicode.GetBytes($baseInfo)
$bytesBaseInfo += 0x00, 0x00
$MD5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
[Byte[]] $bytesMD5 = $MD5.ComputeHash($bytesBaseInfo)
$lengthBase = ($baseInfo.Length * 2) + 2
$length = (($lengthBase -band 4) -le 1) + (Get-ShiftRight $lengthBase 2) - 1
$base64Hash = ""
if ($length -gt 1) {
$map = @{PDATA = 0; CACHE = 0; COUNTER = 0 ; INDEX = 0; MD51 = 0; MD52 = 0; OUTHASH1 = 0; OUTHASH2 = 0;
R0 = 0; R1 = @(0, 0); R2 = @(0, 0); R3 = 0; R4 = @(0, 0); R5 = @(0, 0); R6 = @(0, 0); R7 = @(0, 0)
}
$map.CACHE = 0
$map.OUTHASH1 = 0
$map.PDATA = 0
$map.MD51 = (((Get-Long $bytesMD5) -bor 1) + 0x69FB0000L)
$map.MD52 = ((Get-Long $bytesMD5 4) -bor 1) + 0x13DB0000L
$map.INDEX = Get-ShiftRight ($length - 2) 1
$map.COUNTER = $map.INDEX + 1
while ($map.COUNTER) {
$map.R0 = Convert-Int32 ((Get-Long $bytesBaseInfo $map.PDATA) + [long]$map.OUTHASH1)
$map.R1[0] = Convert-Int32 (Get-Long $bytesBaseInfo ($map.PDATA + 4))
$map.PDATA = $map.PDATA + 8
$map.R2[0] = Convert-Int32 (($map.R0 * ([long]$map.MD51)) - (0x10FA9605L * ((Get-ShiftRight $map.R0 16))))
$map.R2[1] = Convert-Int32 ((0x79F8A395L * ([long]$map.R2[0])) + (0x689B6B9FL * (Get-ShiftRight $map.R2[0] 16)))
$map.R3 = Convert-Int32 ((0xEA970001L * $map.R2[1]) - (0x3C101569L * (Get-ShiftRight $map.R2[1] 16) ))
$map.R4[0] = Convert-Int32 ($map.R3 + $map.R1[0])
$map.R5[0] = Convert-Int32 ($map.CACHE + $map.R3)
$map.R6[0] = Convert-Int32 (($map.R4[0] * [long]$map.MD52) - (0x3CE8EC25L * (Get-ShiftRight $map.R4[0] 16)))
$map.R6[1] = Convert-Int32 ((0x59C3AF2DL * $map.R6[0]) - (0x2232E0F1L * (Get-ShiftRight $map.R6[0] 16)))
$map.OUTHASH1 = Convert-Int32 ((0x1EC90001L * $map.R6[1]) + (0x35BD1EC9L * (Get-ShiftRight $map.R6[1] 16)))
$map.OUTHASH2 = Convert-Int32 ([long]$map.R5[0] + [long]$map.OUTHASH1)
$map.CACHE = ([long]$map.OUTHASH2)
$map.COUNTER = $map.COUNTER - 1
}
[Byte[]] $outHash = @(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
[byte[]] $buffer = [BitConverter]::GetBytes($map.OUTHASH1)
$buffer.CopyTo($outHash, 0)
$buffer = [BitConverter]::GetBytes($map.OUTHASH2)
$buffer.CopyTo($outHash, 4)
$map = @{PDATA = 0; CACHE = 0; COUNTER = 0 ; INDEX = 0; MD51 = 0; MD52 = 0; OUTHASH1 = 0; OUTHASH2 = 0;
R0 = 0; R1 = @(0, 0); R2 = @(0, 0); R3 = 0; R4 = @(0, 0); R5 = @(0, 0); R6 = @(0, 0); R7 = @(0, 0)
}
$map.CACHE = 0
$map.OUTHASH1 = 0
$map.PDATA = 0
$map.MD51 = ((Get-Long $bytesMD5) -bor 1)
$map.MD52 = ((Get-Long $bytesMD5 4) -bor 1)
$map.INDEX = Get-ShiftRight ($length - 2) 1
$map.COUNTER = $map.INDEX + 1
while ($map.COUNTER) {
$map.R0 = Convert-Int32 ((Get-Long $bytesBaseInfo $map.PDATA) + ([long]$map.OUTHASH1))
$map.PDATA = $map.PDATA + 8
$map.R1[0] = Convert-Int32 ($map.R0 * [long]$map.MD51)
$map.R1[1] = Convert-Int32 ((0xB1110000L * $map.R1[0]) - (0x30674EEFL * (Get-ShiftRight $map.R1[0] 16)))
$map.R2[0] = Convert-Int32 ((0x5B9F0000L * $map.R1[1]) - (0x78F7A461L * (Get-ShiftRight $map.R1[1] 16)))
$map.R2[1] = Convert-Int32 ((0x12CEB96DL * (Get-ShiftRight $map.R2[0] 16)) - (0x46930000L * $map.R2[0]))
$map.R3 = Convert-Int32 ((0x1D830000L * $map.R2[1]) + (0x257E1D83L * (Get-ShiftRight $map.R2[1] 16)))
$map.R4[0] = Convert-Int32 ([long]$map.MD52 * ([long]$map.R3 + (Get-Long $bytesBaseInfo ($map.PDATA - 4))))
$map.R4[1] = Convert-Int32 ((0x16F50000L * $map.R4[0]) - (0x5D8BE90BL * (Get-ShiftRight $map.R4[0] 16)))
$map.R5[0] = Convert-Int32 ((0x96FF0000L * $map.R4[1]) - (0x2C7C6901L * (Get-ShiftRight $map.R4[1] 16)))
$map.R5[1] = Convert-Int32 ((0x2B890000L * $map.R5[0]) + (0x7C932B89L * (Get-ShiftRight $map.R5[0] 16)))
$map.OUTHASH1 = Convert-Int32 ((0x9F690000L * $map.R5[1]) - (0x405B6097L * (Get-ShiftRight ($map.R5[1]) 16)))
$map.OUTHASH2 = Convert-Int32 ([long]$map.OUTHASH1 + $map.CACHE + $map.R3)
$map.CACHE = ([long]$map.OUTHASH2)
$map.COUNTER = $map.COUNTER - 1
}
$buffer = [BitConverter]::GetBytes($map.OUTHASH1)
$buffer.CopyTo($outHash, 8)
$buffer = [BitConverter]::GetBytes($map.OUTHASH2)
$buffer.CopyTo($outHash, 12)
[Byte[]] $outHashBase = @(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
$hashValue1 = ((Get-Long $outHash 8) -bxor (Get-Long $outHash))
$hashValue2 = ((Get-Long $outHash 12) -bxor (Get-Long $outHash 4))
$buffer = [BitConverter]::GetBytes($hashValue1)
$buffer.CopyTo($outHashBase, 0)
$buffer = [BitConverter]::GetBytes($hashValue2)
$buffer.CopyTo($outHashBase, 4)
$base64Hash = [Convert]::ToBase64String($outHashBase)
}
Write-Output $base64Hash
}
function Get-Time {
$now = [DateTime]::Now
$dateTime = [DateTime]::New($now.Year, $now.Month, $now.Day, $now.Hour, $now.Minute, 0)
$fileTime = $dateTime.ToFileTime()
$hi = ($fileTime -shr 32)
$low = ($fileTime -band 0xFFFFFFFFL)
$dateTimeHex = ($hi.ToString("X8") + $low.ToString("X8")).ToLower()
Write-Output $dateTimeHex
}
function Delete-UserChoiceKey {
param (
[Parameter( Position = 0, Mandatory = $True )]
@ -32,6 +190,22 @@ function Delete-UserChoiceKey {
$Hive = $args[1]
$userExperience = ""
if ($Hive.StartsWith("S-"))
{
$userExperienceSearch = "User Choice set via Windows User Experience"
$user32Path = [Environment]::GetFolderPath([Environment+SpecialFolder]::SystemX86) + "\Shell32.dll"
$fileStream = [System.IO.File]::Open($user32Path, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::ReadWrite)
$binaryReader = New-Object System.IO.BinaryReader($fileStream)
[Byte[]] $bytesData = $binaryReader.ReadBytes(5mb)
$fileStream.Close()
$dataString = [Text.Encoding]::Unicode.GetString($bytesData)
$position1 = $dataString.IndexOf($userExperienceSearch)
$position2 = $dataString.IndexOf("}", $position1)
$userExperience = $dataString.Substring($position1, $position2 - $position1 + 1)
}
Write-Host "Setting file associations for HKEY_USERS\$Hive..."
New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS | Out-Null
@ -61,6 +235,12 @@ for ($i = 2; $i -lt $args.Length; $i++) {
New-Item -Path "HKU:\$Hive\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Force | Out-Null
}
New-ItemProperty -Path "HKU:\$Hive\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$($splitArg[2])_$($splitArg[1])" -PropertyType DWORD -Value 0 -Force | Out-Null
$dateTimeHex = Get-Time
$hash = Get-Hash "$($splitArg[1])$Hive$($splitArg[2])$dateTimeHex$userExperience".ToLower()
[Microsoft.Win32.Registry]::SetValue("HKEY_USERS\$Hive\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\$($splitArg[1])\UserChoice", "Hash", $hash)
[Microsoft.Win32.Registry]::SetValue("HKEY_USERS\$Hive\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\$($splitArg[1])\UserChoice", "ProgId", "$($splitArg[2])")
} else {
If (-NOT (Test-Path "HKU:\$Hive\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$($splitArg[0])")) {
New-Item -Path "HKU:\$Hive\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$($splitArg[0])" -Force | Out-Null
@ -73,6 +253,14 @@ for ($i = 2; $i -lt $args.Length; $i++) {
}
New-ItemProperty -Path "HKU:\$Hive\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$($splitArg[1])_$($splitArg[0])" -PropertyType DWORD -Value 0 -Force | Out-Null
if ($Hive.StartsWith("S-")) {
$dateTimeHex = Get-Time
$hash = Get-Hash "$($splitArg[0])$Hive$($splitArg[1])$dateTimeHex$userExperience".ToLower()
[Microsoft.Win32.Registry]::SetValue("HKEY_USERS\$Hive\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$($splitArg[0])\UserChoice", "Hash", $hash)
[Microsoft.Win32.Registry]::SetValue("HKEY_USERS\$Hive\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$($splitArg[0])\UserChoice", "ProgId", "$($splitArg[1])")
}
[Microsoft.Win32.Registry]::SetValue("HKEY_CLASSES_ROOT\$($splitArg[0])", "", "$($splitArg[1])")
[Microsoft.Win32.Registry]::SetValue("HKEY_USERS\$Hive\SOFTWARE\Classes\$($splitArg[0])", "", "$($splitArg[1])")
}

BIN
src/Executables/img0.jpg View File

Before After
Width: 1920  |  Height: 1200  |  Size: 325 KiB Width: 3840  |  Height: 2160  |  Size: 648 KiB

BIN
src/Executables/img100.jpg View File

Before After
Width: 2560  |  Height: 1440  |  Size: 301 KiB Width: 2560  |  Height: 1440  |  Size: 1.1 MiB

BIN
src/Executables/img103.png View File

Before After
Width: 2560  |  Height: 1440  |  Size: 1.5 MiB Width: 2560  |  Height: 1440  |  Size: 3.7 MiB

+ 16
- 0
src/Executables/nomacssettings.ini View File

@ -0,0 +1,16 @@
[General]
firstTime=false
[AppSettings]
firstTime.nomacs.3=false
appMode=0
currentAppMode=0
showToolBar=false
[SynchronizeSettings]
checkForUpdates=false
disableUpdateInteraction=false
[DkDialog]
saveTabsDialog=false
saveTabsDialog-answer=65536

+ 15
- 2
src/Executables/scoop.ps1 View File

@ -1,5 +1,18 @@
#Set-ExecutionPolicy RemoteSigned -Force -scope CurrentUser
iwr -useb get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin -ScoopDir "$env:ProgramFiles\Scoop" -ScoopGlobalDir "$env:ProgramFiles\Scoop\GlobalScoopApps"
.\install.ps1 -RunAsAdmin -ScoopDir "$env:ProgramData\Scoop" -ScoopGlobalDir "$env:ProgramData\Scoop\GlobalScoopApps"
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
scoop install git --global
$sysPath = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + "$env:ProgramData\Scoop\shims"
setx path $sysPath -m
setx SCOOP "$env:ProgramData\Scoop" -m
icacls "$env:ProgramData\Scoop" /grant Everyone:F /t | Out-Null
icacls "$env:ProgramData\Scoop" /grant Users:F /t | Out-Null
scoop install git --global
scoop bucket add extras
scoop install windows-terminal --global
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
$forwardData = $env:ProgramData.Replace('\','/')
git config --global --add safe.directory "$forwardData/Scoop/buckets/extras"

+ 5
- 3
src/playbook.conf View File

@ -5,7 +5,7 @@
<ShortDescription>Official AME Playbook for Windows 11</ShortDescription>
<Title>Windows 11 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>Ameliorated</Details>
<Details>Official Ameliorated Playbook for Windows 11. Cutting the tumor out of your OS.</Details>
<Version>0.3</Version>
<SupportedBuilds>
<string>22000</string>
@ -17,9 +17,11 @@
<Requirement>Activation</Requirement>
<Requirement>DefenderDisabled</Requirement>
<Requirement>NoAntivirus</Requirement>
<Requirement>PasswordSet</Requirement>
<Requirement>AdministratorPasswordSet</Requirement>
</Requirements>
<ProductCode>117</ProductCode>
<ProgressText>Optimizing various settings, improving the user interface experience, installing replacement apps, and removing hundreds of privacy infringing executables from the system.</ProgressText>
<Git>https://git.ameliorated.info/Styris/AME-11</Git>
<PasswordReplace>malte</PasswordReplace>
<Git>https://git.ameliorated.info/Styris/AME-11/src/branch/master</Git>
<Website>https://ameliorated.io</Website>
</Playbook>

Loading…
Cancel
Save