Windows stores temporary files to store data to free some of the resources in order to complete other tasks, or to use them in case there’s a data loss while programs are running. They're usually beneficial, unless you encounter the “error writing temporary file. Make sure your temp folder is valid” message when you want to install a new app.

Fortunately, there are several methods you can use to fix the issue and install new apps any time you want.

1. Remove the Temporary Files on Windows

There’s a chance you might’ve forgotten about your system's temporary files, as Windows does a pretty good job at managing them. But if your computer’s temporary files are taking too much space, or they somehow got corrupted, you’ll experience several issues, including the “make sure your temp folder is valid” error.

To fix it, check out how to delete Windows' temporary files.

2. Disable Read-Only Access

Windows usually creates temporary files for programs, including the one that you're trying to install. If the temp folder is set to read-only, Windows can't save files in it and will throw an error.

In this case, you should disable the Read-Only option for the Temp folder. Here’s how you can do it:

  1. Launch File Explorer.
  2. Navigate to C:\Users\UserName\AppData\Local.
  3. Right-click the Temp folder and select Properties.
  4. Open the Security tab.
  5. Select your username and click the Edit button.
  6. Check the Allow option next to Full control.
    Temp folder properties
  7. Click Apply > OK.
  8. Restart your computer and check if the problem is now solved.

3. Compress the EXE File You're Trying to Run

If the problem is limited to a certain app, some users have had success by compressing the EXE installer. It's an odd fix, but it's quick and easy to do, so it's worth a shot.

Right-click the EXE file and select Send to > Compressed (Zipped). Windows will create a zipped folder with the same name. Open the folder and launch the installer.

4. Run the Windows Memory Diagnostic Tool

The inability to install new software on your Windows 11 computer, might be caused by memory-related issues. If you try to install an app and Windows keeps freezing, you should run the Windows Memory Diagnostic tool to fix the issue.

5. Clean Boot Your System

Sometimes, third-party apps can hinder Windows functionality and affect its ability to install new software. Now, if there are too many apps for you to remember which one is allowed to change your system settings, you should perform a clean boot on Windows 11.

This way, your system boots up with a minimal number of drivers and startup apps, so you can figure out if a background app is causing you issues. If everything works as usual, check the list of installed apps and remove the ones that may be causing conflict.

6. Re-Download the App and Install It

Windows might display the "make sure your temp folder is valid" error if the installer contains malware. In this case, re-download the app from the developer's official website and stay away from pirated software, as it may contain hidden malware.

If you think your PC is infected, be sure to perform an offline scan with Microsoft Defender to ensure nothing is lurking in your PC.

7. Reset Your Computer

If nothing worked until now, and you can’t install anything on your computer, you should reset your computer. Fortunately, Windows allows you to use the Cloud download option, so you can keep your files while it removes all third-party apps on your computer.

Reset Windows 11

Fix Windows 11's Temp Files With These Tips

You might not know there’s something wrong with your computer’s temp files until you want to install new software. In this case, the solutions above will help you to quickly fix the issue.

Now that you can install new software, you can try new apps to boost your productivity on Windows.