Windows – Temp folder is not writeable for some applications, resulting app crashes

crashnsispermissionswindowswindows 7

I dont know why, but suddenly many applications in my computer can't start. For example Chrome Portable shows this error on execution:

NSIS Error

Error writing temporary file. Make sure your temp folder is valid

Many other applications just show a Windows error reporting on execution.

Fortunately I had created a Norton Ghost image from the C drive four months ago (when I had absolutely no problem), but after a successful Windows restore, the problem is still the same! Google Chrome is still showing the error above and the other programs still can't be executed.

I searched whole internet for the reason. Most say it's a problem with the %Temp% folder permissions. I took ownership of the folder, set Temp folder owner to "Administrator or the current user", full access for "Admin" and "current user" and "Users" profile, but still it's the same! I have also done these to C:\windows\Temp folder.

I even cant execute "Process Monitor" to monitor the problem!

I even changed both %Temp% and C:\windows\Temp folders paths to c:\Temp but the problem is the same.

It seems many programs can't write files in Temp folder, but I see "Firefox Portable" can do that!

Specs: Win 7 32bit Ultimate SP1


I installed a new fresh windows 7 yesterday, but the problem is still there! i found something interesting: If i move Chrome Portable directory to upper roots of F drive, the program will start normally!! it seemes that windows has problems with specific paths, for example most of the applications on F:\programs\Install on my computer cant access Temp and result in error. i checked Permissions on F and Install folder, everything is just like other drives. some said use ICACLS F:\ /setintegritylevel H but it does not change anything. for now, the only way to get ride of this problem is to downgrade to Win XP so no Permissions and other damn security stuff won't work. please help me out of this headache.

Best Answer

If you run a program (that is you, as in your account, not the OS/System) then I expect it to write to your temp folder. By default that is %osdrive% (aka C:\) users\username\AppData\local\temp.

You can verify that with starting cmd.exe and typing echo %tmp%

This should be different from the OS temp files! Else a user could modify files in the OS temp files and compromise the system.

Related Question