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"


Any inputs????


Stefan Pavlik-2 wrote:
> 
> SaiTeja wrote:
>> My main aim is I want to set program files folder
>> Is the following way is correct????
>> 
>> <?if $(VersionNT64) ?>
>>              <?define P_GUID = "4B1FB95B-4E4F-4ee3-B94C-7A3BF41BCBA2" ?>
>>              <?define PrgFiles = "ProgramFiles64Folder" ?>
>>              <?define MSI_version = "300" ?>
>>              <?define MSI_platform = "x64" ?>
>> <?else?>
>>              <?define P_GUID = "FFE8FDEB-9EFE-41f5-AEEB-E739648921CD" ?>
>>              <?define PrgFiles = "ProgramFilesFolder" ?>
>>              <?define MSI_version = "200" ?>
>>              <?define MSI_platform = "Intel" ?>
>> <?endif?>
> 
> It is not correct.
> 
> The VersionNT64 is public property. All public properties are
> evaluated in RunTime.
> You want to use some Macro (macro is evaluated in Compile time).
> 
> By using the code above you need to specify (somewhere) the macro
> 'VersionNT64' and create two MSI packages (one for each VersionNT64
> value).
> 
> 
> For creating the 64 / 32 bit packages you should check this forum a
> bit deeper. There are several threads that are worth to read.
> 
> regards
> 
> Stefan
> 
> -- 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Check-machine-type-tp14612557p14613270.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to