Fix: Error Opening File For Writing
When installing a third-party application on a Windows computer, there are a lot of things that can go wrong. One of the most common problems faced by Windows users while trying to install third-party programs is an issue where the installation fails because Windows, for some reason, fails to open a file it needs to write in order to install the program in question. When this issue occurs, the user is informed that the installation was unsuccessful and Windows spits out the following error message:
This specific problem is not bound to any specific version of the Windows Operating System – every single version of the Windows Operating System that is currently supported by Microsoft is prone to this problem. In addition, this issue is also not bound to any specific program or set of programs designed for Windows – it can basically affect any third-party Windows application and prevent it from being successfully installed. Not being able to install an application you want or need on your computer is most definitely a significant problem, but, thankfully, it is not an unfixable one. The following are some of the most effective solutions that any Windows user affected by this problem can use to try and resolve it and successfully install the affected application:
Solution 1: Run the installer for the program with administrative privileges
If you’re having trouble installing any third-party application designed for the Windows Operating System, the most commonly recommended course of action is to perform the installation as an administrator and see if doing so gets the job done. To run the installer for the third-party Windows application you are trying to install as an administrator, you need to:
- Navigate to where the .EXE file for the installer of the program is stored.
- Locate the installer and right-click on it.
- Click on Run as administrator in the resulting context menu.

- Go through the installation wizard by following the onscreen instructions and see if the “Error opening file for writing” error message rears its ugly head while the installation is being performed with administrative privileges.
Solution 2: Run the compatibility troubleshooter
If you are trying to install a third-party program that is not entirely compatible with the version and iteration of the Windows Operating System that your computer is running on, the installation might fail and you might end up being seeing the “Error opening file for writing” error message. Thankfully, though, Windows has the compatibility troubleshooter to check for and try to repair compatibility problems with files. To run the compatibility troubleshooter, you need to:
- Navigate to where the .EXE file for the installer of the affected program is stored.
- Locate the installer and right-click on it.
- Click on Properties in the resulting context menu.

- Navigate to the Compatibility tab.
- Click on Run compatibility troubleshooter.

- Click on Try recommended settings.

- Follow the onscreen instructions and bear with the compatibility troubleshooter all the way to the very end.
- Once the compatibility troubleshooter is done working its magic, try installing the affected application to see whether the problem has been resolved.
Solution 3: Change the security permissions for the installation location
You might be seeing the “Error opening file for writing” error message while trying to install a specific application because the security permissions for the installation location you have chosen for it do not allow files located in it to be written by your user account. If that is the case, you should be able to resolve the problem by fixing the security permissions for the directory you are trying to install the affected application to. To apply this solution, you need to:
- Navigate to the installation location for the affected third-party program.
- Right-click on the folder you are trying to install the affected third-party program to, and click on Properties.
- Navigate to the Security tab.
- Click on Edit….

- Click on Users under the Group or user names section to select it.
- Check the checkbox for Allow next to Write under Permissions for users.

- Click on Apply and then on OK.
- Restart your computer.
When the computer boots up, try running the installer and see if the “Error opening file for writing” error message still persists.
Solution 4: Change advanced security permissions for the installation location
If simply changing the regular security permissions for the installation location isn’t enough to get the job done, you take another step forward and change the advanced security permissions for the installation location. To change the advanced security permissions for the installation location, you need to:
- Navigate to the installation location for the affected third-party program.
- Right-click on the folder you are trying to install the affected third-party program to, and click on Properties.
- Navigate to the Security tab.
- Click on Advanced.

- Click on Change permissions and then click on Add.
- Click on Select a principal.

- In the Enter an object name to select: field, type Everyone, click on Check Names and then click on OK.

- Under Basic permissions:, check the checkbox beside Full control and click on OK.

- In the list located directly under the Permission entries: section, click on the Everyone listing to select it and enable the Replace all child object permission entries with inheritable permission entries from this object option.

- Click on Apply and then on OK.
- Restart your computer.
Wait for the computer to boot up and then try installing the third-party application your were previously having trouble installing to see if the problem has been resolved.
Solution 5: Disable User Account Control
The User Account Control feature, although a security feature built in to the Windows Operating System to protect users, can sometimes cause more harm than it does good, and causing the installations of certain third-party programs to fail with the “Error opening file for writing” error message is an example of such an instance. Thankfully, though, User Access Control can be disabled. To disable User Account Control, you need to:
- Open the Start Menu.
- Search for “user accounts“.
- Click on the search result titled User Accounts.

