[wix-users] string via command line is being parsed...
Steve Ogilvie
SOGILVIE at msn.com
Tue Dec 20 13:50:51 PST 2016
Hi all,
In my Bundle I have a variable that I can pass to my MSI, I have it set up as:
<Variable Name="PACKAGE_VALIDATION" Type="string" bal:Overridable="yes" Value="PACKAGE_VALIDATION"/>
then I can pass the string to the MSI via:
<MsiProperty Name="PACKAGE_VALIDATION" Value="[PACKAGE_VALIDATION]"/>
I ran the installer as: Setup.exe https://localhost/{{USER}}/{{LCID}}/{USER}/{LCID}<https://localhost/%7b%7bUSER%7d%7d/%7b%7bLCID%7d%7d/%7bUSER%7d/%7bLCID%7d>
The Bootstrapper (EXE) received and passed the string as:
Command line parameter: PACKAGE_VALIDATION=https://localhost/{{USER}}/{{LCID}}/{USER}/{LCID}
Setting string variable 'PACKAGE_VALIDATION' to value 'https://localhost/{{USER}}/{{LCID}}/{USER}/{LCID}'
But passed it to the MSI as:
PACKAGE_VALIDATION=https://localhost///{USER}/{LCID}<https://localhost/%7bUSER%7d/%7bLCID%7d>
Then the Bootstrapper has it as:
Variable: PACKAGE_VALIDATION = https://localhost///{USER}/{LCID}<https://localhost/%7bUSER%7d/%7bLCID%7d>
So it is stripping out "{{blah}}"
Any ideas as to why?
thanks,
Steve
More information about the wix-users
mailing list