Giter Club home page Giter Club logo

winclean's Introduction

WinClean logo

    WinClean

Windows optimization and debloating utility.

CodeFactor Download License


WinClean allows the average user as well as system administrators to turn Windows into a safe, reliable and performant operating system in a few clicks.

More information and tutorials on the wiki.

Screenshot of WinClean's main window

Yet Another PC Optimizer Scam

Features

  • Run 40 Batch, PowerShell, and Registry Editor scripts directly from the GUI.
  • Add custom scripts to further clean the system.

Specs

  • .NET 6
  • WPF
  • MVVM architecture

Contributing

Feel free to request new features and report bugs.

You can also submit scripts to add in the Issues section.

winclean's People

Contributors

5cover avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

winclean's Issues

2 errors and then stuck

dism.log
Hello there.

I got an error "could not enumerate service pack on machine"
(log file attached)

also got a cross on "clear file explorer history"

C:\Program Files\WinClean>del /F /Q /A C:\Users\DELL\AppData\Roaming\Microsoft\Windows\Recent*

C:\Program Files\WinClean>del /F /Q /A C:\Users\DELL\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations*

C:\Program Files\WinClean>del /F /Q /A C:\Users\DELL\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations*

C:\Program Files\WinClean>reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /VA /F
The operation completed successfully.

C:\Program Files\WinClean>reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths /VA /F

and then it got stuck at the 4th script out of 20 which was delete junk files

erreur rencontrée lors de la première utilisation de WinClean

System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
at Ookii.Dialogs.Wpf.NativeMethods.DeactivateActCtx(UInt32 dwFlags, IntPtr lpCookie)
at Ookii.Dialogs.Wpf.ComCtlv6ActivationContext.Dispose(Boolean disposing)
at Ookii.Dialogs.Wpf.ComCtlv6ActivationContext.Dispose()
at Ookii.Dialogs.Wpf.TaskDialog.ShowDialog(IntPtr owner)
at Ookii.Dialogs.Wpf.TaskDialog.Show()
at Scover.WinClean.Presentation.Dialogs.Dialog.Show() in C:\Users\Scover\source\repos\WinClean\Presentation\Dialogs\Dialog.cs:line 143
at Scover.WinClean.Presentation.ScriptExecution.ScriptExecutionWizard.ShowScriptExecutionProgressDialog() in C:\Users\Scover\source\repos\WinClean\Presentation\ScriptExecutionWizard.cs:line 278
at Scover.WinClean.Presentation.ScriptExecution.ScriptExecutionWizard.Execute() in C:\Users\Scover\source\repos\WinClean\Presentation\ScriptExecutionWizard.cs:line 97
at Scover.WinClean.Presentation.Windows.MainWindow.ButtonExecuteScriptsClick(Object sender, RoutedEventArgs e) in C:\Users\Scover\source\repos\WinClean\Presentation\Windows\MainWindow.xaml.cs:line 131
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Keep Specific "Useless App"

When removing useless apps, keep Xbox as it has become a large part of the windows system, it is needed for some games even on windows.

An unhandled exception ocurr

