.NET Installer Class Arguments Dialog Box

InstallShield 2019

The .NET Installer Class Arguments dialog box displays the arguments that you want to pass to the .NET Installer class. To launch the dialog box, click the ellipsis button (...) for the .NET Installer Class Arguments component setting. Click the Add Argument button beneath the argument that you want to add to launch the Add an Argument/Value Pair dialog box.

There are four methods on the Installer class that are called at various points during the installation: Install, Commit, Uninstall, and Rollback. You use this dialog to specify additional argument lists for the Installer class for each of the execution contexts.

Note • Install custom actions are run when the component containing the Installer class custom action is installed. Uninstall custom actions are run when the component containing the Installer class custom action is uninstalled. These two types are run in the Execute sequence, right after StartServices and before RegisterUser.

Using Arguments

For all methods, /LogFile= is the default argument. This results in no log being generated when these methods are run. You can complete this argument by using Windows Installer properties in [brackets]. To add arguments, type in the appropriate edit field or use the Add Argument button.

Syntax Rules

When you click OK, InstallShield validates what is in the edit fields and displays a warning if the syntax is incorrect. The syntax rules include the following:

All quotes must be matched.
Escape characters are valid. If you use \" in your argument, it is not counted it when checking the quote matching.
Every space-separated argument token must consist of a name preceded by a slash and followed by an equal sign (=). A value to the right of the equal sign is optional.
Spaces inside quotes do not count when determining what is and is not part of an argument token. For example, in the argument /arg=“hi there”, “hi there” is all part of the argument token beginning with /arg. In the argument /arg=hi there, there is its own argument token and an invalid one.

See Also