制作无人值守Windows xp 安装盘

时间:2021-02-12 05:51:22
安装软件、补丁、优化都是通过批处理、注册表文件完成的。软件的静默安装的命令行参数,不是系统的问题,而是软件制作者的问题。所以不是所有软件都能静默安装的,一般设计良好的软件,设计者会有添加静默安装命令行参数的。微软的软件应该都是有这项功能的。以下是我找到的一些资料以供参考,需要了解的是该软件的参数,路径和版本可以自己安排。这里提一点,每条命令执行都应有/wait参数,这是指定当前命令执行完毕后才开始执行下一条命令,这样就可以一个个安装软件。不然就会N多命令一起执行。

 

以下是我的草稿,仅供参考:
Unattended Windows part2: unattended aplications
改变用户profile路径: Done!
[GuiUnattended]
ProfilesDir = D:/Documents and Settings
 

Flashplayer 10.00.22.87 for IE & Opera Done!

start /wait %systemdrive%/install/Applications/install_flash_player.exe /S start /wait %systemdrive%/install/Applications/install_flash_player_10_active_x.exe /S

Windows Installer Done!

4.5 page:http://www.microsoft.com/downloads/details.aspx?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4&DisplayLang=zh-cn Direct Download: http://download.microsoft.com/download/2/6/1/261fca42-22c0-4f91-9451-0e0f2e08356d/WindowsXP-KB942288-v3-x86.exe start /wait WindowsXP-KB942288-v3-x86.exe /passive /norestart

DirectX 9.0c 2009 Mar Done!

Command-line options for directx_mar2009_redist.exe /Q -- Quiet modes for package, /T: -- Specifies temporary working folder, /C -- Extract files only to the folder when used also with /T. /C: -- Override Install Command defined by author. Another way with dxsetup.exe By going to the http://msdn2.microsoft.com/en-us/library/bb219742.aspx you can find, black on white, how to install directx in unattended mode. All you have to do, is to add the switch "/silent"! But you should first extracted the directx_mar2009_redist.exe Set up silently. Launch setup in silent mode so that users do not accidentally skip updating the DirectX runtime. You can do this by launching dxsetup.exe with the following command: path-to-redistributable/dxsetup.exe /silent

Visual C++ 2008 redistributable packages Done!

This option will run setup and display a progress dialog but requires no user interaction. vcredist_x86.exe /qb Unattended install with no cancel button This option is the same as the previous option, except that the user will not have the option to press cancel during installation. vcredist_x86.exe /qb! Silent install This option will suppress all UI during installation. Vcredist_x86.exe /q

.Net Framework Done!(2.0)

for 2.0: start /wait dotnetfx.exe /q:a /c:"install.exe /q" 以下摘自http://blog.stealthpuppy.com/scriptcorner/unattended-install-microsoft-net-framework @ECHO OFF ECHO .NET Framework 3.5.. START /WAIT dotnetfx35.EXE /PASSIVE /NORESTART for 3.5 tested failure with two wrong popup boxes but installs correctly after all. I guess the switches are correct, maybe there goes wrong by the envirenment. But I first install VC++ 2008 Redistribution with no help. http://msdn.microsoft.com/en-us/library/aa480242.aspx Download Link: Microsoft .NET Framework 3.5 (197 mb) http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe Before installing .NET Framework 3.5, you need to install Windows Inataller 3.1 Redistributable (v2), here's the download link:

Windows Inataller 3.1 Redistributable (v2)

http://download.microsoft.com/download/1/4/7/147ded26-931c-4daf-9095-ec7baf996f46/WindowsInstaller-KB893803-v2-x86.exe MAKING SILENT INSTALLER: 1. Download dotnetfx35.exe and WindowsInstaller-KB893803-v2-x86.exe (links above) 2. Make the batch file with following lines: Install.bat @echo off title Microsoft .NET Framework 3.5 echo. echo Installing Windows Installer 3.1... start /wait WindowsInstaller-KB893803-v2-x86.exe /passive /norestart echo. echo Installing Microsoft .NET Framework 3.5... start /wait dotnetfx35.exe /q:a /c:"setup.exe /q /norestart" /norestart 3. Repack using winRAR, make it to extract to the temp folder and to run install.bat after extraction. 4. Installation will take up some time, to verify n check the successful install... go to the Add / Remove Programs in Control Panel, it will list the following files... .NET Framework 2.0 Service Pack 1 (187 mb) .NET Framework 3.0 Service Pack 1 (246 mb) .NET Framework 3.5 (25.3 mb)

Office2003: Done!

