Re: [WiX-users] Wix Built-in Variable escape content
See if BAfunctions in wixstdba can get you what you want. If not, would need to create a new BA. _ Short replies here. Complete answers over there: http://www.firegiant.com/ -Original Message- From: Tucaliuc Mihai . [mailto:tucaliucmi...@gmail.com] Sent: Wednesday, May 20, 2015 7:55 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Wix Built-in Variable escape content And it this case, how could I escape the values by hand? I was trying to create my own Bootstraper but i cannot use .NET for it since in production it may not be installed on every machine. Also I downloaded the source code for wixstdba with the attempt to modify it :D but I didn't get to far with that. What would your suggestion be? -- 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
Re: [WiX-users] Wix Built-in Variable escape content
And it this case, how could I escape the values by hand? I was trying to create my own Bootstraper but i cannot use .NET for it since in production it may not be installed on every machine. Also I downloaded the source code for wixstdba with the attempt to modify it :D but I didn't get to far with that. What would your suggestion be? 2015-05-19 19:36 GMT+03:00 Rob Mensching r...@firegiant.com: 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 -- 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
Re: [WiX-users] Wix Built-in Variable escape content
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
Re: [WiX-users] Wix Built-in Variable escape content
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
Re: [WiX-users] Wix Built-in Variable escape content
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
Re: [WiX-users] Wix Built-in Variable escape content
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
Re: [WiX-users] Wix Built-in Variable escape content
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
Re: [WiX-users] Wix Built-in Variable escape content
#new_here. Not sure if you received this because of the spam blocker. 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 2015-05-12 18:30 GMT+03:00 Tucaliuc Mihai . tucaliucmi...@gmail.com: 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