Temp .new file popup every times Windows login after startup or restart.
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
- Start or Restart Windows
- Login
- See the popup
App Version
3.0.7.0
Windows Version
Windows 10
Additional Context
This is my recent updates
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.
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.
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?
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
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.
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\ ?
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:
-
Remove the "Zombie" Task:
- Press
Win + R, typetaskschd.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.
- Press
-
Clean Temporary Files:
- Press
Win + R, type%TEMP%, and press Enter. - Delete any files named
WinMemoryCleaner...new.
- Press
-
Move the Application:
- Move your
WinMemoryCleaner.exefile out ofC:\Program Filesand into a writable folder (e.g.,C:\Tools\WinMemoryCleaneror yourDocumentsfolder). - Running the portable version from a non-protected folder avoids these locking issues entirely.
- Move your
-
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
.exefile.
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.
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,
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.
- When you launch your new 3.0.8 app, the old background process wakes up (or is already running).
- The old process checks for updates, sees version 3.0.8 is available online, and downloads it to
%TEMP%. - This explains why you see the
.newfile (which uses the old naming convention) even though you are launching the new app.
- Open Task Manager (
Ctrl+Shift+Esc). - Go to the Details tab.
- Sort by Name and look for
WinMemoryCleaner.exe. - Check where the file is "open file location."
- End Task on all instances you find.
- Delete the
.newfile from%TEMP%one last time. - 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
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.