.net Setup Project: How to pass multiple CustomActionData fields

In the .net "Setup" installation project, you can add one or more custom screens in the setup wizard with fields (for example, text fields), where the user can enter additional installation parameters.

The user field can then be transferred to the user action class library project to process the user field. The following figure shows how the "ServerName" property is displayed in the EDITB1 text box:

enter image description here

In the Custom Action class, access to the resource is as follows:

string serverName = Context.Parameters["ServerName"]; 

Question: how can I specify several properties (for several text fields) for a custom action?

+7
source share
1 answer

According to the documentation for CustomActionData regarding passing multiple values:

Multiple values ​​must be separated by a single space: / name1 = value1 / name2 = value2. If the value has a space in it, it must be surrounded by quotation marks: / name = "value"

+11
source

All Articles