制作无人值守Windows xp 安装盘

来源:互联网 发布:新西兰畜牧业经济数据 编辑:程序博客网 时间:2024/04/30 02:18
安装软件、补丁、优化都是通过批处理、注册表文件完成的。软件的静默安装的命令行参数,不是系统的问题,而是软件制作者的问题。所以不是所有软件都能静默安装的,一般设计良好的软件,设计者会有添加静默安装命令行参数的。微软的软件应该都是有这项功能的。以下是我找到的一些资料以供参考,需要了解的是该软件的参数,路径和版本可以自己安排。这里提一点,每条命令执行都应有/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 /Sstart /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-cnDirect Download: http://download.microsoft.com/download/2/6/1/261fca42-22c0-4f91-9451-0e0f2e08356d/WindowsXP-KB942288-v3-x86.exestart /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.exeBy 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.exeSet 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 /qbUnattended install with no cancel buttonThis 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 installThis 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 OFFECHO .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.aspxDownload Link:Microsoft .NET Framework 3.5 (197 mb)http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exeBefore 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.exeMAKING 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 offtitle Microsoft .NET Framework 3.5echo.echo Installing Windows Installer 3.1...start /wait WindowsInstaller-KB893803-v2-x86.exe /passive /norestartecho.echo Installing Microsoft .NET Framework 3.5...start /wait dotnetfx35.exe /q:a /c:"setup.exe /q /norestart" /norestart3. 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 Playerstart /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 foldersALLOW_PRIVATE_FOLDERS=1 - allow private foldersDISABLE_SOFTWARE_UPDATE=1 - do not show software updates dialogDISABLE_SOFTWARE_UPDATE=0 - show software updates dialogYAHOO_TOOLBAR_INSTALL=0 - do not install yahoo toolbar for internet explorerYAHOO_TOOLBAR_INSTALL=1 - install yahoo toolbar for internet explorerUSERNAME - name of user or companyCOMPANYNAME - name of companyPIDKEY - license codeINSTALLDIR - installation directoryExample Silent Install:"PATH_TO_ACDSEE_SETUP/setup.exe" /s /v"/qn ALLOW_PRIVATE_FOLDERS=0DISABLE_SOFTWARE_UPDATE=1 YAHOO_TOOLBAR_INSTALL=0 ALLUSERS=1USERNAME=/"Your name/" COMPANYNAME=/"Your Company's name/" INSTALLDIR=/"C:/ProgramFiles/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=cnK-lite mega codec pack: Done!Simply perform the following command line call:INSTALLERFILENAME -MakeUnattendedThis 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 > StoreGeneral tab, Archiving Options > Create SFX archiveComment tab, Enter a comment manually >Setup=klmcp.batTempModeSilent=1Overwrite=1---------------------------------appinstall.cmd--------------------------------------------------------------@echo offecho.echo Installing Windwos Installer 4.5...start /wait %systemdrive%/install/Applications/WindowsXP-KB942288-v3-x86.exe /passive /norestartecho.echo Installing VC++ 2008 Redistribution package...start /wait %systemdrive%/install/Applications/vcredist_x86.exe /qbecho.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 /silentecho.echo Installing Windows Media Player 10..start /wait %systemdrive%/install/Applications/mpsetupedp.msi /qnecho.echo Installing WinRAR 3.92..start /wait %systemdrive%/install/Applications/wrar39b2sc.exe /secho.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=cnecho.echo Installing Flashplayer for IE..start /wait %systemdrive%/install/Applications/install_flash_player_10_active_x.exe /Secho.echo Installing Flashplayer for Opera..start /wait %systemdrive%/install/Applications/install_flash_player.exe /Secho.echo Installing K-lite Mega codec pack 4.8.5..start /wait %systemdrive%/install/Applications/klmcodec485.exeecho.echo Installing Office 2003 SP3..start /wait %systemdrive%/install/Applications/Office2003/setup.exe TRANSFORMS=Unattended.MST /qb-