Include files conditionally with compiler variables
Posted: Fri Aug 24, 2007 11:47 am
I'd like to use a compiler variable to add files in the setup conditionally. The MSI code attached is what I did, but in the setup there are both files. It seems that the compiler variable I defined in the Project Options is ignored, though I see WEBDEMO = true when building the setup.
What's my error?
This is the MSI code:
[DEFINE REGION: Perform First Time or Maintenance Installation]
Comment: Install/Re-Install product
[OFFLINE CONTENT]
[compiler if Variable WEBDEMO Equals (Ignore Case) TRUE]
Install Files X:\\DEMO\\MyApp.exe to $TARGETDIR$
[compiler else]
Install Files X:\\FULL\\MyApp.exe to $TARGETDIR$
[compiler end]
....
What's my error?
This is the MSI code:
[DEFINE REGION: Perform First Time or Maintenance Installation]
Comment: Install/Re-Install product
[OFFLINE CONTENT]
[compiler if Variable WEBDEMO Equals (Ignore Case) TRUE]
Install Files X:\\DEMO\\MyApp.exe to $TARGETDIR$
[compiler else]
Install Files X:\\FULL\\MyApp.exe to $TARGETDIR$
[compiler end]
....