windows7 安装vs2008 sp1出错的解决办法

由于windows7自带了.net framework 3.5 sp1, 所以在安装visual studio 2008 sp1的时候会发生fatal error during installation的错误, 看日志, 发现是安装netfx35.exe的问题, 单独安装没反应. 于是把sp1的iso解开, 打开ParameterInfo.xml文件, 找到

<Exe Name="dotnetfx35.exe" URL="http://go.microsoft.com/fwlink/?LinkId=119353&amp;clcid=0x409" DownloadSize="242743296" SystemDriveSize="859390404" InstalledProductSize="0" InstallCommandLine="/q /norestart /lang:ENU" UninstallCommandLine="/q /uninstall" CanonicalTargetName="#(loc.dotnetfx35sp1)" ExeType="Cartman" LogFileHint="%temp%\dd_dotnet*.txt|%temp%\dd_net_framework*.txt|%temp%\dd_depcheck*.txt|%temp%\..\dd_dotnet*.txt|%temp%\..\dd_net_framework*.txt|%temp%\..\dd_depcheck*.txt" HashValue="0582515BDE321E072F8673E829E175ED2E7A53E803127C50253AF76528E66BC1">
      <ApplicableIf>
        <GreaterThan LeftHandSide="3.5.30729.01" BoolWhenNonExistent="true">
          <RegKeyValue Location="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5\Version" />
        </GreaterThan>
      </ApplicableIf>

    </Exe>

 

然后删掉. 如果是中文的visual studio, 还有语言包, 然后删掉节点. 保存后再运行spinstall.exe

转载于:https://www.cnblogs.com/Stephen/archive/2008/11/21/1338613.html

上一篇:VS2008技巧收集(网摘)


下一篇:Compile OpenCASCADE7.3 with VS2008