http://wixtoolset.org/issues/4763/
Custom code could use IBootstrapperEngine::GetVariableString to get the value of WixBundleOriginalSource, call IBootstrapperEngine::FormatString to escape it, and then call IBootstrapperEngine::SetVariableString to a custom variable and use that custom variable in your InstallCommand. On Thu, May 14, 2015 at 9:38 AM, Tucaliuc Mihai . <tucaliucmi...@gmail.com> wrote: > Hi, > > I have to follow-up on this. > Why is the built-in variable WixBundleOriginalSource not returning the > correct location of the installer. It seems to remove the content of square > brackets from the path. 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 the following location > "C:/MyTestFolder/SomeData/Install.exe", without the "[Missing]" text. > I have to specify that I am using the wix standard BA and would like to > avoid having any custom code. > > Thanks in advance, > MihaiT > > 2015-05-12 21:56 GMT+03:00 Tucaliuc Mihai . <tucaliucmi...@gmail.com>: > > > Hello, > > > > Thanks for the quick reply, but I don't think its what I was looking for. > > I am not using any custom code for the bootstrapper or UI. > > I am using the standard bundle and trying to send (as an argument) to an > > executable package the source path from where the bundle originally ran. > > The problems appear when that location contains square brackets. > > > > 2015-05-12 19:50 GMT+03:00 Phill Hogland <phogl...@rimage.com>: > > > >> Use Engine.FormatString on the path (in your mba or BAFunctions.dll when > >> using WixStdBA, probably in the DetectComplete handler). > >> > >> In mba something like this: > >> path = > >> > >> > object.Engine.FormatString(object.Engine.StringVariables["WixBundleOriginalSource"]) > >> Then save 'path' to a string variable for use in your ExePackage. > >> > >> (credit - in a recent post, Bob pointed out Engine.FormatString to me > for > >> a > >> similar reason and it has been very helpful.) > >> > >> > >> > >> -- > >> View this message in context: > >> > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Built-in-Variable-escape-content-tp7600300p7600303.html > >> Sent from the wix-users mailing list archive at Nabble.com. > >> > >> > >> > ------------------------------------------------------------------------------ > >> 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 > >> > > > > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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