System.AggregateException: One or more errors occurred. (The type initializer for 'System.Management.Automation.ExperimentalFeature' threw an exception.)
---> System.TypeInitializationException: The type initializer for 'System.Management.Automation.ExperimentalFeature' threw an exception.
---> System.TypeInitializationException: The type initializer for 'System.Management.Automation.Configuration.PowerShellConfig' threw an exception.
---> System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
at System.IO.Path.Combine(String path1, String path2)
at System.Management.Automation.Configuration.PowerShellConfig..ctor()
at System.Management.Automation.Configuration.PowerShellConfig..cctor()
--- End of inner exception stack trace ---
at System.Management.Automation.ExperimentalFeature..cctor()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Scover.WinClean.BusinessLogic.Scripts.Hosts.PowerShell.ExecuteCode(String code, String scriptName, TimeSpan timeout, HungScriptCallback keepRunningElseKill, CancellationToken cancellationToken) in C:\Users\Scover\source\repos\WinClean\BusinessLogic\Scripts\Hosts\PowerShell.cs:line 22
at Scover.WinClean.BusinessLogic.ScriptExecutor.<>c__DisplayClass6_0.b__0() in C:\Users\Scover\source\repos\WinClean\BusinessLogic\ScriptExecutor.cs:line 38
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Scover.WinClean.BusinessLogic.ScriptExecutor.ExecuteScriptsAsync(IReadOnlyList`1 scripts, HungScriptCallback keepRunningElseKill) in C:\Users\Scover\source\repos\WinClean\BusinessLogic\ScriptExecutor.cs:line 31
at Scover.WinClean.Presentation.ScriptExecution.ScriptExecutionWizard.ExecuteScriptsAsync() in C:\Users\Scover\source\repos\WinClean\Presentation\ScriptExecutionWizard.cs:line 208
at Scover.WinClean.Presentation.ScriptExecution.ScriptExecutionWizard.<>c__DisplayClass10_0.<b__6>d.MoveNext() in C:\Users\Scover\source\repos\WinClean\Presentation\ScriptExecutionWizard.cs:line 275
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Winclean - Unhandled exception

Os: Windows11

System.Management.ManagementException: Initialization failure
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at System.Linq.Enumerable.CastIterator[TResult](IEnumerable source)+MoveNext()
at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at Scover.WinClean.Services.OperatingSystem.get_SystemRestoreEligibleDrives()+MoveNext()
at System.Linq.Enumerable.SelectEnumerableIterator2.ToList() at Scover.WinClean.ViewModel.Pages.Page1ViewModel..ctor() at Scover.WinClean.ViewModel.Windows.ScriptExecutionWizardViewModel..ctor(IList1 executionInfos)
at Scover.WinClean.ViewModel.Windows.MainViewModel.<.ctor>b__3_7()
at CommunityToolkit.Mvvm.Input.RelayCommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Incorrect Wiki Link in README.md

The README.md file contains a hyperlink with an incorrect URL for the wiki section.

The issue is specifically with the line:

More information and tutorials on the [wiki](https://github.com/5cover/WinClean/Wiki).

The correct link should be:
https://github.com/5cover/WinClean/wiki

The only difference is the lowercase "w" in "wiki." The current link with the uppercase "W" results in a broken link.

Steps to Reproduce:

Visit the README.md file at README.md.
Locate the line "More information and tutorials on the wiki."

Expected Behavior:

The hyperlink should lead to the correct wiki URL: "https://github.com/5cover/WinClean/wiki/."

Migrate App to .net8.0

Purpose
Upgrade App to .Net8.0

Manual alternative?
Steps for reproducing the action executed by this script manually. If not available, explain why.

Host
The script host you chose and why.

Additional context
Add any other context or screenshots about the script.

Script code

<?xml version="1.0" encoding="UTF-8"?>
<Script>
  <Name>EnglishName</Name>
  <Name xml:lang="fr">FrenchName</Name>
  <Description>EnglishDescription</Description>
  <Description xml:lang="fr">FrenchDescription</Description>
  <Category>Maintenance/Debloating/Customization</Category>
  <Recommended>Safe/Dangerous/Limited</Recommended>
  <Impact>Ergonomics/Free storage space/Memory usage/Network usage/Privacy/Performance/Shutdown time/Startup time/Storage speed/Visuals</Impact>
  <Versions>>=10.0.0</Versions> <!-- Supported Windows version range in SemVer 2.0.0 standard range syntax (optional). If unspecified, the script considered to support all Windows versions. -->
  <Code>
    <Execute Host="Cmd/PowerShell/Regedit">code</Execute> <!-- (optional) -->
    <Enable Host="Cmd/PowerShell/Regedit">code</Enable> <!-- (optional) -->
    <Disable Host="Cmd/PowerShell/Regedit">code</Disable> <!-- (optional) -->
    <Detect Host="Cmd/PowerShell/Regedit">code</Detect> <!-- (optional) -->
  </Code>
</Script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.