My C# project in Visual Studio will be installed via Wix. I have two target builds: Demo and Release. I want to distinguish these builds and add the suffix 'Demo' to the name of the product:
#if Demo
<?define Suffix = "(Demo)"?>
#endif
<Product [...] Name="MyApp $(var.Suffix)" [...] >
How can I make work this?
I got a solution by my self. I can distinguish between the demo and the release using
var.ProjectName.Configuration
and Wix´s preprocessor.This is my switch:
Adding the suffix (Demo) to my Product: