且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Windows 7 X64 上安装 Visual Studio 2005

更新时间:2022-03-22 23:10:58

借助托管 MSDN 论坛的一些帮助和运气,我安装了它.我采取的一些步骤毫无意义,但我认为我应该为其他人记录下来.

With some help from a managed MSDN forum and some luck I got this installed. Some of the steps I took made no sense but I thought I should document this for others.

我通过使用/C 开关运行 \wcu\64bitPrereq\vs_bsln.exe 来提取 Prerequisites 安装程序,然后使用管理员命令提示符中的此命令运行带有日志记录的安装程序:

I extracted the Prerequisites installer by running \wcu\64bitPrereq\vs_bsln.exe using the /C switch then ran the installer with logging using this command from an Administrator Command Prompt:

msiexec /package vs_bsln.msi /log <filename>

这给了我一个不同的错误信息:

This gave me a different error message:

MSI (s) (C4:D4) [09:14:54:489]: Product: Microsoft Visual Studio 2005 64bit
Prerequisites (x64) - ENU -- Error 1945.You do not have sufficient privileges
to complete the re-advertisement of this product. Re-advertisement requires
initiation by a local system account calling the MsiAdvertiseScript API, such
as through Group Policy Software Deployment.

其余的对我来说并没有什么意义,但我重复了上面的命令,以域管理员身份而不是本地管理员身份登录并安装了先决条件!

The rest does not really make sense to me but I repeated that above command logged in as a domain Administrator rather than a local Administrator and the Prerequisites installed!

所以我再次尝试安装 Visual Studio,它没有尝试安装先决条件,但在下一个组件(我记得是文档资源管理器)上失败并显示相同的消息.我尝试以管理员身份启动 \vs\setup.exe 并且成功了.

So I tried installing Visual Studio again and it did not attempt to install the prerequisites but failed with the same message on the next component (Document Explorer, as I recall). I tried launching \vs\setup.exe as Administrator and it worked.

更新 10/21/09:此问题可能与从另一台计算机上的共享 DVD 驱动器运行安装有关.如果您遇到这样的问题并且您正在通过网络运行安装,请尝试在本地复制安装.

UPDATE 10/21/09: This problem may have been related to running the install from a shared DVD drive on another computer. If you encounter a problem like this and you are running the install over a network, trying copying the install locally.