Reputation: 1602
When building a setup project I get a message:
Error with setup build: Error 27 Could not create the file 'C:\Users\MyName\AppData\Local\Temp\VSI1E1A.tmp' 'Access is denied.'
I have tried the following (from http://support.microsoft.com/kb/329214/EN-US)
regsvr32 "C:\Program Files (x86)\Common Files\Microsoft Shared\MSI Tools\mergemod.dll"
The DLL registers but this does not fix my problem. Also, I tried a Clean build, deleting the temp folder, ran VS2008 as administratror, restart my PC but it occurs every time. I have no anti-virus software running and running on Windows 7 64-bit. This operation worked fine until recently. I have read many other users see this but found no solution.
The only half solution I found was to edit setup properties and switch to Package files as Loose uncompressed files. This works but is not ideal as I need a full installer.
Upvotes: 0
Views: 11019
Reputation: 401
I have seen this exact problem on my Studio 2008 x64 install. It seems to be some sort of race condition as it happens 99% but not 100% of the time.
I haven't found a fix- but I have found a useful workaround which solves the problem-
Run up ProcMon (the SysInternals tool) and set it going, then do your build. ProcMon seems to slow everything down and thus somehow resolve the race condition. Its an ugly hack but it does work!
Upvotes: 0
Reputation: 51
Its just a protective feature of the Anti Virus u might be using. Had the same problem while using Kaspersky. Paused the "Real Time Protection" temporarily, and the build, rebuild, everything worked perfectly. Then resumed the AV services for sanity to prevail. Hope this helps. (I dunno WHY this happened, but the step simply solved the problem)
Upvotes: 5
Reputation: 942267
No, that error message is unique. Not being able to create files in your own TEMP directory is not good news. At least verify the security settings for that folder, you definitely want to run a thorough disk scan.
A band aid is to move the TEMP directory elsewhere. Control Panel, System, Advanced, Environment variables and create the TEMP and TMP variables and set them to, say, c:\temp. Ask more questions about this at superuser.com
Upvotes: 2