We need to allow the user to specify the environment on which they're installing, and set installation parameters accordingly.
To this end I've done the following.
- 1. Created a new DatabaseServer installation parameter, [DatabaseServer], with a default value of 'MyDbServer'
2. Created a dialog, Choose EnvironmentDialog, on which they can select the environment using a ComboBox, and which sets the [SELECTED_ENV] parameter
3. Created a vbs script which uses Session.Property to test [SELECTED_ENV] and set it appropriately.
4. Created an Attached Custom Action of my VBS file, and attached it to my ChooseEnvironmentDialog.
5. Created a text replacement for *.ini to replace <DatabaseServer> with the [DatabaseServer] parameter
Code: Select all
Session.Property("DatabaseServer") = "NewServer"
Any pointers as to what may be going wrong?
Thanks a lot,
James