Using batch processing to automate the installation of software
The following to install Sogou pinyin as an example to do a small experiment, other software installation can be used as a reference to achieve.
Experiment Objective:
Using batch processing to automatically install Sogou pinyin
Experiment steps:
1. Download Sogou Pinyin installation package, this experiment using Sogou_pinyin_50a.exe.
2. Create a new batch file Sogou_install.bat in the directory where the installation package resides.
3. Edit batch file Sogou_install.bat, enter the following command and save it.
[Plain]
Start/wait. sogou_pinyin_50a.exe/s
4. Double-click the batch file to execute it.
5. If you perform this batch file as an administrator, you may be reminded that file XXX cannot be found. At this point, you can modify the batch file slightly.
[Plain]
The path where the CD installation files are located
Start/wait. sogou_pinyin_50a.exe/s
6. After the batch process is executed, the software is automatically installed.
Experiment Summary:
1. The automatic installation method of other software is similar to the method shown in the experiment.
2. The automatic installation commands for all types of software are not necessarily the same, and most software installation commands can be found on the Internet.
3. Under the Win7 system, the installation of software may be prompted to "allow changes to the computer", which will have a certain impact on the batch automatic installation software. At this point: you can use the administrator to execute the batch file. You can also set it up in Control Panel-Operations center-Change user Account Control settings.
That's it.