) Regarding Posting ~: )
Please, Brother dd, when posting a question, add a "?" question mark after the title. This allows quick recognition of a question when viewing the title ~: )
If you don't add a question mark, in many cases, it will be thought that Brother dd is posting a teaching experience post about "one-time installation of system patches".
So netizens who are familiar with commands or familiar with installing patches and their parameters will think it's a teaching post and won't enter, indirectly missing the opportunity for an answer ~: )
) Regarding Disassembling the Principle of the Above Script:
1) Enumerate all files with the extension .exe through the for command (because the extension of the patch is an.exe file)
2) findstr to find whether the patch program contains the string "_SFX_CAB_EXE_PATH".
The patch program is packaged, and you can see the unpacked content of other patch programs using a special unpacking tool ~: )
3) If the patch contains the string "_SFX_CAB_EXE_PATH", run the installation patch mode with parameters.
If it does not contain the above string, run the patch program in the normal parameter-free mode.
) The Issue of Whether Patches Can Be Fully Applied
If all patch programs are downloaded, they can be fully applied (under the condition that no unexpected situations occur).
) How to Know the Parameters of the Patch?
Patch file name.EXE --help
Execute the above command to see the running parameters that the patch can specify ~: )
The parameters used in the above script:
/Quiet Quiet mode, no user interaction or display.
/Norestart Do not restart after patch installation
/Nobackup Do not back up files needed for uninstallation
[
Last edited by redtek on 2006-11-17 at 04:27 PM ]
Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._