- Click on Change User Account Control settings.

- Move the slider all the way down to Never notify.

- Click on OK and, if required to do so, confirm the action.
- Restart your computer.
- When the computer boots up, try installing the affected application to see if the installation now goes through successfully.
Solution 6: Create a new user account and try installation the affected application on it
If absolutely none of the solutions listed and described above have managed to work for you, the problem might just lie with your user account itself. And if that’s the case, you should be able to successfully install the affected third-party program on a different, brand new user account on your computer. To create a new administrator account on your computer, you need to:
- Open the Start Menu.
- Click on Settings.
- Click on Accounts.
- Click on Family & other users in the left pane.
- In the right pane of the window, under the Other users section, click on Add someone else to this PC.

- Click on I don’t have this person’s sign-in information.
- Click on Add a user without a Microsoft account.
- Type in a user name and a password for the new user account and click on Next.
- The new user account you created should now show up under Other users. Click on it to select it and click on Change account type.

- Open the dropdown menu and click on Administrator to select it, and then click on OK.

- Switch to your newly created user account and try installation the affected third-party application on it.
If the program is successfully installed on the new user account, your old user account itself was the problem. That being the case, you should simply move all of your data and files from your old user account to the new one and delete the old user account.
Что сделать, чтоб Windows 10 не писал: «error opening file for writing»?
Инсталлятор не разрешает установить программу. Выбрала установку и из-под учетной записи, все равно пишет: 
Я как-то в целях безопасности изменила настройки Виндовса так, что система стала ограничивать запись/изменение файлов на системном диске. Я могу только папку в нем создать, а в папке, например, текстовый документ. Этот текстовый документ изменять/сохранять могу, а если на рабочем столе создать тот же текстовый документ, то пишет:
В системных папках только папки можно создавать, больше ничего не предлагает.
Если, например, с пеинта хочу сохранить изображение на системный диск, то в таком случает выдает:
Как помочь программам устанавливаться и снять лишние запреты?
10 Fixes For Error Opening File For Writing On Windows 11/10

Errors that appear during installation are surely the worst kind. The error opening file for writing has been reported by many users for a long time, and it appears while trying to install certain applications.
This error mainly appears for writing MSI Afterburner, Steam, vcredist_x86.exe, VLC, and some other commonly used applications.
Here we have discussed how to solve this error, so keep reading!
Why You Cannot Open File For Writing?
As per reports, this error is most common when setup files lack the required permissions as the setup file can’t open the file to write.
But, there can be other causes for this error, such as:
- If the installation file is not compatible with your system, then it can cause such an error.
- The antivirus is known to stop files from writing that it considers a threat to the computer, including installation files. Thus, the antivirus can be responsible for the error while opening the file.
- The installation file itself can be corrupted causing this error.
- If the installation process of the file is already running in the background and you try to start the installation again, then this error can get triggered.
- Problems in registry or excess of junk files in the computer can also cause this error.
How To Fix Error Opening File For Writing
This error can be fixed with the following solutions. So, perform all of them and see which one solves it for you.
Solution 1: Close All Background Installation Processes
If one installation is already in process in the background and you are trying to start another installation, then this error can get triggered.
To ensure there are no installation processes in the background, follow the steps given below:
- Press Ctrl + Shift + Esc keys on your keyboard to open the Task Manager.
- Select the Processes tab, and check if any installation process is running.
If yes, then right-click on it and click on the End task option.

Try installing the file again. This solution should fix the problem if it was caused by another installation in the background.
Solution 2: Delete Junk files
If your computer has excess junk files, then it can cause this type of installation errors.
Fortunately, there are some in-built junk file cleaners in your Windows like the Storage sense and the Disk cleanup tool, which can be used to delete the junk files present in your computer.
After the junk files are removed, try to install the application again and check if the error persists.
Solution 3: Run The Compatibility Troubleshooter
If the installer file is incompatible with your Windows, then the installer can’t open the file to write and thus trigger this error.
Fortunately, there is an in-built compatibility troubleshooter in Windows that you can use to check the file’s compatibility.
To run the compatibility troubleshooter, follow the steps given below:
- Locate the installer file of the application that is causing this error for you and right-click on it.
- Click on the Properties option from the pop-up menu.

