BAT Batch Automatic (silent) method of installing software (includes 4 common installation package formats) _dos/bat

Source: Internet
Author: User

Using batch processing to install common software, we need to grasp the following knowledge points:

I. Package type of common application software:

1.installshield Type:

InstallShield is a commercial-level installer encapsulation tool that many large commercial software uses to encapsulate. For example: Macromedia Flash. Pgtoshop, etc.
Installation parameters:-R for recording the installation process
-S for automatic installation of software
-f1 specify the path to the Setup.iss answer file
How to use:

1. First use at the command line with the-r parameter to install the software, its installation process and normal installation does not have the essential difference, but in the software installation after the end can be in C:\Windows (WinXP System) or C:\Winnt (Win2K system) Directory to find a file named Setup.iss, it is the next to be used for automatic installation of the important answer file.

2. Put the above Setup.iss file with your installation program in the same directory, using the-s parameter for automatic installation.

For example: start/wait x:\phtoshop\setup.exe-s-f1 "Y:\setup.iss" (if the Setup.iss file is in the same directory as the installer, you can omit the-F1 parameter)

2.Inno Setup Type:

Inno Setup is a completely free installer packaging tool that is comparable in functionality and stability to commercial packaging tools.

Installation parameters:/silent (/verysilent) for automatic installation of software
sp-is used to skip the confirmation interface of the Setup program
How to use: Start/wait x:\thunder5.exe/verysilent sp-
Note: This installation parameter is easy to use, but if we write it to the batch file for a large number of software installation, some software will be installed after the completion of their own start-up, such as the Thunderbolt, in order not to affect system performance, we can combine other commands to terminate its process, such as:

Copy Code code as follows:

@echo off
Start/wait x:\thunder5.exe/verysilent sp-
Echo.
taskkill.exe/f/im Thunder5.exe

3.Microsoft Windows Installer Technology Packaging Program

Microsoft's own products, many software manufacturers now choose this package based on Microsoft development
Parameters://qb (/qn) for automatic installation of software
/reboot=suppress not reset after installation
How to use: Start/wait x:\setup.exe/qb reboot=suppress

4.Nullsoft superrmp Install System (NSIs) type, for example: Winamp
Use parameters:/S for automatic installation of software
For example: x:\winamp\setup.exe/s
Description: This kind of software installation will give a file association confirmation window, currently can not skip, but I could give you a train of thought, is the combination of VBS script DOSKEY command to imitate the keyboard action to achieve the confirmation process, so far I have not written out, Hope Master help improve

Two. Test method and Installation type analysis:

1. Test method: Can use the current more popular virtual machine to test
2. Installation Type analysis: Most installers can right-click the Setup program ___ Select Properties ________ version to view its encapsulated class

Three. Requirements in a batch file

If you intend to WinXP the installation CD-ROM with the CD-ROM tool yourself, and you are installing the application using the WinXP answer file, you must understand that the location of the batch file should be in place, which you can read about in this article.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.