I'm putting together an installer for a web appliation.
I've got a custom dialog, where I've got a combo in which the user can select either TEST or LIVE for the installation.
Dependent on the result of this combo, I want to change the application directory, and also some other installation properties.
I've set the combo to have a property of TARGET_SYSTEM.
Specifically, I want to be able to edit my web.config to set the datasource according to whether it's TEST or LIVE. I anticipate doing this by having another Installer property of DATASOURCENAME, which I can set accordingly depending on whether it's a TEST or LIVE installation.
However, I'm having problems getting the Combo box to update the TARGET_SYSTEM property. Also, how can I then set DATSOURCENAME accoring to the value of TARGET_SYSTEM. I want to do something like:
Code: Select all
IF TARGET_SYSTEM = 'TEST'
DATASOURCENAME = 'Tst_datasource'
ELSE
DATASOURCENAME = 'LiveDatasource_001'
ENDIF
Thanks,
James