View Full Version : Passing Params to the package

08-08-2003, 04:42 PM
I have packaged the whole setup into a self extracting executable with PackageForTheWeb.

Am not sure if this package would accept any sort of parameters
passed from command line!
Is there a help section on this?


08-11-2003, 07:52 AM
Please see online help of package for the web for details. This is an extrat from the same. Hope this helps.

Niran Bhimaiah

Passing Command Line Options to an Executable File Within a Package

If you would like to pass command line options to an executable file within your package during extraction, you have two options:

In the first field of the Delivery Options panel, select the executable file you would like to start once your files are extracted. Then enter a command line option in the second field. If you enter more than one option, separate each option with a space.
You may also pass command line options to the executable file in your package through the command line. To do so, follow the steps below:
Open the folder where you have saved the executable file package.

Include the following information after the directory prompt:

<name of the executable file.exe> -a <args>

For example:

Mypackage.exe -a -x (x can represent any application-specific command line option for your executable file.)

You may also pass command line options to the executable file within a package in silent mode. This suppresses any run-time dialogs built into the package. To use this method, specify the -s option first, followed by -a, and then specify any additional command line options. Separate each option with a space.

For example:

Mypackage.exe -s -a -x

You may enter command line options in both the wizard and from the command line. Any options added on the command line are concatenated to the options specified in the wizard.

Packages that have passwords will not successfully extract in silent mode because the proper password cannot be entered.