Readers reflect the Windows automatic updates using a batch file in question. Some patch installation error occurred, can not continue.
After the study, found that this is due to Windows are two different patches, need to use different parameters, once the parameter error will result in not installed,
Office 2007 Standard Key, so the need to use different patches for different parameters. Let's look at specific analysis.
patches from the image to see the type
in Figure 1, the Windows 2003 Server patches files in one directory,
Figure 1
can clearly see the patch in front of the icon file name, there are two types, one is a simple executable file icon, the other is the flag icon in the executable file compressed files.
Figure 2
from the properties of the format
WindowsServer2003-KB823559-x86-ENU.exe file icon is a simple executable file icon. Can be seen from Figure 2 with the help of the patch information and found it uses Microsoft's update process to install the patch. Can see from Figure 3,
Genuine Office 2007, the version of the patch, which is produced by the SFXCAB.EXE, all other icons with a common executable patches have similar properties.
Figure 3
DirectX9-KB819696-x86-ENU.exe file icon is a sign of the executable file compressed file icon to view help information for the patch. Understanding of the parameters that it does not include the / U and / Z,
Microsoft Office 2010 Professional, if you use / U parameter to run the error occurs. Also, see the patch version information, you can see DirectX9-KB819696-x86-ENU patch comes from WEXTRACT.EXE, all other compressed files with logo patch executable file icons also have similar characteristics .
is now clear that the Windows has two different types of patches, use a different patch parameters are not the same need.
automatically distinguish between the format of
patch batch file how to distinguish between the two different types of patch? The safest way is to find a small test patch program resource information, if the patch of resources includes a flag icon in the executable file compressed file, then the patch is the second patch, just use the / Q parameter, if the patch resources does not include the icon, then the patch is the first class, you can use the / U / Q / Z parameter to install the patch.
given here a more simple way, just use the Windows internal commands, no additional procedure. Find the patch file in the feature string,
Windows 7 Starter, if only in a certain type of a string patch exists to distinguish according to the type of patch.
first step: as shown in Figure 4, respectively, with a text editor to open the WindowsServer2003-
KB823559-x86-ENU.exe file and DirectX9-KB819696-x86-ENU.exe file, you can find many features of string such as the string We can use the search string to decide the type of patch.
Figure 4
Step two: In the folder and run the following command, you can specify the parameters of the patch files need to:
(@ findstr _SFX_CAB_EXE_PATH patch file name> nul & & @ echo parameters / U / Q / Z) | | @ echo parameter / Q
the above command means that if the find string _SFX_CAB_EXE_PATH, it means the patch using the / U / Q / Z parameters, or use the / Q parameter.
third step: Run the results shown in Figure 5.
simple way once and for all recognition if the first judge, and then add parameters based on the results, and then run the batch would be too cumbersome. Here are the full batch commands can be combined to determine and install the patch:
FOR / R%% F IN (*. exe) DO @ ((@ findstr _SFX_CAB_EXE_PATH & & @ start / wait%% F / U / Q / Z) | | @ start / wait%% F / Q)
qchain.exe
to the batch file on the patch directory,
Microsoft Office 2010 Product Key, do not need to focus on the patch file to the same directory, for command of the / R parameter will automatically search all subdirectories. Note: For the December 2002 of the patch, with almost no use qchain this command, the new patch have built this command.