Hi,
In order to achieve this you can follow the steps below:
- go in the Install Parameters page and create a property for each computer that is available in the check list (i.e. [FRRAMDC01], [FRRAMDC02], etc.)
- create another property which will be used to add a new line in the text file (i.e. [NEWLINE])
- go in the Custom Actions page and create an "Execute Script Inline" custom action after the "Wizard Dialogs Stage -> Searches" action group with the following code:
Code: Select all
Session.Property("NEWLINE") = vbCrLf
- go in the Dialogs page and select the [Next] button of the dialog that contains you "Check List" control
- create two "Set installer property value" published events for each property related to a computer like described below (you can use the "Copy" and "Paste" functions after you create the first pair of events):
- Property: [FRRAMDC01]
Argument: {}
Condition: NOT (CHECKLIST_1_PROP >< "A") (where "A" is the value of the "FRRAMDC01" element defined in the "Check List" control and the [CHECKLIST_1_PROP] is the property related to the "Check List" control)
Property: [FRRAMDC01]
Argument: <DirectLaunch model = "test" classroom = "FRRAMDC01"/>[NEWLINE]
Condition: CHECKLIST_1_PROP >< "A" (if the "FRRAMDC01" element is checked, the "A" value will be contained by the [CHECKLIST_1_PROP] property)
- go in the Files and Folders page and in the "File Content" of the text file update write on a single line all the properties related to the computers (i.e. [FRRAMDC01][FRRAMDC02])
- build and run the project
I also attached a sample AIP file so you can take a look on it.
Let us know if this helped.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging