From b847323d1125d0389eb5ce7d9389bb16ce42b47a Mon Sep 17 00:00:00 2001 From: Belim Date: Mon, 28 Oct 2024 16:55:00 +0100 Subject: [PATCH] Add files via upload --- plugins/Windows Old Remover.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 plugins/Windows Old Remover.json diff --git a/plugins/Windows Old Remover.json b/plugins/Windows Old Remover.json new file mode 100644 index 0000000..3a2586d --- /dev/null +++ b/plugins/Windows Old Remover.json @@ -0,0 +1,12 @@ +{ + "PlugID": "Windows Old Remover", + "PlugInfo": "The Windows Old Remover plugin allows users to easily remove the 'Windows.old' folder, which contains files from a previous Windows installation. After upgrading to a new version of Windows, the 'Windows.old' folder may occupy significant disk space. This plugin utilizes the DISM command to safely delete this folder, freeing up valuable storage on your system. Please note that once this folder is deleted, you will no longer be able to revert to the previous Windows version through the Recovery options.\n\n**Error Handling**: If you encounter 'Error 1168' during the removal process, it means the 'Windows.old' folder has already been deleted or is not available for rollback. Ensure you have backups before proceeding!", + "PlugCheck": [], + "PlugCategory": "System (Plugins)", + "PlugDo": [ + "cmd.exe /c DISM /Online /Remove-OSUninstall" + ], + "PlugUndo": [ + "powershell -Command \"Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('No undo is available for this deletion. To restore files, use a backup solution.', 'Info', [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Warning)\"" + ] +}