hellzerg / optimizer

The finest Windows Optimizer
GNU General Public License v3.0
14.55k stars 956 forks source link

Optimizer does not open #383

Closed mike3141 closed 1 year ago

mike3141 commented 1 year ago

Descrition of the bug: optimizer does not open, I tried with 15.7, 15.4 and 14.8

I would be very grateful if you could tell me how to solve this problem :)

Logs

**Translation of the log: Cannot load file or assembly System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' not one of its dependencies. The system cannot find the specified file.

Windows 11 Pro - 22H2 (64-bit) Optimizer 15.7 - .NET Framework 4.8 - Experimental build: False

[ERROR] [22/08/2023 13:59:40] in function [Program.Main-LoadSettings] No se puede cargar el archivo o ensamblado 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.

at Optimizer.Options.LoadSettings() at Optimizer.Program.LoadSettings()

[ERROR] [22/08/2023 17:48:53] in function [Program.Main-LoadSettings] No se puede cargar el archivo o ensamblado 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.

atOptimizer.Options.LoadSettings() atOptimizer.Program.LoadSettings()

Windows event log does not show any error message after trying to run the program.

thanks in advance, great program

hellzerg commented 1 year ago

Okay can you install .NET framework 4.8.1? If you don't already have it.

Also delete the entire C:\ProgramData\Optimizer folder and try to run it again.

@mike3141

hellzerg commented 1 year ago

@mike3141 Here's the framework: https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net481-web-installer

mike3141 commented 1 year ago

I'm pretty sure I had it installed, but I've reinstalled it just in case.

After doing it and deleting the route that you have indicated, I am having the same error

the first log entry is a run of optimizer with no arguments and the second is from the optimizer /restart=disabledefender command.

The error translation is the same as above: "Cannot load file or assembly System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' not one of its dependencies. The system cannot find the specified file."

thanks again for the support

Windows 11 Pro - 22H2 (64-bit) Optimizer 15.7 - .NET Framework 4.8 - Experimental build: False

[ERROR] [23/08/2023 17:49:33] in function [Program.Main-LoadSettings] No se puede cargar el archivo o ensamblado 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.

en Optimizer.Options.LoadSettings() en Optimizer.Program.LoadSettings()

[ERROR] [23/08/2023 17:57:49] in function [Program.Main-UnhandledException] No se puede cargar el archivo o ensamblado 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.

en Optimizer.Options.SaveSettings() en Optimizer.Utilities.Reboot() en Optimizer.Program.RestartInSafeMode() en Optimizer.Program.Main(String[] switches)

hellzerg commented 1 year ago

Okay, something strange seems to be missing on your windows installation... @mike3141

hellzerg commented 1 year ago

Did the problem get solved?

Galamooth commented 1 year ago

Tengo el mismo problema.... no se abre encontró alguna solución?

Galamooth commented 1 year ago

I just found the solution. Check that the downloads folder has the default location correctly. the program will create by default, in downloads folder the optimizer downloads folder in this location.

hellzerg commented 1 year ago

@Galamooth Okay, seems to be a bug. Will hotfix it in next version.

Galamooth commented 1 year ago

I have the system in Spanish language so the downloads folder should be "Descargas" in spanish Optimizer always changes it to "downloads" which causes the route to break. Can you fix that too? Thank you

hellzerg commented 1 year ago

@Galamooth

The User Profile Download folder path should be the same, following your translated Windows. Are you sure the problem is this?

Galamooth commented 1 year ago

When I use optimizer. The program creates a folder in "Downloads" Since my system is in Spanish. The correct name is "Descargas" So the program creates a folder called downloads in addition to my original downloads folder. Sometimes it replaces the original folder by removing system properties as defaults I must Manually adjust folder every time I use optimizer and reset folder Descargas As the default folder this somehow caused the problem mentioned optimize just wouldn't open

Galamooth commented 1 year ago

Excuse my bad English, I'm using a translator.

hellzerg commented 1 year ago

@Galamooth Can you copy the full path of the wrong Downloads folder?

Galamooth commented 1 year ago

C:\Users\Galamooth\Downloads
I simply opened optimizer and created this folder. additional to my original downloads folder Captura de pantalla 2023-10-09 094029

hellzerg commented 1 year ago

@Galamooth Okay, can you tell me the value of AppsFolder in C:\ProgramData\Optimizer\optimizer.json?

Galamooth commented 1 year ago

Also note that optimize will only replace my downloads folder if it is empty. Optimizer.txt

Galamooth commented 1 year ago

I just changed the name. TO "Descargas" Optimizer no longer creates another folder. But this was the main cause of optimizer not starting.

hellzerg commented 1 year ago

That's strange. because even if the folder path set in AppsFolder value not exists, it creates it. It does not crash.

Galamooth commented 1 year ago

Well, I'm not the only one this happened to. You should identify the name of the downloads folder by different languages ​​just to avoid these problems.

hellzerg commented 1 year ago

Can you go to Registry -> HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders and tell me if the value of {374DE290-123F-4565-9164-39C4925E467B} key is correct?

@Galamooth

Galamooth commented 1 year ago

@hellzerg Captura de pantalla 2023-10-09 110813

hellzerg commented 1 year ago

Okay, I will retrieve the folder with translation from there.

Galamooth commented 1 year ago

Apart of this. Will you implement more improvements or adjustments? Some option to import and export energy plans would be interesting.

hellzerg commented 1 year ago

I hope the problem got fixed in v15.9! Energy plans export/import are not in the plans for now!