I guess Burn is resolving the variables in the InstallCommand multiple times. Not sure there is a work around except to escape the values by hand. Probably a reasonable thing to file a bug on but fixing it may be hard since it'd likely be breaking behavior change.
_____________________________________________________________ Short replies here. Complete answers over there: http://www.firegiant.com/ -----Original Message----- From: Tucaliuc Mihai . [mailto:tucaliucmi...@gmail.com] Sent: Tuesday, May 12, 2015 8:30 AM To: wix-users Subject: [WiX-users] Wix Built-in Variable escape content Hello, I'm trying to use the Built-in variable WixBundleOriginalSource in order to send to an executable package the source path from where the bundle originally ran. This is my code <ExePackage Id="InstallConditions" SourceFile="..\Bin\$(var.Configuration)\MyPackage.exe" Vital="yes" InstallCommand='"[WixBundleOriginalSource]" "[SqlServer]" "[DatabaseName]"' Permanent="yes"> <ExitCode Value="0" Behavior="success"/> <ExitCode Behavior="error"/> </ExePackage> The problem is that if the source path contains square brackets the content of them will be deleted. For example lets say that i'm trying to execute the installer from location "C:/MyTestFolder/Some[Missing]Data/Install.exe". The WixBundleOriginalSource variable will return to my executable package the following location "C:/MyTestFolder/SomeData/Install.exe", without the "[Missing]" text. Do you have any idea how can I escape the value from this built-in variable? Thanks, MihaiT ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users