Wonderful use of Windows Updater installation parameters

  
In order to block system vulnerabilities in a short period of time, in addition to the upgrade package called Service Pack, Microsoft will release some updates from time to time, such as the Windows XP update released in June. There are six programs. In order to improve the installation efficiency or meet the special needs of some users, Microsoft designed some installation parameters for the update program. Let's take the Windows XP update program as an example to introduce its installation parameters and usage. Update program installation parameters Windows XP update program installation parameters are divided into the three categories listed in the table below, in addition to a parameter "/l" listing the installed update, and an update program decompression parameter "-x ". The following three tables list these installation parameters and their uses: In addition to using the parameters listed above, the updater allows the user to use the parameters in a simplified manner. For example, /f: forces other applications to shut down when shutting down, /n: discards the files needed to back up the uninstaller, /z: does not reboot the system after the updater is installed, /q: installs the update using silent mode, /u: Use the unattended mode to install updates, and more. Update the program parameters using skills According to the specific circumstances of the use of the parameters of the update program, you can meet some special needs of the installation process, the following describes several specific examples: Unzip the update program. Suppose the name of a Windows XP update is WindowsXP-KB896428-x86-CHS. If you need to unzip it and install it, you can open the Windows XP command prompt window and switch to the location where the update is stored. , type "WindowsXP-KB896428-x86-CHS -x" at the prompt. Click the "Browse" button in the pop-up box to select the file storage location. After "OK", the "Extracting Files" dialog box is displayed. After the end, all the files in the update program can be released to the specified location. In addition to using the command prompt window, you can also open the Windows XP Run dialog box, enter "e:\\bd\\WindowsXP-KB896428-x86-CHS-x" (e:\\bd is the file that holds the updater) Folder), after "OK" can also extract the update program to the specified location. 2. Listing the update directory It is necessary to know how many "patches" the system has played before installing the update. Using the /l parameter can help us understand the updates that have been installed. We only need to select an update program, follow the method described above and add the /l parameter in the command prompt window or the "Run" dialog box, you can see the system installation update program seen in the dialog box as shown. Happening. It should be noted that only the updates installed after the latest service pack upgrade package can be listed, and the updates in the service pack are not included. Tip: To get a printable updater directory, open a command prompt window and type "systeminfo > systeminfo.txt" to enter the file, which will generate a file named systeminfo.txt in the current directory. You can see the update information of the system installation, and also record the main configuration information of other systems. 3. Batch Install Update Programs If users download more update programs, manual installation will not only need to run one by one, but also answer questions such as restarting. It is very cumbersome to install updates for multiple computers. At this point you can make a script (or "batch") file and install all the updates at once. First copy the update program to be installed to a folder (for example, E:\\hotfix), and then enter the contents of the script file into "Notepad" in the following format. @echo off setlocal set PATHTOFIXES=E:\\hotfix %PATHTOFIXES%\\WindowsXP-KB890859-x86-EN/Z %PATHTOFIXES%\\WindowsXP-KB890923-x86-EN/Z %PATHTOFIXES%\\WindowsXP-KB893066-x86-EN/Z The "E:\\hotfix" in the file should be modified according to the storage location of the update program. Each update (or decrease) of an update program in the "E:\\hotfix" folder, such as "%PATHTOFIXES%\\WindowsXP-KB890859-x86- A statement such as CHS /Z" is to increase (or decrease) one, and the name of the updater in the statement (for example, "WindowsXP-KB890859-x86-CHS") is modified according to the name of the update program. If you need to use other updater parameters, just add the required parameters after the updater name in the script file, for example "%PATHTOFIXES%\\WindowsXP-KB890923-x86-CHS /Z /q /forceaPPSclose". After the script file is input, click the "Save As" command under "Notepad" and "File" menu, and enter the name such as bdaz.cmd to save (the script file name "bdaz" is arbitrary, the extension must be .cmd or .bat ). After the script file is saved, open the command prompt window, switch to the location where the script file "bdaz.cmd" is stored, and type "bdaz" at the command prompt to enter the batch installation process of the update program. Tip: After installing the update in bulk using scripts, you must restart the operating system for the installed updates to take effect. Since the update program structure of Windows 2000/2003 is the same as that of Windows XP, the method described in this article can also be used for Windows 2000/2003.
Copyright © Windows knowledge All Rights Reserved