Introduction to the silent installation method of common software _ Security tutorial

Source: Internet
Author: User
Tags rollback

Sometimes we install the program, the hope is silently installed, do not show the next step, this series of visits to teach you how to operate, now commonly used to make the installation program software has, Microsoft windows Installer, Windows patch package, InstallShield, InstallShield with MSI, WISE Installer, Inno Setup, Nullsoft installation System, and so on.

The installation of the software takes place in a fully automatic or semi-automatic manner.

 One, Microsoft Windows Installer

If a software is packaged with Windows Installer, you should be able to see *.msi files in the folder. This is the most typical feature, and these files can usually be installed automatically using the/qb and/qn parameters.

/qb will display a basic installation process in the window.
The/qn parameter does not display any Windows and is automatically installed in the background.

To prevent automatic restarts of certain programs after they have been installed (for example, Kerio Personal Firewall 4), you can use the/qb tag after/qn or reboot=suppress parameters.

For example: Install virtual optical drive daemontools:msiexec/i dtools.msi/qb reboot=suppress


  Second, Windows patch package

There are two cases, one is similar to the IE Incremental patch package of the kind of installation files, to make it silently installed, only to execute the file after the/q:a/r:n parameters can be added; one is a commonly used Windows patch file, in general, and/u/n/z can be installed silently. (/passive/norestart can also be used for new system patches.) This is common in most cases, but some specific patches cannot be installed silently with this method.


  Third, InstallShield

1. To install a program packaged with InstallShield technology using a silent installation, first create a Setup.iss file in an existing operating system. Run Setup using the-r argument (case sensitive) in the Command Line window.

For example: Setup.exe-r

2, then will display the common installation screen, and ask you some questions, such as the directory to install a little bit is very important, at the end of the installation you can not select the "immediately restart the computer" option. If you choose, other commands in the batch file will not be executed because the computer is restarted.

3, after the installation program runs, open your C:\Windows (or C:\WINNT) directory, and then find Setup.iss file, the file and you will silently install the program Setup.exe saved in the same directory.

4, with the following command for silent installation: Setup.exe-s [-sms]

Description: How do I know which program is packaged with InstallShield technology?

Most of these programs can be compressed software to extract the installation files, the installation file Setup.exe Properties dialog box should have "InstallShield (R) Setup Launcher" or other similar words.

Finally, if you see a setup.iss file in the folder where the installation files are saved, there is no doubt that this is packaged with InstallShield!


  Iv. InstallShield with MSI

InstallShield with MSI installation files, please use similar: setup.exe/s/V "/qb" to install.


 Five, WISE Installer

Software packaged with the wise technology can optionally be installed using the/s parameter when installing.


  Vi. Inno Setup

Inno Setup files, please use: setup.exe/sp-/silent/norestart

Description: How do I know which installer is packaged with Inno technology?

This software in the installation of the first interface, the window title bar on the left side of the icon click the left mouse button, and then explore the menu click on the "about Setup" can see the installation type.


  Vii. Nullsoft Installation System

installation files made using NSIs (Nullsoft installation System) can be silently installed with/s (note uppercase) ("s" is case sensitive).

For example: setup.exe/s

You can also use the/d parameter to select the target partitions and folders that will be installed:

For example: setup.exe/s/d=e:\software\qq2007

Software such as Winamp and CDex will display a confirmation screen (CDex) or an End installation screen (Winamp) for setting file associations after the installation is complete.

Description: How do I know which program is packaged with NSIs technology?

Many programs packaged with NSIs have similar windows, such as Winamp and CDex, when they are installed.


  Viii. Wise Installation Professional

The installation files made, can be silently installed with/silent parameters

One of the most glamorous places on an unattended installation disc
It is in the installation process can be silently installed in advance design and integration of some common software, after the installation of software can already be used
But many friends find that each software and system patch, their silent installation parameters are not the same
In this article and the vast number of enthusiasts together to study several common software package form of silent installation method
If there are omissions and errors, please point out that everyone exchanges with each other!

The commonly used software package form mainly has the following several forms
Inno Setup
InstallShield
NSIs
Microsoft Windows Installer
WISE

QUOTE:

I. Inno Setup


