在安装了VS2005 sp1 后安装AutoCAD2007
AutoCAD 应该都会知道的,呵呵。我现在要安装的是AutoCAD2007。
猛地看到AutoCAD2007将. netFramework 2.0作为系统必备了,心里那个高兴啊。本来嘛,用. netFramework开发的就已经很受这个框架需要安装的诟病了,受到的限制真太多了。现在既然AutoCAD将它列为必备的,那我当然高兴,嘿嘿,以后需要用它的地方会越来越多的~
不过就像我前面提到的我用. netFramework 2.0开发,所以这东西我已经提前安装过了。于是我很快就发现了新的问题了:AutoCAD提示. netFramework 2.0安装失败,然后就自动退出了安装。。。。
我昏。
查看. netFramework 2.0的安装日志,最后大概的意思就是说. netFramework已经是最新版本了,所以无需安装更新。可惜AutoCAD没有识别出来,以为是安装失败了,我寒……
那下面来研究一下如何跳过这个安装的步骤。
AutoCAD是两张CD的,在硬盘上新建一个新的目录,将两个CD里面的内容全部拷贝进去(拷贝在同一个地方)。
用记事本打开 Bin/acadFeui/setup.ini ,原始内容如下:
[SETUP]
SETUP_TITLE=AutoCAD 2007 Setup
SETUP_LOG=%temp%/AutoCAD 2007 Setup.log
SETUP_OSMAJVER=5
SETUP_OSMINVER=0
SETUP_SERVICEPACKMAJOR=4
SETUP_MIN_SERVICEPACKMAJOR=3
SETUP_PRODUCT_MSI=acad.msi
SETUP_PRODUCT_NAMES=MSI DOTNET DOTNETLANG DIRECTX MDAC VIEWER FLASH ACAD
SETUP_REBOOT=FORCE
SETUP_REBOOT_OSMAJVER=5
SETUP_REBOOT_OSMINVER=0
SETUP_STARTUP_MESSAGE=YES
[PREV_PRODUCT_IDS]
[MSI]
PRODUCT_NAME=MSI Runtime 3.1
INSTALL_IGNORE_FAILURE=NO
INSTALL_CMD=msi/WindowsInstaller-KB893803-v2-x86.exe
INSTALL_CMD_ARGS=/quiet /norestart
INSTALL_PLATFORM=WIN32
INSTALL_UPGRADE=MSI
INSTALL_MINIMAL_VERSION=3.1.4000.2435
[DOTNET]
PRODUCT_NAME=.NET Framework Runtime 2.0
INSTALL_CMD=support/dotnetfx/dotnetfx.exe
INSTALL_CMD_ARGS=/q /c:"install /l /qb"
INSTALL_PLATFORM=WIN32
INSTALL_UPGRADE=.NET
INSTALL_MINIMAL_VERSION=2.0.50727
[DOTNETLANG]
PRODUCT_NAME=.NET Framework Runtime 2.0 Language Pack
INSTALL_CMD=support/dotnetfx/%lang%/langpack.exe
INSTALL_CMD_ARGS=/q:a /c:"install.exe /qb"
INSTALL_PLATFORM=WIN32
INSTALL_LANGUAGES=DEU,JPN,CHS
INSTALL_UPGRADE=.NETLANG
INSTALL_MINIMAL_VERSION=2.0.50727
[DIRECTX]
PRODUCT_NAME=DirectX 9.0 Runtime
INSTALL_CMD=support/DirectX/DXSETUP.exe
INSTALL_CMD_ARGS=/silent
INSTALL_MINIMAL_VERSION=4.9.0.904
INSTALL_IGNORE_FAILURE=YES
[MDAC]
PRODUCT_NAME=MDAC 2.7
INSTALL_CMD=support/mdac_typ.exe
INSTALL_CMD_ARGS=/q:a /c:"setup.exe /qnt"
INSTALL_IGNORE_FAILURE=YES
INSTALL_UPGRADE=MDAC
INSTALL_MINIMAL_VERSION=2.70
[ACAD]
PRODUCT_NAME=AutoCAD 2007
INSTALL_ROLLBACKABLE=YES
INSTALL_CMD=acad.msi
INSTALL_CMD_ARGS=/L*v %temp%/AcadInstall.log
INSTALL_UNDO_CMD=acad.msi
INSTALL_UNDO_CMD_ARGS=/qb!
INSTALL_HIDE_WRAPPER_UI=YES
INSTALL_PREWELCOME_DLG=Windows/Installer/InstBasicUi.dll
[VIEWER]
PRODUCT_NAME=Autodesk DWF Viewer
INSTALL_CMD=support/aev/DWFViewerSetup.exe
INSTALL_CMD_ARGS=/u2 /q2 /b0
INSTALL_IGNORE_FAILURE=YES
[FLASH]
PRODUCT_NAME=Flash
INSTALL_CMD=support/flash/Install Flash Player 8 AX.exe
INSTALL_CMD_ARGS=/q
INSTALL_IGNORE_FAILURE=YES
SETUP_TITLE=AutoCAD 2007 Setup
SETUP_LOG=%temp%/AutoCAD 2007 Setup.log
SETUP_OSMAJVER=5
SETUP_OSMINVER=0
SETUP_SERVICEPACKMAJOR=4
SETUP_MIN_SERVICEPACKMAJOR=3
SETUP_PRODUCT_MSI=acad.msi
SETUP_PRODUCT_NAMES=MSI DOTNET DOTNETLANG DIRECTX MDAC VIEWER FLASH ACAD
SETUP_REBOOT=FORCE
SETUP_REBOOT_OSMAJVER=5
SETUP_REBOOT_OSMINVER=0
SETUP_STARTUP_MESSAGE=YES
[PREV_PRODUCT_IDS]
[MSI]
PRODUCT_NAME=MSI Runtime 3.1
INSTALL_IGNORE_FAILURE=NO
INSTALL_CMD=msi/WindowsInstaller-KB893803-v2-x86.exe
INSTALL_CMD_ARGS=/quiet /norestart
INSTALL_PLATFORM=WIN32
INSTALL_UPGRADE=MSI
INSTALL_MINIMAL_VERSION=3.1.4000.2435
[DOTNET]
PRODUCT_NAME=.NET Framework Runtime 2.0
INSTALL_CMD=support/dotnetfx/dotnetfx.exe
INSTALL_CMD_ARGS=/q /c:"install /l /qb"
INSTALL_PLATFORM=WIN32
INSTALL_UPGRADE=.NET
INSTALL_MINIMAL_VERSION=2.0.50727
[DOTNETLANG]
PRODUCT_NAME=.NET Framework Runtime 2.0 Language Pack
INSTALL_CMD=support/dotnetfx/%lang%/langpack.exe
INSTALL_CMD_ARGS=/q:a /c:"install.exe /qb"
INSTALL_PLATFORM=WIN32
INSTALL_LANGUAGES=DEU,JPN,CHS
INSTALL_UPGRADE=.NETLANG
INSTALL_MINIMAL_VERSION=2.0.50727
[DIRECTX]
PRODUCT_NAME=DirectX 9.0 Runtime
INSTALL_CMD=support/DirectX/DXSETUP.exe
INSTALL_CMD_ARGS=/silent
INSTALL_MINIMAL_VERSION=4.9.0.904
INSTALL_IGNORE_FAILURE=YES
[MDAC]
PRODUCT_NAME=MDAC 2.7
INSTALL_CMD=support/mdac_typ.exe
INSTALL_CMD_ARGS=/q:a /c:"setup.exe /qnt"
INSTALL_IGNORE_FAILURE=YES
INSTALL_UPGRADE=MDAC
INSTALL_MINIMAL_VERSION=2.70
[ACAD]
PRODUCT_NAME=AutoCAD 2007
INSTALL_ROLLBACKABLE=YES
INSTALL_CMD=acad.msi
INSTALL_CMD_ARGS=/L*v %temp%/AcadInstall.log
INSTALL_UNDO_CMD=acad.msi
INSTALL_UNDO_CMD_ARGS=/qb!
INSTALL_HIDE_WRAPPER_UI=YES
INSTALL_PREWELCOME_DLG=Windows/Installer/InstBasicUi.dll
[VIEWER]
PRODUCT_NAME=Autodesk DWF Viewer
INSTALL_CMD=support/aev/DWFViewerSetup.exe
INSTALL_CMD_ARGS=/u2 /q2 /b0
INSTALL_IGNORE_FAILURE=YES
[FLASH]
PRODUCT_NAME=Flash
INSTALL_CMD=support/flash/Install Flash Player 8 AX.exe
INSTALL_CMD_ARGS=/q
INSTALL_IGNORE_FAILURE=YES
上面加粗的“SETUP_PRODUCT_NAMES=MSI DOTNET DOTNETLANG DIRECTX MDAC VIEWER FLASH ACAD”这行就是控制要安装什么东西的,我们总结一下大致顺序如下:
MSI Installer V3.1 > .net 2.0 > .net 2.0 中文语言包 > DirectX 9.0C > MDAC (2.7/2.8) > DWF Viewer > Flash > Acad 2007
看了一下,上面粗体字标出的我已经安装过了:
1. MSI Installer V3.1 是系统补丁,更何况安装.net前需要安装它,所以可以跳过;
2. .net 2.0 & 语言包:如前所述,做开发的,已经安装过;
3. DirectX 9.0C:系统安装SP的时候已经自动安装了~
4. MDAC:开发的时候另外安装了~大多数系统也是最新的~
5. Flash:我安装的Flash插件可是9.0最新版,所以可以跳过。
综上,我可以仅安装Dwf Viewer还有Acad 2007,下面我们来修改这个文件:
1. 删除不需要安装的组件的配置节:FLASH、MDAC、DIRECTX、DOTNETLANG、DOTNET、MSI;
2. 修改“SETUP_PRODUCT_NAMES=MSI DOTNET DOTNETLANG DIRECTX MDAC VIEWER FLASH ACAD”这行,删除不需要安装的组件列。
修改最终的结果如下:
[SETUP]
SETUP_TITLE=AutoCAD 2007 Setup
SETUP_LOG=%temp%/AutoCAD 2007 Setup.log
SETUP_OSMAJVER=5
SETUP_OSMINVER=0
SETUP_SERVICEPACKMAJOR=4
SETUP_MIN_SERVICEPACKMAJOR=3
SETUP_PRODUCT_MSI=acad.msi
SETUP_PRODUCT_NAMES=VIEWER ACAD
SETUP_REBOOT=FORCE
SETUP_REBOOT_OSMAJVER=5
SETUP_REBOOT_OSMINVER=0
SETUP_STARTUP_MESSAGE=YES
[PREV_PRODUCT_IDS]
[ACAD]
PRODUCT_NAME=AutoCAD 2007
INSTALL_ROLLBACKABLE=YES
INSTALL_CMD=acad.msi
INSTALL_CMD_ARGS=/L*v %temp%/AcadInstall.log
INSTALL_UNDO_CMD=acad.msi
INSTALL_UNDO_CMD_ARGS=/qb!
INSTALL_HIDE_WRAPPER_UI=YES
INSTALL_PREWELCOME_DLG=Windows/Installer/InstBasicUi.dll
[VIEWER]
PRODUCT_NAME=Autodesk DWF Viewer
INSTALL_CMD=support/aev/DWFViewerSetup.exe
INSTALL_CMD_ARGS=/u2 /q2 /b0
INSTALL_IGNORE_FAILURE=YES
SETUP_TITLE=AutoCAD 2007 Setup
SETUP_LOG=%temp%/AutoCAD 2007 Setup.log
SETUP_OSMAJVER=5
SETUP_OSMINVER=0
SETUP_SERVICEPACKMAJOR=4
SETUP_MIN_SERVICEPACKMAJOR=3
SETUP_PRODUCT_MSI=acad.msi
SETUP_PRODUCT_NAMES=VIEWER ACAD
SETUP_REBOOT=FORCE
SETUP_REBOOT_OSMAJVER=5
SETUP_REBOOT_OSMINVER=0
SETUP_STARTUP_MESSAGE=YES
[PREV_PRODUCT_IDS]
[ACAD]
PRODUCT_NAME=AutoCAD 2007
INSTALL_ROLLBACKABLE=YES
INSTALL_CMD=acad.msi
INSTALL_CMD_ARGS=/L*v %temp%/AcadInstall.log
INSTALL_UNDO_CMD=acad.msi
INSTALL_UNDO_CMD_ARGS=/qb!
INSTALL_HIDE_WRAPPER_UI=YES
INSTALL_PREWELCOME_DLG=Windows/Installer/InstBasicUi.dll
[VIEWER]
PRODUCT_NAME=Autodesk DWF Viewer
INSTALL_CMD=support/aev/DWFViewerSetup.exe
INSTALL_CMD_ARGS=/u2 /q2 /b0
INSTALL_IGNORE_FAILURE=YES
是不是很干净?。。。
运行安装程序,搞定~