SILENT INSTALL / UNINSTALL

With InstallShield Silent, there is no need for a user to monitor the setup and provide input via dialog boxes. An InstallShield Silent setup runs on its own, without any end-user intervention.

A normal (non-silent) setup receives the necessary input from the user in the form of responses to dialog boxes. However, a silent setup does not prompt the user for input, it gathers setup data from the InstallShield Silent response file (.iss file).

A response file contains information similar to what an end user would enter as responses to dialog boxes when running a normal setup. InstallShield Silent reads the necessary input from the response file at run time. The format of response files resembles that of an .ini file, but response files have .iss extensions. A response file is a plain text file consisting of sections containing data entries. The best way to create an InstallShield Silent response file is to run the setup and have InstallShield automatically record and create the response file. If necessary, the response file can be manually edited after it is created.

Note

All passwords are saved in human readable form in the recorded silent setup file.

Command line switches for Setup.exe

/f1<path\ResponseFile> or -f1<path\ResponseFile>

Specifies an alternate location and name of the response file (.iss file). If this option is used when running InstallShield Silent, the response file is read from the folder/file specified by<path\ResponseFile>. If this option is used along with the -r option, the response file is written to the folder/file specified by<path\ResponseFile>.

/f2<path\LogFile> or -f2<path\LogFile>

Specifies an alternate location and name of the log file created by InstallShield Silent. By default, Setup.log log file is created and stored in the same directory as that of Setup.inx.

/r or -r

Causes Setup.exe automatically to generate a silent setup file (.iss file), which is a record of the setup input, in the Windows folder.

/s or -s

Runs InstallShield Silent to execute a silent setup.

Note

Separate multiple command line switches with a space, but do not put a space inside a command line switch (for example, /r /f1Install.iss is valid, but not /r/f1 Install.iss).

When using long path and filename expressions with switches, enclose the expressions in double quotation marks. The enclosing double quotes tell the operating system that spaces within the quotation marks are not to be treated as command line delimiters.

Create a response file

  1. Open a DOS window (Command Prompt).
  2. Type the directory path of the LanSafe Setup.exe. If spaces appear in the path, place quotes around the path. For example:
    “C:\LanSafe Installer\Setup.exe”
  3. Type a space, then type the command line switches to use. For example:
    “C:\LanSafe Installer\Setup.exe” -r -f1C:\LanSafeSilentFile.iss
    The above switches record a silent setup file to the file C:\LanSafeSilentFile.iss
  4. Press Enter.
    The Setup program runs.
  5. Complete the installation or uninstallation process as you normally would.
    All responses are recorded for use when Setup is run silently.

After the file is recorded, you can verify your responses by viewing the silent setup file in Notepad or Wordpad.

Install with the silent option

  1. Open a DOS window (Command Prompt).
  2. Type the directory path of the LanSafe Setup.exe. If spaces appear in the path, place quotes around the path. For example:
    “C:\LanSafe Installer\Setup.exe”
  3. Type a space, then type the command line switches to use. For example:
    “C:\LanSafe Installer\Setup.exe” -s -f1C:\LanSafeSilentFile.iss
    The above switches read a silent setup file at the location C:\LanSafeSilentFile.iss
  4. Press Enter.
    Setup runs silently without asking for user feedback.
  5. Verify the process was completed properly. For example, if you used Setup to install LanSafe, be sure LanSafe is running properly.

Note

A Setup run in silent mode uses the same settings as the Setup you ran through to create the response file. Essentially, you are creating clone installations.

Troubleshooting errors

Setup.log is the default name for the silent setup log file that contains the results of the last run of a silent setup. This file is saved in the same location as the recorded .iss file. The result code shown in the file is one of the following:

0 Success.
-1 General error.
-2 Invalid mode.
-3 Required data not found in the Setup.iss file.
-4 Not enough memory available.
-5 File does not exist.
-6 Cannot write to the response file.
-7 Unable to write to the log file.
-8 Invalid path to the InstallShield Silent response file.
-9 Not a valid list type (string or number).
-10 Data type is invalid
-11 Unknown error during setup.
-12 Dialog boxes are out of order.
-51 Cannot create the specified folder.
-52 Cannot access the specified file or folder.
-53 Invalid option selected.

Usually, errors occur because a specified command line switch is invalid or the .iss file has been manually edited incorrectly.

Related Posts

Cách tạo logo bằng AI không mất phí

Bạn có thể tạo logo vừa đẹp vừa dễ bằng trình tạo ảnh AI Dall-E 3, không cần mất tiền thuê thiết kế. Trước tiên bạn cần…

Danh sách các số điện thoại giả mạo, lừa đảo

Nhận cuộc gọi từ những số điện thoại này, tất cả mọi người nên cẩn trọng nếu không muốn bị mất tiền và lộ thông tin cá…

Loạt phím tắt ít biết trên Windows

Trên các phiên bản như Windows 10 và Windows 11, Microsoft tích hợp thêm các phím tắt mới, cho phép người dùng thao tác nhanh hơn. Theo PCWorld,…

Thủ thuật độc đáo trên iPhone: Di chuột như trên máy tính bằng phím cách

Dưới đây là những thủ thuật ít người biết trên iPhone. iPhone có hàng loạt thủ thuật giúp người dùng sử dụng tiện lợi hơn. Mỗi bản…

Bất ngờ những thứ không bao giờ nên đặt gần bộ phát Wi-Fi, hóa ra chúng ta toàn làm sai?

Gần như tất cả chúng ta đều biết việc đặt Router (bộ định tuyến, bộ phát Wi-Fi) ở nơi cao và không bị cản trở bởi chướng…

ffmpeg – Tổng hợp

Bạn tải ffmpeg ở đây, giải nén ra, mở CMD, di chuyển tới folder “bin” trong mớ folder vừa giải nén. Vài lệnh cơ bản: TS to MP4:…

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x