Silent Installation of InstallShield

Source: Internet
Author: User

Silent Installation

The silent installation can be implemented in the unattended status.Program. How can we achieve automatic installation? First, we must have a recording file to record all the manual operations, then, the recording file is executed in the unattended state. So we can introduce the implementation of Silent Installation in two parts:

1.Create a recording file. It is very easy to create a recording file. On the basis of the installation packageSetup.exeDrag the file"Run"And then enter the command line parameters."-R "(Si YiRYesRecord ),Then, manually install the program step by step. In this caseC: "Windows(OrC: "winnt) Directory will generateSetup. ISSFile, which is the recording file we need.

2. Execute the recording file. Copy the generated recording file to the installation package and Setup.exe Directory at the same level.
1 ) If you only need to perform Silent Installation on the local machine Setup.exe Drag the file " Run " And then enter the command line parameters. "-S ", At this time, you can see that the mouse blinks twice, indicating that the silent installation is successful.
2 ) If someone needs to call another installation package in one installation package and the installation process must be silent Launchappandwait (szprogram, sz1_line, noptions) Call the function and add the command line parameters,
Parameters:
Szprogram
Name of the application to be run. Enter the name of the called installation package application.
Specifies the command line parameters passed to the running application. Enter the command line here "-R"
Noptions
You can enter many parameters, such as hiding the window and waiting / Don't wait ..... For more information, see Help Enter parameters as needed.

In general, the principle of Silent Installation is basically the same, but in actual use, I still want to share with you some experiences from problems.
1. During the Silent Installation Process, Setup. Log Log File. If your installation package is to burn the disc, because the disc is read-only and has no write permission, this log file cannot be created successfully, resulting in Silent Installation failure. This problem was plagued for a long time. Later I found that you can enter parameters "-F2" And enter a location with the permission to create, for example /F2 "C:" Temp "setup. log" . This avoids permission issues.
2. Solved the above permission problem, I think there should be another parameter that can be executed Setup. ISS The location where the recording file is created. -F1 Specified location, such Setup.exe/S/F1 "C:" Temp "setup. ISS ", In this way, the recording file is generated in C: "Temp Directory.
3. Of course, if you need Setup. ISS And Setup. Log File name as your favorite name, you can also enter parameters -F1,-F2 By the way, change the name, such Setup.exe/S/F1 "C:" Temp "example. ISS "/ F2 "C:" Temp "example. log" .

Copyright statement: Indicate the original source for reprinting.

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.