How to fix .NET Framework install errors that ask for tmpXXXX.tmp

I have heard from several customers who have had problems trying to repair the .NET Framework or install a .NET Framework service pack and saw an error dialog asking for the source location for tmpXXXX.tmp.  I wanted to try to explain why this can happen and also describe a way that I normally recommend to fix this issue.

Why does this happen?

The .NET Framework hotfix setup wrapper creates patch files on the fly in the %temp% directory that are named tmpXXXX.tmp (where XXXX is a randomly generated ending), and then deletes the file after applying the patch.  When attempting to install any .NET Framework hotfix or repair the .NET Framework, Windows Installer will perform a component health check.  If any of the components installed as part of the patch have been damaged/deleted, Windows Installer will trigger a repair and search for the files in the original install location.  In this case, the original install location does not exist because it was deleted from %temp%.

How can I workaround this?

I posted a complete set of steps that you can use to clean up your system and reinstall the .NET Framework at 

<update date="5/6/2011"> Removing the old instructions in this post and pointing to updated steps. </update>


Comments (23)
  1. K. Stebner says:

    Hey are we related??? I am Kassandra Stebner. Is your family lineage Russian?

  2. It is possible that we’re related. I think part of my family history traces back to Russia though I’m not 100% sure. My family in the USA is all from Michigan.

  3. says:

    I have a problem, which I hope can be solved through the use of this utility.

    Here’s a little background. Several years ago, I modified the net.msi file in that I basically prevented User interaction via the interface by turning off the SetupCompleteSuccess dialog (0 condition).

    We initially did this for 1.0 then the 1.1 upgrade. Everything appeared fine, but we’ve recently run into a problem.

    Someone was installing some third party software, which attempts to install Dotnetfx.exe v 1.1 and we get a 1316 error. It can’t find a tmp or certain file. I believe it indicates a network error.

    I was hoping I could use this utility to clean this up, then reinstall 1.1.

    I believe I saw mention of having to reinstall other service packs if they were present. So, I should plan on installing 1.1 SP 1 as part of this process as well.

    I’m hoping I could fire this sequence off and have it run without too much user interaction with the utility itself. I won’t mess with the interface of 1.1 and the Service Pack again.

    Any information, tips would be GREATLY appreciated.

    Thanks Much


  4. Hi Matt – I’m not sure why you would be seeing 1316 errors in that scenario, that means "A network error occurred while attempting to read from the file: [2]"

    If you are trying to clean up in order to reinstall .NET Framework 1.1, you should be able to uninstall just the main .NET Framework 1.1 package and that should remove any service packs you have installed on your machine automatically. For .NET 1.1 you can run msiexec /x {CB2F7EDD-9D1F-43C1-90FC-4F52EAE172A1} /qb! to run an unattended uninstall that doesn’t require or allow any user interaction.

    Then you can run the following to reinstall the .NET Framework 1.1 in unattended mode:

    dotnetfx.exe /q:a /c:"install.exe /qb /l"

    Can you try that out and let me know if it works for you?

  5. Old Bob says:

    This is my first time doing such a thing, so I hope I did this correctly. I have the problem when trying to install the net framework sp1 after uninstalling net framework(MSFT told me to do so if unable to download the newest update). I do not have msizap.exe and cannot get it unless I download a skd (sp?) so I was unable to use the MSFT command line to zap as my PC did not recognize msizap. I have just stumbled on your clean up tool and almost cried with joy. I have win xp home with sp2. Can I use this tool safely on my PC? Shall I use the installer to remove the net framework first and then run the tool or just run the tool. I have installed’uninstalled/reinstalled so many times I can’st stand it. Can I just double click on the exe clean up or do I have to type in a cmd?

  6. Hi Old Bob – you can definitely use this cleanup tool on your XP Home SP2 machine. This is the same tool our customer support team uses when they get calls about the .NET Framework not working correctly. The tool will attempt to use the normal uninstall method first and then do some manual removal steps, so you don’t need to run the uninstall yourself beforehand.

    Hope this helps. Please contact me at if you run into any issues.

  7. Old Bob says:

    Thank you for your reply. In the explanation of the utility on 9-15-05, you mentioned that it does not automatically use the msizap and you have to download it–runt the msizap command and rerun your utility. Have you found out why and added this automatic feature? I do not have that utility either and do not really understand all about the re-direction that Microsoft sends you to in order to get this utility so I opted not to download the SDK (?) package. If I set a restore point, and something goes wrong running the utility, can I just restore to that point? I have never used system restore but I am sure I can figure it out unless your utility erases the restore points. I am unable to export my registry and I think maybe when I defragg it could not defrag c: doc and settnameapplication datamicrosoftclr config. I really do not know what that is but I left it alone. Every time I uninstall the net framework and reinstall it, I have to again reinstall my HP printer or it will not work. Forgive me for rambling, but I have been at this for 2 weeks and very hesitant as all works now, but I cannot install the sp1 or the new 903 update for the netframework. Is there any harm in just never updating netframework? I do need it for my print shop program and the re-install of the HP printer will installs it 1.1 version upon re-installing (think it looks and sees if I have it and leaves it alone if I do but installs if I do not. Your opinion is much appreciated.

  8. Hi Old Bob – The cleanup tool does attempt to run msizap already, but in some cases, it will fail to run if this tmpXXXX.tmp error dialog appears first. You can use the 5 steps listed at the top of this blog post to workaround that failure. Those steps will remove .NET Framework 1.1 and walk you through reinstalling .NET Framework 1.1 and then installing .NET Framework 1.1 SP1. After doing that you’ll be able to install KB886903 also.

    I would not recommend not updating the .NET Framework 1.1 because there have been some security fixes in 1.1 SP1 and in KB886903.

    If you cannot get the steps listed above to work, please contact me at and I can try to help further.

  9. Old Bob says:

    Thank You Aaron!! What a wonderful thing to have someone stick with you to resolve an issue. If you have NetFramework issues try this fix and you too I bet will be pleasantly surprised.

    Old Bob

  10. Tom says:

    Thank you so much for this tool.

  11. frog says:

    Where’d the tool go?

  12. Hi Frog – Currently, the server I use to host all of the tools that I have posted for download is down for maintenance, and it unfortunately has been down for a couple of days now.  Please contact me using and I will send you a copy of the tool via email as a workaround.

  13. Fareeha says:

    Hello Sir,

    I was trying to install .Net framework 3.0 but was getting errors. After wasting lots of time on various possible solutions, I came across your blog and then tried to uninstall all installed versions of .Net framework. But .NET Framework cleanup tool didn’t uninstall any version. I’m using Windows Server 2003 SP2. What am I doing wrong?

  14. Hi Fareeha – The .NET Framework cleanup tool will not remove versions of the .NET Framework that are installed as OS components.  Since you’re running Windows Server 2003, it will not remove the .NET Framework 1.1.  However, it will remove any other versions of the .NET Framework that you have installed.  Do you still see other versions installed after running the tool?  If so, which exact versions do you see, and how are you verifying that they’re still installed (for example – do they appear in Add/Remove Programs, are the files still present, etc)?

  15. Fareeha says:

    Sir, I’m sorry for my late reply. Thanks a lot for your response.

    I’d installed .Net Framework 2.0 and the tool had removed it but hadn’t removed .Net Framework 1.1.

  16. I previously described a set of steps in this blog post that can be used to manually remove the .NET

  17. Bubbla says:

    About 1/8 the way of setup, it stops and deletes all the installed files.. How i fix?

  18. Hi Bubbla – What version of the .NET Framework are you trying to install when you see this problem?  Can you please use the tool described at…/6458047.aspx to gather your .NET Framework setup log files, upload the file named that this tool creates to a file server such as, and then reply back here with a link to your log files so I can download them and use them to investigate further?

  19. introuble says:

    hi when i try to install net frame work 4.0 it says installation did not succeed fatal error during installation i tried many things nut it just does not work my system is 64 bit please help

  20. Hi introuble – Can you please use the tool described at…/6458047.aspx to collect all of your setup log files, upload the file named that this tool will create to a file server (such as, and then reply back here and provide a link that I can use to download your log files and take a closer look?

    Also, if you haven't yet, I'd suggest trying to install the latest update for the .NET Framework 4.  It is the .NET Framework 4.5.2, and you can download it from…/details.aspx.

Comments are closed.

Skip to main content