Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
- remove MicrosoftEdgeDevToolsClient_8wekyb3d8bbwe and MicrosoftWindows.Client.WebExperience leftovers
- change order of execution in ngen.ps1
  • Loading branch information
melo936 authored Oct 28, 2023
1 parent 6db74de commit 2ef0eb4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/Configuration/features/revision/appx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ actions:

- !writeStatus: {status: "Removing Appx Packages"}
- !appx: {name: '*Disney*', type: family, weight: 10}

- !appx: {name: '*microsoft.microsoftedge.stable*', type: family, weight: 10, option: "remove-edge"}
- !appx: {name: '*Microsoft.MicrosoftEdge*', type: family, weight: 10, option: "remove-edge"}
- !appx: {name: '*Microsoft.MicrosoftEdgeDevToolsClient*', type: family, weight: 10, option: "remove-edge"}
- !file: {path: "C:\\Windows\\SystemApps\\Microsoft.MicrosoftEdgeDevToolsClient_8wekyb3d8bbwe", option: "remove-edge"}

- !appx: {name: '*OneDrive*', type: family, weight: 10, option: "remove-onedrive"}
- !appx: {name: '*Spotify*', type: family, weight: 10}
- !appx: {name: '*SecureAssessmentBrowser*', type: family, weight: 10}
Expand Down
2 changes: 2 additions & 0 deletions src/Executables/CLEANER.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ foreach ($folderName in $foldersToRemove) {
}
}

Remove-Item -Path "C:\Program Files\WindowsApps\MicrosoftWindows.Client.WebExperience*" -Recurse -Force

Get-ChildItem -Path "$env:SystemRoot" -Filter *.log -File -Recurse -Force | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue

Write-Host "Cleaning up %TEMP%"
Expand Down
2 changes: 1 addition & 1 deletion src/Executables/ONED.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exit /b 0
for /f "usebackq delims=" %%e in (`reg query "HKU\%~1\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\BannerStore" ^| findstr /i /c:"OneDrive"`) do reg delete "%%e" /f >NUL 2>nul

for /f "usebackq delims=" %%e in (`reg query "HKU\%~1\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers" ^| findstr /i /c:"OneDrive"`) do reg delete "%%e" /f >NUL 2>nul
)

for /f "usebackq delims=" %%e in (`reg query "HKU\%~1\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths" ^| findstr /i /c:"OneDrive"`) do reg delete "%%e" /f >NUL 2>nul

for /f "usebackq delims=" %%e in (`reg query "HKU\%~1\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" ^| findstr /i /c:"OneDrive"`) do reg delete "%%e" /f >NUL 2>nul
Expand Down
7 changes: 3 additions & 4 deletions src/Executables/ngen.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Get-ScheduledTask -TaskPath "\Microsoft\Windows\.NET Framework\" | Start-ScheduledTask

# Credits to https://stackoverflow.com/users/9898643/theo
$env:PATH = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
[AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object {
Expand All @@ -7,7 +9,4 @@ $env:PATH = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
Write-Host -ForegroundColor Yellow "`r`nRunning ngen on '$name'"
ngen.exe install $path /nologo
}
}


Get-ScheduledTask -TaskPath "\Microsoft\Windows\.NET Framework\" | Start-ScheduledTask
}

0 comments on commit 2ef0eb4

Please sign in to comment.