In my FB project I would like to run InstallAware twice. Each time with a different InstallAware build type, once a "compressed single exe", and once a "compressed web based exe".
Since the IA action includes quite a lot of compiler variables and other settings, I would prefer if I didn't have to copy the IA action and keep them both updated in case of changes to the action settings.
Is there a way to loop the IA action and change the build type? Since the build type is selected using a drop-down, I don't see how it can be done just by changing a variable.
I assume that it can be done using scripting, and setting the Action BuildType in the BeforeAction event, but I can't get it to work. I have tried just adding this code in the BeforeAction event on the IA action:
Action.BuildType = btCompressedWebExe
but this fails with the error "Type mismatch: 'Action.BuildType'".
Any help will be greatly appreciated.