AutoCAD2012因为.net而导致安装失败的解决办法

1.查看安装失败的日志,确保是因为.net安装失败导致的错误。

2.安装目录下,Setup.ini中修改如下内容

将DOTNET BEGIN到DOTNET END之间的部分替换成以下代码,并保存:

#============= DOTNET Begin ===============

[DOTNET4]

PLATFORM=ALL

PRODUCT_NAME=.NET Framework Runtime 4.0

EXE_PATH=3rdParty\NET\4\wcu\dotNetFramework\dotNetFx40_Full_x86_x64.exe

EXE_PARAM=/q

VC_FUNC=DotnetVerify

VC_SOURCE=Setup\SetupUi.dll

VC_PARAM=.NET Framework 4 Full

VC_DESCRIPTION=Detecting .NET 4.0 Runtime

DISKCOST=80000000

IGNORE_FAILURE=YES

[DOTNET4LANG]

PRODUCT_NAME=.NET Framework Runtime 4.0 Language Pack

EXE_PATH=3rdParty\NET\4\wcu\dotNetFramework\dotNetFx40LP_Full_x86_x64_%lang%.exe

EXE_PARAM=/q

EXE_LANGS=1036;1040;1031;1034;1046;1041;1042;2052;1028;1029;1038;1045;1049

DISKCOST=3000000

IGNORE_FAILURE=YES

[DOTNET35SP1]

PLATFORM=ALL

PRODUCT_NAME=.NET Framework Runtime 3.5 SP1

EXE_PATH=3rdParty\NET\35SP1\wcu\dotNetFramework\dotnetfx35.exe

EXE_PARAM=/q /lang:ENU /norestart

VC_FUNC=DotnetVerify

VC_SOURCE=Setup\SetupUi.dll

VC_PARAM=.NET Framework 3.5 SP1

VC_DESCRIPTION=Detecting .NET Runtime 3.5 SP1

DISKCOST=80000000

IGNORE_FAILURE=YES

ACTION=INSTALL

[DOTNET20]

PLATFORM=NATIVE

PRODUCT_NAME=.NET Framework Runtime 2.0

EXE_PATH=3rdParty\%platform%\NET\2\NetFx20.exe

EXE_PARAM=/q:a /c:"install.exe /q"

VC_FUNC=DotnetVerify

VC_SOURCE=Setup\SetupUi.dll

VC_PARAM=.NET Framework 2.0

VC_DESCRIPTION=Detecting .NET 2.0 Runtime

DISKCOST=80000000

IGNORE_FAILURE=YES

[DOTNET]

PLATFORM=ALL

PRODUCT_NAME=.NET Framework Runtime 4.0

EXE_PATH=3rdParty\NET\4\wcu\dotNetFramework\dotNetFx40_Full_x86_x64.exe

VC_PARAM=4.0.30319

VC_DESCRIPTION=Detecting .NET 4.0 Runtime

IGNORE_FAILURE=YES

#============= DOTNET End ===============

3.重新执行安装程序,会忽略掉.net的安装错误。

原内容来自百度经验,感谢原作者的分享。