SaiTeja wrote: > Hi Stefan > > after I searched I got > > <?if $(env.BUILDTARGET) = "i386"?> > <?define IsWin64 = no?> > <?define WinSystemFolder = SystemFolder?> > <?else ?> > <?define IsWin64 = yes?> > <?define WinSystemFolder = System64Folder?> > <?endif ?> > > <Directory Id="TARGETDIR"> > <Directory Id="$(var.WinSystemFolder)"> > <Component Win64="$(var.IsWin64)"> > <File Id=”fileConfig” Name="file.config" /> > </Component> > > </Directory> > </DirectoryRef> > > But I didnt udnerstand how to set the variable "env.BUILDTARGET"
In this case the BUILDTARGET is environmental variable. You can set it via commandline: set BUILDTARGET=i386 and run the installer immediately after that (the variable is not preserved for future use). You can also use following code: <?if $(var.BUILDTARGET) = "i386"?> ... <?else ?> ... <?endif ?> and rund the candle in following form: candle.exe SourceCode.wxs -dBUILDTARGET=i386 regards -- Stefan Pavlik ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users