Office 2003 Resource kit: start /wait %systemdrive%/install/Applications/Office2003/setup.exe TRANSFORMS=Unattended.MST /qb-

Windows Live Messenger 2009 未成功

start /wait messenger.msi /passive /norestart

wmp10: Done!

Enterprise Deployment Pack for Windows Media Player start /wait %systemdrive%/install/Applications/mpsetupedp.msi /qn

ACDSee: Forgive!

Here is the answer I got from technical support, and I post it here for the purpose of those who search for terms before posting a question: Command Line Switches Supported in ACDSee 9 Photo Manager Installer: /s - silent mode /v - parameters after this will be passed to msiexec /qn - sets the user interface level of the windows installer to "No UI" ALLOW_PRIVATE_FOLDERS=0 - do not allow private folders ALLOW_PRIVATE_FOLDERS=1 - allow private folders DISABLE_SOFTWARE_UPDATE=1 - do not show software updates dialog DISABLE_SOFTWARE_UPDATE=0 - show software updates dialog YAHOO_TOOLBAR_INSTALL=0 - do not install yahoo toolbar for internet explorer YAHOO_TOOLBAR_INSTALL=1 - install yahoo toolbar for internet explorer USERNAME - name of user or company COMPANYNAME - name of company PIDKEY - license code INSTALLDIR - installation directory Example Silent Install: "PATH_TO_ACDSEE_SETUP/setup.exe" /s /v"/qn ALLOW_PRIVATE_FOLDERS=0 DISABLE_SOFTWARE_UPDATE=1 YAHOO_TOOLBAR_INSTALL=0 ALLUSERS=1 USERNAME=/"Your name/" COMPANYNAME=/"Your Company's name/" INSTALLDIR=/"C:/Program Files/ACD Systems/" PIDKEY=/"XXXXXX-XXXXX-XXXXXX-XXXXXXX/""

WinRAR: done!

start /wait %systemdrive%/install/Applications/wrar39b2sc.exe /s

Opera:done!

start /wait %systemdrive%/install/Applications/o100s_1535m.exe /S /v"/qn CREATE_DESKTOP_ICON=1 CREATE_QUICKLAUNCH_ICON=1 CREATE_STARTMENU_ICONS=1 ALLUSERS=1 MULTI_USER_SETTING=0 INSTALLER_LANGUAGE=cn K-lite mega codec pack: Done! Simply perform the following command line call: INSTALLERFILENAME -MakeUnattended This will start a wizard called "Unattended Install Maker". Follow the instructions given in that wizard. It's very quick and easy. Then use WinRAR packaging the three files into a SFC archive: General tab, Compression method > Store General tab, Archiving Options > Create SFX archive Comment tab, Enter a comment manually > Setup=klmcp.bat TempMode Silent=1 Overwrite=1 ---------------------------------appinstall.cmd-------------------------------------------------------------- @echo off echo. echo Installing Windwos Installer 4.5... start /wait %systemdrive%/install/Applications/WindowsXP-KB942288-v3-x86.exe /passive /norestart echo. echo Installing VC++ 2008 Redistribution package... start /wait %systemdrive%/install/Applications/vcredist_x86.exe /qb echo. echo Installing .net framewor 2.0... start /wait %systemdrive%/install/Applications/dotnetfx.exe /q:a /c:"install.exe /q" echo. echo Installing DirectX 9.0c 2009 Mar.. start /wait %systemdrive%/install/Applications/directx_mar2009_redist/dxsetup.exe /silent echo. echo Installing Windows Media Player 10.. start /wait %systemdrive%/install/Applications/mpsetupedp.msi /qn echo. echo Installing WinRAR 3.92.. start /wait %systemdrive%/install/Applications/wrar39b2sc.exe /s echo. echo Installing Opera 10 beta.. start /wait %systemdrive%/install/Applications/o100s_1535m.exe /S /v"/qn CREATE_DESKTOP_ICON=1 CREATE_QUICKLAUNCH_ICON=1 CREATE_STARTMENU_ICONS=1 ALLUSERS=1 MULTI_USER_SETTING=0 INSTALLER_LANGUAGE=cn echo. echo Installing Flashplayer for IE.. start /wait %systemdrive%/install/Applications/install_flash_player_10_active_x.exe /S echo. echo Installing Flashplayer for Opera.. start /wait %systemdrive%/install/Applications/install_flash_player.exe /S echo. echo Installing K-lite Mega codec pack 4.8.5.. start /wait %systemdrive%/install/Applications/klmcodec485.exe echo. echo Installing Office 2003 SP3.. start /wait %systemdrive%/install/Applications/Office2003/setup.exe TRANSFORMS=Unattended.MST /qb-