This is multiple CustomActionData field pass in SetUp file.
it is possible to add one or more custom screens in the setup wizard, with fields (e.g. text boxes) where the user can enter additional installation parameters.
A custom field can then be passed to a "Custom Action" class library project, to handle the user field. The image below shows how the property "ServerName" gets mapped to the EDITB1 text field:
Within the Custom Action class, the property is accessed as follows:
string targetdir = Context.Parameters["TARGETDIR"]; string stationname = Context.Parameters["STATIONNAME"]; string facility = Context.Parameters["FACILITY"]; string line = Context.Parameters["Line"]; string email = Context.Parameters["Email"]; string environment = Context.Parameters["ENVIRONMENT"];
/TARGETDIR="[TARGETDIR]\" /STATIONNAME="[STATIONNAME]" /FACILITY="[FACILITY]" /LINE="[LINE]" /EMAIL="[EMAIL]" /ENV="[ENVIRONMENT]"
0 comments
Post a Comment