WinMemoryCleaner icon indicating copy to clipboard operation
WinMemoryCleaner copied to clipboard

Temp .new file popup every times Windows login after startup or restart.

Open hoanguyenn2015 opened this issue 1 year ago • 9 comments

Current Behavior

This week I've experienced an issue. Windows always try to open the file C:\Users\username\AppData\Local\Temp\WinMemoryCleaner.exe.3.0.7.0.new whenever I login to Windows, the popup shows and disappears after several seconds (happened in 3 different computers of mine | 2 laptops and 1 pc)

Expected Behavior

The pophow should have never been shown.

Steps to Reproduce

  1. Start or Restart Windows
  2. Login
  3. See the popup

App Version

3.0.7.0

Windows Version

Windows 10

Additional Context

Image

This is my recent updates

Image

Checklist

  • [x] I have searched the existing issues to make sure this bug has not been reported yet.
  • [x] I have tested with the latest version of the application.

hoanguyenn2015 avatar Nov 22 '25 10:11 hoanguyenn2015

There was an issue with previous versions. You can, for now, look into what I explained regarding actions to take. https://github.com/IgorMundstein/WinMemoryCleaner/issues?q=is%3Aissue%20state%3Aclosed

Meanwhile, I will work on a single and small executable to reset the app more easily and solve behaviors like this.

IgorMundstein avatar Nov 22 '25 21:11 IgorMundstein

There was an issue with previous versions. You can, for now, look into what I explained regarding actions to take. https://github.com/IgorMundstein/WinMemoryCleaner/issues?q=is%3Aissue%20state%3Aclosed

Meanwhile, I will work on a single and small executable to reset the app more easily and solve behaviors like this.

Following your 3 steps doen't change this behavior, still. You say it's necessary (If I understood correctly), but never seen this in previous (3.05 earlier) versions, why not necessary before?

vacarogit avatar Dec 03 '25 02:12 vacarogit

Please, check release 3.0.8

Also, this version should fix any issues you've been facing. If it doesn't, take also a look at this new README section: https://github.com/IgorMundstein/WinMemoryCleaner?tab=readme-ov-file#-reset-to-factory-defaults

IgorMundstein avatar Dec 13 '25 23:12 IgorMundstein

This keeps happening to me, using 3.0.8 and despite doing Reset several times, both in GUI and in command line.

Keeps opening a "Open this .new file with..." window request at each system startup.

Milincho avatar Jan 05 '26 01:01 Milincho

I realized this happens when the program was located at c:\Program Files\WinMemoryCleaner, but the issue stops happening when moving it to C:\

My user is an Administrator, why is it a problem to have the program at c:\Program Files\WinMemoryCleaner\ ?

Milincho avatar Jan 05 '26 01:01 Milincho

Hi @Milincho,

You are absolutely correct regarding the location—C:\Program Files is the trigger for this behavior.

Even as an Administrator, the self-update process can sometimes fail in protected directories due to file-locking mechanisms (a "race condition"). The system occasionally holds the file handle slightly longer than the updater expects, causing the replacement to fail.

Why you see the .new popup: It appears that during a previous failed update, the temporary update process (running from %TEMP%) accidentally registered itself as the Startup task. Because that temporary file has a .new extension instead of .exe, Windows doesn't know how to run it at login and asks you to "Open with...".

How to fix it:

  1. Remove the "Zombie" Task:

    • Press Win + R, type taskschd.msc, and press Enter.
    • Click on Task Scheduler Library in the left pane.
    • Find the task named Windows Memory Cleaner.
    • Check the Actions tab. If the path points to a file in AppData\Local\Temp, right-click the task and Delete it.
  2. Clean Temporary Files:

    • Press Win + R, type %TEMP%, and press Enter.
    • Delete any files named WinMemoryCleaner...new.
  3. Move the Application:

    • Move your WinMemoryCleaner.exe file out of C:\Program Files and into a writable folder (e.g., C:\Tools\WinMemoryCleaner or your Documents folder).
    • Running the portable version from a non-protected folder avoids these locking issues entirely.
  4. Reset Startup:

    • Open WinMemoryCleaner from its new location.
    • Toggle Run on Startup OFF and then ON again.
    • This will create a fresh, correct task pointing to the valid .exe file.

I am adding a delay to the updater in the next release to handle this file locking better, which should allow the app to update reliably even inside Program Files.

IgorMundstein avatar Jan 05 '26 03:01 IgorMundstein

Ok. But even after doing that, launching WinMemoryCleaner.exe from c:\WinMemoryCleaner\ still creates a WinMemoryCleaner.exe.3.0.8.0.new file at the %TEMP% folder... is that supposed to happen anyways?

Milincho avatar Jan 05 '26 03:01 Milincho

@Milincho,

That behavior is technically impossible if the running application is already on version 3.0.8. There is no .new code anymore in this version.

An older version (e.g., 3.0.7) is probably still running in the background (stuck or minimized to the tray) on your system.

  1. When you launch your new 3.0.8 app, the old background process wakes up (or is already running).
  2. The old process checks for updates, sees version 3.0.8 is available online, and downloads it to %TEMP%.
  3. This explains why you see the .new file (which uses the old naming convention) even though you are launching the new app.

  1. Open Task Manager (Ctrl+Shift+Esc).
  2. Go to the Details tab.
  3. Sort by Name and look for WinMemoryCleaner.exe.
  4. Check where the file is "open file location."
  5. End Task on all instances you find.
  6. Delete the .new file from %TEMP% one last time.
  7. Launch your fresh 3.0.8 executable. The issue should be gone.

You can also use Windows Search to find WinMemoryCleaner in any other folders.

Make sure you have the latest exe: https://github.com/IgorMundstein/WinMemoryCleaner/releases/latest/download/WinMemoryCleaner.exe

IgorMundstein avatar Jan 05 '26 03:01 IgorMundstein

This was still happening to me. i was using 3.0.2 and I turned on auto update and restarted WMC, although it showed 3.0.8 but the .new issue was still happening.I place it on Desktop normally. I have deleted the temp file and I download something with the same name from prefetch folder. Will update if it still happens.

ParthProLegend avatar May 05 '26 19:05 ParthProLegend