- Select the Compatibility tab and then click on the Run compatibility troubleshooter option.
- Select the Try recommended settings option and follow the instructions given by the wizard to run the compatibility troubleshooter.

Try to install the file again and check if the installer is facing the same error.
Solution 4: Run The Installer With Administrative Rights
This error mostly happens if the installer doesn’t have the required permissions to install the file. Running the installer as an administrator can fix the problem.
Here is how you can do it:
- First, locate the installer in your computer and right-click on it.
- Select the Run as administrator option.
- The application will now install while having administrator rights.

If the error doesn’t arise again, then you will have to open this program each time in administrator mode to work around this problem or you can give this application permanent administrative rights.
To set the application to run as administrator whenever you open it, follow the steps given below:
- Locate the application on your computer and right-click on it.
- Click on the Properties options from the pop-up menu.

- Select the Compatibility tab and then select the Run this program as an administrator box.
- Finally, click on Apply and then OK to save the changes.

Solution 5: Change Security Permissions
If running the installer as an administrator didn’t work, the check if you are signed in as a regular user account.
Regular users are not allowed to install applications if denied by the administrator. So, they can face this error when they try to install the application.
You can try changing the security permissions to allow the installer to function. To change the security permissions, follow the steps given below:
- Right-click on the application and select Properties.
- Next, select the Security tab and then click on the Edit option.

- Click on your account username in the Group or user names section.
- In the Permissions for Users section, locate the Write option and then check the box in the Allow section.

- Finally, click on Apply and OK to save the changes.
By changing the security permissions, you should now be able to install the program without triggering the error during the installation.
Solution 6: Change Advanced Security Permissions
If changing the security permissions didn’t fix this error, then try changing the Advanced security permissions.
To change the Advanced security permissions, follow the steps given below:
- Follow Solution 5 and open the Security tab.
- Next, click on the Advanced option.

- Click on the Add option and click on the Select a principal option.

- Type Everyone in the Enter the object name to select (examples) section and then click on the Check Names option. Click OK to save the changes.

- In the Basic permissions section, check the Full control box and click on OK to save the changes.

- Now, from the Permission entries list, locate the Everyone element and select it.
Now, you should be able to install the application without triggering the error opening file for writing during the installation.
Solution 7: Create New User As Administrator
If you don’t want to change the security permissions, then try creating a new user account as an administrator and then install this application there.
To create a new user account as an administrator, follow the steps given below:
- Right-click on the Windows start button and then click on the Settings option from the pop-up menu.

- Locate the Accounts option and open it.
- Now, select the Family & other users option (only Family for Windows 11).

- Then scroll down and click on the Add someone else to this PC (or only Add Someone for Window 11) option.

- Click on the I don’t have this person’s sign-in information option.
- Next, click on the Add a user without a Microsoft account option. You will have to use another Microsoft account in Windows 11.

- Now, enter the name and the password of the user account and then click on Next.
This should create your new user account and you will be able to see it in the Other users section. - Select the user account you just created and click on the Change account type option.
- Now, click on the Account type menu and select the Administrator option from the drop-down list.
Click Ok to save the changes. - Now, sign out of your current account and log in to your new user account.
Once you have switched to the new user, try installing the program and check if the setup still cannot open file for writing.
Solution 8: Disable Your Antivirus
Antiviruses are known instigators when it comes to stopping other files from opening or stopping installers.
Though the antivirus will only target those that it considers threatening to your PC, but sometimes what they consider and what the reality is can differ.
If your Antivirus is stopping the installation of the program, then disabling the antivirus should fix the problem.
To disable Windows Defender, follow the steps given below:
- Type Windows Security in the Windows search bar and select the top option.

- Select the Virus and Threat protection option and then click on the Manage settings option under the Virus and threat protection settings.

- Disable the Real-time Protection toggle to disable Windows Defender.

Once the antivirus is disabled, try installing the program and check if the problem arises again.
If the problem still arises, then follow the above steps again to turn on Real-time protection, as the error is most likely not caused by the antivirus.
Solution 9: Disable The User Account Control Feature
Whenever there is a system related change that requires administrator privileges, the User Account Control notifies you about the change.
This feature was included as a way to protect the user, but it is also reported by many users as the cause of this error.
Disabling User Account Control can fix this error. Here is how you can disable it:
- Type Change User Account Control settings in the Windows search bar and select the top option.

