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!

This entry was posted in IT and tagged , , . Bookmark the permalink.

21 Responses to NSIS Error – Error writing temporary file

  1. philip says:

    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?

  2. Great says:

    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. philip says:

    That’s quite unusual! But thanks for sharing your solution!

  4. J says:

    Yea this didn’t work. I’ve tried this solution and getting rid of read only and sys attribute through cmd.

  5. maury says:

    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.

  6. philip says:

    Good stuff! Hopefully your post helps someone maury!

  7. elr0y7 says:

    Haha, genius! Worked like a charm for my error! Thanks!

  8. Eric L says:

    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.


  9. Mike says:

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

  10. gil says:

    Thank you.
    This was the only way I could install a program.

  11. Jay says:

    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 :D

  12. Otsenre says:

    Thank you so much! =’)

  13. AMizzi says:

    Worked for me. Am still interested to find out why this happens, though….

  14. Sho says:

    Finally it worked!!!
    Thank you for your information.

  15. John perion says:

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

  16. Jasmine says:

    thanks a bunch :) i’ve been looking everywhere for a solution and this worked like a charm :)

  17. alan says:

    Finally a no nonsense fix in simple terms with out alphabet gobbly goop
    My thanks

  18. PlainOldSteve says:

    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.

  19. Abi Bellamkonda says:


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

  20. Erick Rodriguez says:

    Thank Your very much!!
    It worked for me on dropbox.


  21. Brad says:

    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.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>