[wix-users] string via command line is being parsed... [P]
John Cooper
JoCooper at jackhenry.com
Tue Dec 20 15:03:33 PST 2016
The obvious: By default, variables in the bundle are NOT overrideable. Is your variable marked bal:Overrideable?
If you're using a custom BA or MBA, parsing the command line is up to the BA.
--
John Merryweather Cooper
Senior Software Engineer -- Integration Development Group -- Enterprise Notification Service
Jack Henry & Associates, Inc.® | Lenexa, KS 66214 | Office: 913-341-3434x431050
JoCooper at jackhenry.com
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Steven Ogilvie
Sent: Tuesday, December 20, 2016 3:55 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] string via command line is being parsed... [P]
The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.
Classification: Public
Darn it is messing with my strings in the email
I passed: ( have put a space between https and the colon : so the string won't be messed up
I ran the installer as: TITUSClassificationSetup.exe PACKAGE_VALIDATION=https : //localhost/{{USER}}/{{LCID}}/{USER}/{LCID}
But passed it to the MSI as:
PACKAGE_VALIDATION=https : //localhost///{USER}/{LCID}
Then the Bootstrapper has it as:
Variable: PACKAGE_VALIDATION = https : //localhost///{USER}/{LCID}
This message has been marked as Public by Steven Ogilvie on December 20, 2016 4:55:27 PM. Classification provided by TITUS.
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Steve Ogilvie
Sent: December 20, 2016 4:51 PM
To: WiX User List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] string via command line is being parsed...
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
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message,
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution
is strictly prohibited. If you have received this message in error, please
immediately advise the sender by reply email and delete all copies.
More information about the wix-users
mailing list