Yes, I have re-read the WiX.chm sections on multi-language builds.  Also
read a number of blogs and the tutorial at blogs.technet.com/alexshev/ How
about another hint about how to diagnose the error:
candle.exe : error CNDL0288: The variable 'Configuration' with value
'Release' was previously declared with value 'Release'.

I'm not sure this is relevant, but we are using an MSBuild script (below). I
tried updating the .net and Windows SDK references, but it didn't make a
difference. 

None of the tutorials or blogs or help that I found covers the MSBuild
script.

Scott Button.

set LOCALES=1033,1045,1046,1031
set MSBUILD=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
set WINSDK=C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin
set DIST=%1\bin\Release\dist

:: Build language-nautral setup (en-US=0)
"%MSBUILD%" %1\%1.wixproj /t:Clean /p:Configuration=Release
"%MSBUILD%" %1\%1.wixproj /p:Configuration=Release /p:CultureCode=0
copy /Y %DIST%\%1_0.msi %DIST%\%1.msi

:: Build setup for each locale, create and apply MSI delta transform
for %%i in (%LOCALES%) do (
    "%MSBUILD%" %1\%1.wixproj /t:Clean /p:Configuration=Release
    "%MSBUILD%" %1\%1.wixproj /p:Configuration=Release /p:CultureCode=%%i
    "%WINSDK%\msitran.exe" -g %DIST%\%1_0.msi %DIST%\%1_%%i.msi %DIST%\%%i
    "%WINSDK%\msidb.exe" -d %DIST%\%1.msi -r %DIST%\%%i
    del /F /Q %DIST%\%1_%%i.msi
    del /F /Q %DIST%\%%i
)

del /F /Q %DIST%\%1_0.msi

:: Add supported locales into the Summary Information Stream template
"%WINSDK%\msiinfo.exe" %DIST%\%1.msi /P Intel;%LOCALES%

-----Original Message-----
From: Rob Mensching [mailto:r...@wixtoolset.org] 
Sent: Thursday, May 07, 2009 6:46 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] multi-lingual installation support for Windows 7
and Wix 3.0.5217

Did you read the help documentation about how to do multi-language 
builds in the WiX.chm? It has changed a lot in the last year+ since you 
last picked up a build.

Scott Button wrote:
> Hello, all:
>
>
>
> I recently upgraded from Wix 3.0.3829 to 3.0.5217, in order to develop an
> MSI for Windows 7.
>
>
>
> I now get the error:
>
>
>
> candle.exe : error CNDL0288: The variable 'Configuration' with value
> 'Release' was previously declared with value 'Release'.
>
>
>
> The salient lines of my .wixproj are:
>
>
>
>   <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
>
>     <IntermediateOutputPath>obj\Release\</IntermediateOutputPath>
>
>
>
<DefineConstants>$(DefineConstants);Configuration=Release;Release=</DefineCo
> nstants>
>
>   </PropertyGroup>
>
>
>
> The reason we are doing this is to get multi-lingual installation support.
> We build the .MSI's for each language and then merge them.
>
>
>
> The build worked before, with wix 3.0.3829.  Any suggestions how to get
our
> build working again? (besides downgrading back to 3.0.3829)
>
>
>
> If I remove or change any part of the DefineConstants line, candles stops
> complaining, but the build breaks because the locale-specific directory is
> omitted from the build paths.
>
>
>
> Please guide me on what further information is needed, if I've missed
> something necessary for diagnosis.
>
>
>
>
>
> Scott Button
>
>
>
>


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to