If you got encounter an error message saying, “Error opening file for writing” while running a setup file to install some program on your computer, read on as this post will give you some suggestions on how you can fix it. You can encounter this error when running a setup file for installing a program like GlassWire, Notepad++, VLC, Steam, OBS, Mod Organizer, WinpCap, NSIS, FileZilla, BSPlayer, Kodi, Wireshark, rtcore64, qt5core.dll, MSI Afterburner, GWCtlSrv.exe, npf.sys, vcredist_86 and many more. And so when this error pops up while you run a setup file, refer to the steps given below which might help resolve the problem.
First, you have to make sure that there is no other installation in progress as multiple installations can most likely cause this error to show up. You can restart your computer and try to run the setup file again.
If you still got the error even after your restart your computer, click on Retry to try again and if it does nothing, click Abort to terminate the installation. After that, go to the folder where you’ve placed the setup file and then delete it.
Make sure that you have enough disk space on your computer. You can use the Windows 10 Storage Sense feature which can clean all the temporary files from your computer and help you save storage space. To use Storage Sense, follow the steps below.
- Open Setting > System > Storage from the WinX Menu.
- From there, you will see a list of all the local and connected storage devices along with the details on the free space.
- Now make sure that the Storage Sense feature is turned On then go find a link that says “Free Up Space” and click it to open.
- After that, a screen which is the built-in program in Windows 10 will appear and will scan your computer for the following junk files so you can free up disk space:
- Windows Upgrade Log Files
- The system created Windows Error Reporting Files
- Temporary Internet Files
- Previous Windows Installation Files
- Delivery Optimisation Files
- DirectX Shader Cache
Once you’re done freeing up space on your drive, try to run the setup file again.
If freeing up space didn’t help, you can just delete the setup file and download another one from the official homepage of the program. From there download the setup file and place it in a different location. After that, run the setup file once again.
Make sure that you have downloaded the correct setup file according to your operating system, i.e. x64 or x86.
Restart your computer once more and make sure that you sign in as administrator. After that, right-click on the setup file and click “Run as administrator”.
If it still didn’t help, you might want to take ownership of the folder where you saved the setup file. How? Follow the steps below but before you do that, you have to create a System Restore Point first, once that’s done, proceed.
- First, locate the concerned folder and right-click on it then select Properties.
- Next, click on the Edit button in the Properties window and click OK to confirm if you got a User Account Control elevation request.
- After that, select user/group from the permission windows or click on the Add button to add another user or group. It would be best if you add “Everyone” to give permission.
- Then check “Full Control” under the “Allow” column to assign full access rights control permissions.
- Now edit the permission to Full Control for “Everyone”.
- Click OK to save the changes made and then exit.