[wix-users] string via command line is being parsed... [P]

Steven Ogilvie Steven.Ogilvie at titus.com
Tue Dec 20 13:55:29 PST 2016


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/


More information about the wix-users mailing list