Home » Windows » 9 Ways to Fix ‘Error Opening File for Writing’ on Windows

9 Ways to Fix ‘Error Opening File for Writing’ on Windows

by Abhishek Mishra
0 comment

To install a program on Windows, you just have to run the installer file and follow the on-screen instructions. But many users face the ‘Error Opening File for Writing’ message on Windows during the installation process. The main reasons for this issue include missing administrator privileges, incompatible installer files, and missing user permissions. Here are some ways to fix the file opening and writing issues on Windows.

1. Grant Administrator Permissions

Some apps need administrator privileges to run on Windows.

1. Press the Windows key + E to open the File Explorer.

2. Navigate to the folder location of the installer file.

3. Right-click on it and select the Run as administrator option.

Run installer with admin rights

4. The User Account Control window will pop up. Click on the Yes button.

user account control

5. Check if the installation proceeds without any hiccups now.

2. Disable UAC For Sometime

User Account Control dims the desktop and prevents the program from running until your grant permissions to the app. But this can also obstruct the installation of some programs. So, you must disable UAC and run the installer. Here’s how;

1. Press the Windows key, type UAC, and press Enter.

start menu

2. Drag the slider at the bottom to select the Never notify option. Click on the OK button.

Disable UAC For Sometime

3. The User Account Control window will pop up. Click on the Yes button.

user account control

4. Now, run the installer file again and check if the error pops up.

Make sure to re-enable UAC afterward.

3. Switch to the Built-in Admin Account

If you still see the ‘Error Opening File for Writing’ after granting admin privileges, you can enable and switch to the built-in administrator account and try to install the app. Follow the below-mentioned steps:

1. Press the Windows key, type cmd, and press Ctrl + Shift + Enter keys at once.

start menu

2. The User Account Control window will pop up. Click on the Yes button.

user account control

3. Type the following command and press Enter:

Net user administrator /active:yes

4. Close the Command Prompt window.

5. Open the Start menu and click on the User icon. Then, click on the Administrator account.

 Administrator account

6. Run the installer file and check if it installs correctly.

4. Install on Another Drive

By default, installer files pick the Programs folder in the C drive. If you cannot install it to this folder location, you can try installing the program on a different drive. Here’s how:

1. Open the File Explorer, navigate to the app installer location, and launch it.

2. Follow the on-screen hints to proceed. On the Select Installation Location page, click on the Browse button.

Install on Another Drive

3. Select another drive and click on the OK button. After that, continue with the installation.

Install on Another Drive

5. Disable Antivirus Program

Windows Defender and third-party anti-virus programs can also interfere with an app’s installation process resulting in the ‘Error Opening File for Writing’ pop-up. So, you must disable them and try to install the app. Make sure to use an app installer from a trusted source otherwise, you will leave your system wide open for attacks. Follow the below-mentioned steps:

1. Press the Windows key, type virus & threat protection, and press Enter.

start menu

2. Navigate to the Virus & threat protection settings section. Click on the Manage settings option.

Disable Antivirus Program

3. Go to the Real-time protection option. Click on the toggle to disable it.

Disable Antivirus Program

4. The User Account Control window will pop up. Click on the Yes button.

Windows Defender will be disabled for some time. It will automatically turn back on again.

6. Run the Program In Compatibility Mode

If the installer file is very old, you can try running it in compatibility mode. Here’s how:

1. Open File Explorer, right-click on the app installer file, and select the Properties option.

Open properties

2. Switch to the Compatibility tab. Click on the Run this program in compatibility mode for the check box.

Properties window

3. Click on the Apply button and then click on the OK button

Run installer with old version compatiblity

4. Run the app installer to check if it works properly. If you still face an issue, reopen the app installer file’s Properties window.

5. Click on the Run compatibility troubleshooter button.

Run the Program In Compatibility Mode

6. Click on the Try recommended settings option.

Run the Program In Compatibility Mode

7. Now, click on the Test the program button. Check if the installer file works properly now.

Run the Program In Compatibility Mode

8. Close the Program Compatibility Troubleshooter window.

7. Flush System Cache

An outdated or corrupt system cache can create problems while installing new apps and programs. You can use the Disk Cleanup tool to purge all the temporary files. Here’s how:

1. Press the Windows key, type cleanmgr, and press Enter.

start menu

2. Select all the checkboxes to remove everything. Click on the OK button.

Flush System Cache

3. Click on the Delete Files button.

Flush System Cache

8. Disable Controlled Folder Access

Windows 11 comes with Controlled Folder Access protection to protect other apps or programs from accessing or changing them. But you can face an installation error on Windows OS if the feature is active. Here’s how to disable it:

1. Press the Windows key, type Controlled Folder Access, and press Enter.

start menu

2. Click on the toggle to disable the feature.

Disable Controlled Folder Access

3. Close the Windows Security app.

9. Tweak User Permissions

It is possible that the user account is missing write privileges for the installer file. So, you must change its permissions and gain full control over it. Here’s how:

1. Open the app installer file Properties by right-clicking on it. Switch to the Security tab. Click on the Edit button.

Security tab in Properties window

2. Click on the Add button. Type Everyone in the text box and click on the OK button.

Tweak User Permissions

3. Now, click the Full Control check box.

Tweak User Permissions

4. Click on the Apply button and then click on the OK button.

Tweak User Permissions

5. Close the Properties window. Run the installer file and check if you are able to install the app without any “write” errors.

Seamlessly Install Apps On Windows

These were the nine methods to fix the ‘Error Opening File for Writing’ issue. Start with a system restart, grant admin privileges to the app, and switch to the admin account. After that run the program in compatibility mode, change Windows Security settings, and gain full control over the installer file to fix the issue. You can also try another installer file, even an old one to check if it works.

You may also like