Skip to content

Commit 16fb0ea

Browse files
authored
run the cleaner script earlier
1 parent 5c9f8ce commit 16fb0ea

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Diff for: src/Configuration/features/revision/config.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ description: Applies some Revision configurations
44
privilege: TrustedInstaller
55
actions:
66

7+
- !writeStatus: {status: "Removing logs"}
8+
- !run:
9+
exeDir: true
10+
exe: "PowerShell"
11+
args: '-NoP -ExecutionPolicy Bypass -File CLEANER.ps1'
12+
weight: 150
13+
714
- !writeStatus: {status: "Finalizing process"}
815
- !registryValue: {path: 'HKCU\System\GameConfigStore', value: 'GameDVR_FSEBehaviorMode', type: REG_DWORD, data: '0', weight: 70}
916
- !registryValue: {path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications', value: 'GlobalUserDisabled', type: REG_DWORD, data: '1', weight: 60}
@@ -36,13 +43,6 @@ actions:
3643
option: "configure-wallpaper"
3744
weight: 90
3845

39-
- !writeStatus: {status: "Removing logs"}
40-
- !run:
41-
exeDir: true
42-
exe: "PowerShell"
43-
args: '-NoP -ExecutionPolicy Bypass -File CLEANER.ps1'
44-
weight: 150
45-
4646
- !writeStatus: {status: "Configuring features"}
4747
- !run:
4848
exeDir: true

Diff for: src/Configuration/features/revision/registry/configure-internet-explorer.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: configure-internet-explorer
44
privilege: TrustedInstaller
55
actions:
66

7-
# ;; Disable Enhanced Security Configuration on Internet Explorer -> https://support.microsoft.com/en-sg/help/4551931/faq-about-internet-explorer-enhanced-security-configuration
87
# ===============
98
# === Updates ===
109
# ===============

Diff for: src/Executables/CLEANER.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ foreach ($item in $volumeCache.GetEnumerator()) {
3636
}
3737
}
3838

39-
Start-Process -FilePath "$env:SystemRoot\system32\cleanmgr.exe" -ArgumentList "/sagerun:1337"
39+
Start-Process -FilePath "$env:SystemRoot\system32\cleanmgr.exe" -ArgumentList "/sagerun:1337" -Wait:$false
4040

4141
Write-Host "Cleaning up Event Logs"
4242
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }

0 commit comments

Comments
 (0)