[wix-users] [Wix]: MSI package creation failed due to sequence of " passing as an argument

Dileep S dileep.sanampudi at gmail.com
Thu Feb 18 21:48:32 PST 2016


Ignore the previous error:

error MSB6001: Invalid command line switch for "candle.exe". Illegal quote
passed to the command line switch named "-d". The value was
[CommandArg="&quot]. [E:\WorkFolder\BuildMSI.wixproj]

On Fri, Feb 19, 2016 at 10:58 AM, Dileep S <dileep.sanampudi at gmail.com>
wrote:

> The following error is occurred  if we use the following in wixproj
> <DefineConstants>Debug;CommandArg="$(cmdArg)"</DefineConstants>
> candle.exe : error CNDL0288: The variable '&quot' with value '' was
> previously declared with value ''. [E:\WorkFolder\BuildMSI.wixproj]
>
> On Thu, Feb 18, 2016 at 8:18 PM, David Watson <dwatson at sdl.com> wrote:
>
>> Try wrapping your constant in quotes.
>> <DefineConstants>Debug;CommandArg="$(cmdArg)"</DefineConstants>
>>
>> It looks like its currently being replaced as
>> <DefineConstants>Debug;CommandArg="""<DefineConstants>
>>
>> And the ; are splitting the string up.
>>
>>
>>  [http://dr0muzwhcp26z.cloudfront.net/static/corporate/SDL-logo-2014.png]
>> <www.sdl.com/>
>> www.sdl.com
>>
>>
>> SDL PLC confidential, all rights reserved. If you are not the intended
>> recipient of this mail SDL requests and requires that you delete it without
>> acting upon or copying any of its contents, and we further request that you
>> advise us.
>>
>> SDL PLC is a public limited company registered in England and Wales.
>> Registered number: 02675207.
>> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
>> SL6 7DY, UK.
>>
>> -----Original Message-----
>> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
>> Behalf Of Dileep S
>> Sent: 18 February 2016 13:00
>> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>> Subject: [wix-users] [Wix]: MSI package creation failed due to sequence
>> of " passing as an argument
>>
>> Dear All,
>>
>> I have found one issue while building WixProject.
>> In my wixproject file i have added one constant variable in
>> <DefineConstants>.
>>
>> <DefineConstants>Debug;CommandArg=$(cmdArg)</DefineConstants>
>> >
>>
>> This $(cmdArg) value will be passed from the command line argument.
>>
>>
>> C:\Windows\Microsoft.NET\Framework\v4.0.30319>MSBuild.exe
>> /p:cmdArg=""""" "E:\WorkFolder\BuildMSI.wixproj" /t:Rebuild
>>
>> Following error is displayed after compiling wixproject.
>>
>> *"E:\WorkFolder\BuildMSI.wixproj" (Rebuild target) (1) ->(Compile target)
>> ->*
>> *  candle.exe : error CNDL0288: The variable '&quot' with value '' was
>> previously declared with value ''. [E:\WorkFolder\BuildMSI.wixproj]*
>>
>> Please help me how to solve this issue.
>>
>> This issue occurs only when sequence of " passing as an argument.
>>
>> Thanks in advance.
>>
>> Regards,
>> Dileep
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>>
>> This message has been scanned for malware by Websense. www.websense.com
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>
>



More information about the wix-users mailing list