) 关于发贴~:)
请 dd兄 发提问贴时标题后加注 “?” 问号,可以快速看标题时认为是在提问~:)
如果不加问号,很多情况下以为 dd兄 是在发布 “一次性安装系统补丁” 的教学经验贴,
所以熟悉命令或是熟悉安装补丁以及它的参数的网友以为这是教学贴而不会进入,
间接地错过了解答的机会~:)
) 关于拆解上面脚本原理:
1) 能过for命令枚举所有扩展名为 .exe 的文件(因为补丁的扩展名名是.exe文件)
2) findstr查找补丁程序中是否含有 “_SFX_CAB_EXE_PATH ” 字串。
补丁程序是被打过包的,使用专门解包的工具就可以看到其它补丁程序的解包后的内容:)
3) 如果补丁含有 “_SFX_CAB_EXE_PATH ” 字串,则以带参数运行安装补丁模式。
如果未含有上面字串,则普通无参数模式运行补丁程序。
) 补丁是否可以打全的问题
如果补丁程序下载全了就可以打全(没有意外情况发生的条件下)。
) 如何知道补丁的参数?
补丁文件名.EXE --help
执行上面指命就可以看到补丁运行时可以指定的运行参数~:)
上面脚本中所用到的参数:
/Quiet 安静模式,没有用户交互操作或显示。
/Norestart 补丁安装完后不要重新启动
/Nobackup 不备份卸载需要的文件
Last edited by redtek on 2006-11-17 at 04:27 PM ]
) 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
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 ]