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:
%USERPROFILE%\AppData\Local\Temp
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!

21 thoughts on “NSIS Error – Error writing temporary file

  1. philip Post author

    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

    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. J

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

  4. maury

    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.

  5. Eric L

    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.

    Regards.

  6. Mike

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

  7. Jay

    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

  8. John perion

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

  9. PlainOldSteve

    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.

  10. Abi Bellamkonda

    Hi,

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

  11. Brad

    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>