在 VS 2008 中构建安装项目中的“无法创建文件"、“访问被拒绝"和“无法恢复的构建错误" [英] “Could not create the file”, “Access is denied” and “Unrecoverable build error” in building setup project in VS 2008

查看:35
本文介绍了在 VS 2008 中构建安装项目中的“无法创建文件"、“访问被拒绝"和“无法恢复的构建错误"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建设置项目时,我收到一条消息:

When building a setup project I get a message:

安装构建错误:错误 27 无法创建文件C:\Users\MyName\AppData\Local\Temp\VSI1E1A.tmp"访问被拒绝."

Error with setup build: Error 27 Could not create the file 'C:\Users\MyName\AppData\Local\Temp\VSI1E1A.tmp' 'Access is denied.'

我尝试了以下(来自 http://support.microsoft.com/kb/329214/EN-US)

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" 

DLL 已注册,但这并不能解决我的问题.另外,我尝试了清理构建,删除临时文件夹,以管理员身份运行 VS2008,重新启动我的电脑,但每次都会发生.我没有在 Windows 7 64 位上运行和运行的防病毒软件.直到最近,此操作都运行良好.我读过很多其他用户看到这个但没有找到解决方案.

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.

推荐答案

这只是您可能正在使用的 Anti Virus 的一项保护功能.使用卡巴斯基时遇到同样的问题.暂时暂停了实时保护",构建,重建,一切正常.然后恢复了 AV 服务以保持理智.希望这可以帮助.(我不知道为什么会这样,但这个步骤简单地解决了问题)

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)

这篇关于在 VS 2008 中构建安装项目中的“无法创建文件"、“访问被拒绝"和“无法恢复的构建错误"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