Program installation packages made using Inno technology can be silently installed using/silent and/verysilent parameters
I don't know what the difference is between these two parameters, because they implement the same functionality that looks like

Setup.exe/verysilent

You will see a dialog box asking if you intend to continue the installation:

We can skip this dialog box by using a parameter:

setup.exe/verysilent/sp-

Some installation packages that use Inno technology will automatically run installed programs after the program has been installed, such as Isobuster
But we can use a system called Taskkill to kill the associated process with a tool.

The following is an example of a command that can be used for batch files to install software packaged by Inno:

ECHO.
ECHO is installing Isobuster 1.4.
ECHO Please wait ...
Start/wait%systemdrive%installapplicationsisobusterisobuster14.exe/verysilent/sp-
ECHO.
ECHO killing ISOBuster.exe process
taskkill.exe/f/im Isobuster.exe
ECHO.

How do I know which installer is packaged with Inno technology?

The first interface in this software installation is generally shown in the following illustration
Click the left mouse button on the icon on the left side of the window title bar
Then look up the menu and click "About Setup" to see the installation type

More of the available parameters for software packaged with Inno technology can be seen below:
E-Wen's good friends can study it carefully.
With the Inno Setup extentions, the following command line switches become available:

sp-
Disables the This would install ... Do your wish to continue? Prompt at the beginning of Setup. Of course, this'll have no

effect if the disablestartupprompt [Setup] section directive is set to Yes.

/silent,/verysilent
Instructs Setup to is silent or very silent. When the Setup is silent the wizard and the background windows are not displayed but

The installation Progress window is. When a the setup is very silent this installation progress the window is not displayed.

