How can I write values from a property into a text file within the MSI?
Microsoft's Windows Installer architecture does not support writing to a text file, so this sample uses a Run WiseScript from Installation custom action. This script takes you through the steps of accepting end user input on a dialog in an .msi installation, and then creates a text file and writes the information out to a text file that it creates on the destination computer. The User Information dialog contains two edit field controls used to accept the USERNAME and COMPANYNAME properties from the end user. This sample uses the USERNAME and COMPANYNAME properties.
This sample places the custom action used to create a WiseScript following within the MSI Script > Execute Immediate Script: