Skip to content

Commit

Permalink
style: minor changes to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Oct 7, 2023
1 parent a0f8d7b commit db0ae95
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/playbook/Executables/CLEANUP.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Invoke-AtlasDiskCleanup {
"Downloaded Program Files" = 2
"Internet Cache Files" = 2
"Language Pack" = 0
"Old ChkDsk Files" = 0
"Old ChkDsk Files" = 2
"Recycle Bin" = 0
"RetailDemo Offline Content" = 2
"Setup Log Files" = 2
Expand Down
2 changes: 0 additions & 2 deletions src/playbook/Executables/DISABLEPNP.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ $devices = @(
"PCI Memory Controller",
"PCI Simple Communications Controller",
"PCI standard RAM Controller",
# Commented as Remote Desktop is meant to be supported
# "Remote Desktop Device Redirector Bus",
"SM Bus Controller",
"System CMOS/real time clock",
"System Speaker",
Expand Down
2 changes: 1 addition & 1 deletion src/playbook/Executables/FINALIZE.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ if "%diskDrive%" == "SSD" (
reg delete "HKCR\Drive\shellex\PropertySheetHandlers\{55B3A0BD-4D28-42fe-8CFB-FA3EDFF969B8}" /f > nul 2>&1

rem Disable Memory Compression
rem SysMain should already disable it, but make sure it is disabled by executing this command.
rem If SysMain is disabled, MC should be too, but ensure its state by executing this command.
PowerShell -NoP -C "Disable-MMAGent -MemoryCompression" > nul

rem Disable SysMain (Superfetch and Prefetch)
Expand Down
2 changes: 1 addition & 1 deletion src/playbook/Executables/KILLKPH.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ foreach ($userDir in $userDirectories) {
Copy-Item -Path $settingsFilePath -Destination $destinationPath -Force
}

# Kill the window informing about process hacker
# Kill the window informing about process hacker during deployment
Stop-Process -name pcaui -Force -ErrorAction SilentlyContinue
2 changes: 1 addition & 1 deletion src/playbook/Executables/THEME.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for /d %%a in ("%ProgramData%\Microsoft\Windows\SystemData\*") do (
)
)

taskkill /F /IM sihost.exe > nul 2>&1
taskkill /f /im sihost.exe > nul 2>&1
exit /b

:ALLUSERS
Expand Down
14 changes: 7 additions & 7 deletions src/playbook/Executables/WIN11.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ if defined win10 (
bcdedit /set description "AtlasOS 10" > nul

rem Delete 11-only tweaks
rd /s /q "%windir%\AtlasDesktop\3. Configuration\Background Apps" > nul
rd /s /q "%windir%\AtlasDesktop\3. Configuration\Power\Timer Resolution" > nul
rd /s /q "%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Compact View" > nul
rd /s /q "%windir%\AtlasDesktop\4. Optional Tweaks\Windows 11 Context Menu" > nul
del /f /q "%windir%\AtlasModules\Tools\TimerResolution.exe" > nul
rd /s /q "%windir%\AtlasDesktop\3. Configuration\Background Apps" > nul 2>&1
rd /s /q "%windir%\AtlasDesktop\3. Configuration\Power\Timer Resolution" > nul 2>&1
rd /s /q "%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Compact View" > nul 2>&1
rd /s /q "%windir%\AtlasDesktop\4. Optional Tweaks\Windows 11 Context Menu" > nul 2>&1
del /f /q "%windir%\AtlasModules\Tools\TimerResolution.exe" > nul 2>&1

rem Set hidden Settings pages
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "SettingsPageVisibility" /t REG_SZ /d "%hiddenPages%;backup;" /f > nul
Expand All @@ -60,7 +60,7 @@ if defined win10 exit /b
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: Remove volume flyout
rd /s /q "%windir%\AtlasDesktop\3. Configuration\4. Optional Tweaks\Volume Flyout" > nul
rd /s /q "%windir%\AtlasDesktop\3. Configuration\4. Optional Tweaks\Volume Flyout" > nul 2>&1

:: Set hidden Settings pages
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "SettingsPageVisibility" /t REG_SZ /d "%hiddenPages%;family-group;deviceusage;home;" /f > nul
Expand Down Expand Up @@ -141,7 +141,7 @@ echo %~1 | find "_Classes" > nul
if errorlevel 1 (
for /f "tokens=*" %%a in ('reg query "%mrtCache%" /s ^| find /i "%mrtCache%"') do (
for /f "tokens=1-2" %%b in ('reg query "%%a" /v * ^| find /i "ShellNewDisplayName_Bmp"') do (
reg add "%%a" /v "%%b %%c" /t REG_SZ /d "" /f
reg add "%%a" /v "%%b %%c" /t REG_SZ /d "" /f > nul
)
)
)
Expand Down

0 comments on commit db0ae95

Please sign in to comment.