You can use preprocessor for that: <?ifdef Debug?> <Payload .../> <?endif?> See http://wixtoolset.org/documentation/manual/v3/overview/preprocessor.html -- https://JetBA.net - Native and WPF WiX BootstrapperApplication Frameworks