Everything else is normal so-example error messages during installation are displayed and the startup prompt is (if yo U

Haven ' t disabled it with disablestartupprompt or the '/sp-' command line option explained above)

If a restart is necessary and the '/norestart ' command isn ' t used (= below) and the Setup is silent, it'll display a

Reboot now? MessageBox. If it ' s very silent it'll reboot without asking.

/norestart
Instructs Setup not to reboot even if it ' s necessary.
/loadinf= "FileName"
Instructs Setup to load the settings from the specified file has checked the command line. This file can is prepared

Using the '/saveinf= ' command as explained below.

/saveinf= "FileName"
Instructs Setup to save installation settings to the specified file.

/dir= "X:dirname"
Overrides The default directory name displayed on the Select Destination Directory Wizard page. A Fully qualified pathname

Must be specified. If the [Setup] section directive disabledirpage be set to Yes, this command line parameter is ignored.

/group= "folder name"
Overrides the default folder name displayed on the Select Start Menu Folder Wizard page. If the [Setup] section directive

Disableprogramgrouppage was set to Yes, this command line parameter is ignored.

/noicons
Instructs Setup to initially disable the Don ' t create any icons check box on the Select Start Menu Folder Wizard page.

/components= "Comma separated list of component names"
Overrides the default components settings. Using This command line parameter causes the Setup to automatically select a custom

Type.

QUOTE:

Two. InstallShield

To install a program packaged with InstallShield technology using a silent installation
You first need to create a Setup.iss file in your existing operating system.

1. Run Setup using the-r argument (case sensitive) in the Command Line window.

For example:
Setup.exe-r

2. Then the common installation screen will be displayed, and ask you some questions, such as the directory to install, etc.
It is important that you do not select the "Restart Computer Now" option at the end of the installation
If you choose, other commands in the batch file will not be executed because the computer is restarted

3. Open your c:windows (or c:winnt) directory after the installer has finished running
Then find the Setup.iss file and save the file in the same directory as the program you are going to install silently setup.exe

4. Silently install with the following command:

Start/wait%systemdrive%installapplicationapplication_namesetup.exe-s

5. Repeat the above steps for all programs that are ready to be silently installed and packaged using the InstallShield technology

Technical Difficulty: Install the package with InstallShield technology from the RunOnceEx on the CD
If you execute RunOnceEx directly from the CD, the InstallShield packaged application installation will fail
Unless you specify a location to save the day to the file
Here's an example where you can use this example to install your own program (see the bold part carefully):

REG ADD%key%%/ve/d "Kerio Personal Firewall 2.1.5"/F
REG ADD%key%%/V 1/d "%cdrom%appskpfsetup.exe-s-f2"%systemdrive%kerio.log ""/F

Then you can delete the Kerio.log file with a cleanup.cmd file
DEL "%systemroot%kerio.log"

How do I know which program is packaged with InstallShield technology?
Most of these programs can be compressed software to extract the installation files, the installation file Setup.exe Properties dialog box should have "InstallShield (R) Setup Launcher" or

other similar words.
Finally, if you see a setup.iss file in the folder where the installation files are saved,
Then there is no doubt that it was packed with InstallShield!


QUOTE:

Three. Nullsoft superpimp Install System (NSIs)


installation files packaged with NSIs can be automatically installed with the/s parameter ("s" is case sensitive):

setup.exe/s

You can also use the/d parameter to select the target partitions and folders that will be installed:

SETUP.EXE/S/d=e:softwarecdex

Software such as Winamp and CDex will display a confirmation screen (CDex) after the installation is complete.
Or an End installation screen (Winamp) that sets the way the file is associated
I don't know how to skip this step, but this screen doesn't have any effect on the continued execution of the batch file.


How do I know which program is packaged with NSIs technology?


Many programs packaged with NSIs have Windows like this at the time of installation, such as Winamp and CDex:

Four. Microsoft Windows Installer


Microsoft boss's Envelope form!
If a software is packaged with Windows Installer, you should be able to see *.msi files in the folder.
This is the most typical feature.
These files can usually be installed automatically using the/qb and/qn parameters.
PowerToys uses the/s/v/qn parameter, and for these software, you can try the arguments mentioned above in turn
To see which is valid.

/qb will display a basic installation process in the window
The/qn parameter does not display any Windows and is automatically installed in the background

To automatically restart after the installation of a program is complete:
To prevent automatic restarts of certain programs after they have been installed (for example, Kerio Personal Firewall 4), you can use the/qb tag after/qn or reboot=suppress parameters, for example

Such as:

Setup.msi "/qn reboot=suppress"

Some installers use the/S/V/QN parameter for automatic installation, so preventing them from restarting should be done by:

setup.exe/s/V "/qn reboot=suppress"

Five. WISE Installer


Software packaged with the wise technology can optionally be installed using the/s parameter for automatic installation when installed:

setup.exe/s

More of the other parameters:
You can run Wise installation. EXE with command line options to automate many of the tasks for you would normally does in the User

Interface. The list of options is as follows.

/C File.wse--creates executable file from Wise script
/R--opens Wise in Setupcapture window
/U--Runs the upgrade Wizard that checks for any upgrades online
/d Compvar=value-defines a single compiler variable in Enterprise Edition. Multiple definitions require MULTIPLE/D
/d=filename-uses filename to define compiler variables. Each line in the file is Compvar=value

EXAMPLE:INSTALLBUILDER.EXE/C/D _myvar_= "Test" C:mysource ilessetup.wse

Wise Installations:

/T--Test mode
/x Pathname--Extracts files into pathname
/z Pathname--Extracts files into pathname and reboots
/S--Silent Install
/M--Prompts for Windows, System, temp directories
/m=filename--Specifies a value file similar to/d above, but for standard variables (the note below).
/M1--Same as/m plus it prompts before any file this is self-registered
/M2-reserved for internal with Wise during debugger sessions

example:setup.exe/t

Unwise:

/z--Remove empty directories, including one with unwise itself in it.
/A-automatic mode, no user choices other than cancel.
/S--silent mode, automatic mode with no user choices
/R--rollback mode, selects option to rollback on uninstall
/U--like automatic mode, but gives all choices other than Custom/automatic title window title can is at the end of the

Command line

EXAMPLE:UNWISE.EXE/S C:myprogramdirectoryinstall.log

Note:the values file is a simple text file with variables listed, one on line, and in variable= "VALUE" format. If the variable

is found in the values file, the specified value is used; Otherwise, its value is unchanged. The file containing the

Variables can be up to 32K.

How do I know which programs are packaged with WISE technology?

Most programs packaged with the WISE technology will display a startup interface when they start running:
But there are some that will minimize this window, show only a dark blue background, and install the window in the center of the screen

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.