- You will notice a slider on the left side of your screen. Drag that slider down until it says Never notify.
- Finally, click on OK to save the changes.

Solution 10: Delete The Installer And Download It Again
If none of the above solutions worked for you, then the installer file itself may be corrupt. In this scenario, locate the installer file and delete it completely from your computer.
Now, download the installer of the program again from the official website and then try to install the program.
Wrapping Up
So, now you know what to do if you face the error opening file for writing during the installation of any program.
The above solutions should help you fix this issue so read and execute them carefully. And as always, feel free to share your thoughts on this article in the comment section below.
Filed Under: Windows Tagged With: Windows Fixes
About Sanmay Chakrabarti
Sanmay is a Windows Insider and editor at Digicruncher. He is a Tech enthusiast and has been writing tech blogs for over 2 years now. He loves reading books, traveling to new places and listening to music in his free time.
How to Fix “Error Opening File for Writing” Windows 10/8/7 [Partition Magic]
When installing third-party software on a Windows PC, you may encounter the “error opening file for writing” error message and you will fail to install the program. What causes the error opening file for writing? How to fix? This post from MiniTool will show you effective solutions.
The error opening file for writing is not an error for a specific program. It could occur when you install programs like Steam, VLC, Wireshark, CCleaner, BSPlayer, etc. on a Windows operating system. It can basically affect any third-party Windows application and prevent it from installing.
In this case, you won’t be able to run certain applications on your PC, which cause great inconvenience. Well, how to fix error opening file for writing Windows 10/8/7? This article will show you some effective methods with detailed steps.
Fix 1. Run Compatibility Troubleshooter
The error opening file for writing error could be caused by compatibility issues. When you try to install a third-party program which is not compatible with the version of your Windows operating system, you may encounter installation failure along with the error opening file for writing error message.
In this case, you can run Windows compatibility troubleshooter to check and repair compatibility issues. If you don’t know how to run the compatibility troubleshooter, check out the following steps.
Step 1. Find the .exe file for the installer of the affected program.
Step 2. Locate the installer and right-click on it.
Step 3. Click on Properties from the context menu.
Step 4. Navigate to the Compatibility tab.
Step 5. Find and click on Run compatibility troubleshooter.

Step 5. Click on Try recommended settings.

Then just follow the onscreen instructions to fix compatibility issues with the compatibility troubleshooter. Once the compatibility troubleshooter is done its job, try installing the application again and check whether the error opening file for writing problem get fixed.
Fix 2. Run the Installer with Administrative Privileges
You can run the installer for the third-party application with administrative privileges. This may help you resolve the error opening file for writing.
Step 1. Find the .exe file for the installer of the program.
Step 2. Right-click on the installer and choose Run as administrator from the context menu.
Step 3. Follow the on-screen instructions to complete the installation and check if the error message «error opening file for writing» gets fixed.
Fix 3. Change Security Permissions
Step 1. Find the installation folder for the third-party program with error opening file for writing.
Step 2. Right click on the folder and click on Properties.
Step 3. Switch to the Security tab.
Step 4. Click on Edit….
Step 5. Under the Group or user names section, click on Users.
Step 6.Check the box for Allow next to Write under Permissions for users.
Step 7. Click on Apply and then on OK.

Step 8. Restart your computer and try again.
After restarting your PC, if you still encounter the error opening files for writing message, you may try the next method.
Fix 4. Disable User Account Control
The User Account Control feature can cause third-party installation errors such as error opening file for writing. In you encounter this error, you can try disabling the User Account Control.
Step 1. Type Change User Account Control settings in the Windows 10 Cortana search box and click the best match to open it.
Step 2. Move the slider to Never notify.
Step 3. Click on OK to confirm the action.

Step 4. Restart your computer. Then try installing the problematic application again.
![]()
This post will show you how to change the user name Windows 10 so your PC displays the correct user name in the Sign-in screen on your PC.
Conclusion
Have you fixed the “error opening file for writing” installation error? Which method works for you? If you have better solutions, please don’t hesitate to share it with us. We are glad to have you share with us.