NSIS Error – Error writing temporary file

Solution – copy the installer file into the temp folder and install!

If you are using Windows 7, it’ll probably be this folder by default:
Just copy and paste it into Start – Run.

Took sometime (and dedication) to figure this out, but nothing else worked. Tried changing TEMP and TMP variables and checked permissions etc. Wasn’t about to reinstall Windows. Had plenty of installers using the NSIS (Nullsoft) system install, just this one was giving me grief (WinPcap_4_1_1.exe).

Happy installing!

24 thoughts on “NSIS Error – Error writing temporary file

  1. Been noticing on my webstats for my blog that this article on the NSIS error is receiving quite a large number of hits. Just wondering if this temporary fix is working for those effected?

    • YES it works just fine, I use so many cleaners and removers, the temp redirection seems to get damaged with file shredders like adv. system care pro 8.1 uses, for instance, deletes rock star games social club without removing the game software attached to it, witch normally is mandatory to get rid of it, gives you this error when you try to reinstall it later. So thanks for the fix.

  2. Well… not really :-/

    I can’t execute any installer file on my C:
    I have to copy/paste them on my second hard drive (D:) to be able to execute them.

    My variables and permissions are as they should be.

  3. I figured it out! In WIN 7 I noticed there wasnt a temp file in my user settings so I just created a new folder called Temp and it worked !! Check your admin account . You will see all the folders Downloads, etc. Create a Temp file under your user name or under guest or admin, wherever you want. Copy the EXE file into that temp file, double click it and voila it works.

  4. FYI,
    I simply ran the installer “as administrator” and the install went fine. Might have something to do with the installer not properly elevating or attempting to perform an operation before it elevates… Anyway, hope this helps.


  5. Creating a Temp folder C:UsersMichaelTemp and putting the file in there worked great. This was driving me crazy. Thanks for posting!!!

  6. I actually love you now – been searching for a fix to this for a really long time and nothing else worked at all. This did 😀

  7. anyone got any solutions? nothing at all has worked, ive tried every solution. cant install or uninstall anything at all!!

  8. THANK YOU. I have been searching for an answer and none of the tips from anyone else (including Microsoft) worked. I had a correct TEMP folder, created a new one, changed the SET to reflect the new location, tried MS’s answer of creating a new user, etc, etc nothing worked. Your solution did. I validated with a second install and it too worked! I was preparing to reinstall Windows7 (Ultimate) in order to get around the problem but now I can hold off for a while.

  9. Hi,

    Coping installer to USB drive worked. Been looking for solution for a while. Failed attempts include %USERPROFILE%AppDataLocalTemp and running as Admin

  10. None of the solutions listed here worked for me. Mostly because I don’t have admin privileges on this PC.

    What did work was putting the install file inside a ZIP. Then double-click the ZIP file to open it using Windows (don’t actually extract it), and run the installation from inside the zip.

  11. WOW! WOW! WOW!
    Thanks so much for this advice. I’ve been struggling with this for MANY hours now, and this simple “trick” did it. Kudos!

Leave a Reply

Your email address will not be published. Required fields are marked *