Hi Mike,

I use the approach via a custom action:

      <Component Id="ProductComponentI" Guid="A GUID">
        <File Id="FileA" Name="FileNameA.txt" />
      </Component>

      <Component Id="ProductComponentII" Guid="ANOTHER GUID">
        <File Id="FileB" Name="FileNameB.txt" />
      </Component>


    <Feature Id="VersionI" Title="VersionI" My Version." Level="1">
        <Condition Level="0">WindowsNT=501</Condition>
        <ComponentRef Id="VesrionIComponents" />
        <ComponentRef Id="Utilities" />
      </Feature>

   <Feature Id="VersionII" Title="VersionII" Another VersionVersion." 
Level="1">
        <Condition Level="0">WindowsNT=502</Condition>
        <ComponentRef Id="VesrionIIComponents" />
        <ComponentRef Id="Utilities" />
      </Feature>

    <CustomAction Id='FileNameAssignI' Property='SINGLEFILENAME'
                  Value='FileNameA.txt'/>

    <CustomAction Id='FileNameAssignII' Property='SINGLEFILENAME'
                  Value='FileNameB.txt'/>


    <InstallSequence>
          <Custom Action="FileNameAssign32" 
After="InstallFinalize">WindowsNT=501</Custom>
          <Custom Action="FileNameAssign64" 
After="InstallFinalize">WindowsNT=502</Custom>

Well, it is a bit clumsy, but it works.

Mike



Schuett, Michael wrote:
> Hello,
>
> I need to install a different version of a file depending on the OS. The 
> installed file needs to have the same name.
>
> Here's my code that works if the <File Name= are unique.
>
>       <Component Id="File2000.ext" 
> Guid="{5418CC53-8981-4156-A3F9-33701487762A}">
>          <File Id="File2000.ext" Name="File.ext" Source="files\File2000.ext" 
> KeyPath="yes" />
>       </Component>
>
>       <Component Id="FileXP.ext" 
> Guid="{060A222E-41F6-4541-AF03-A7EF909EF934}">
>          <File Id="FileXP.ext" Name="File.ext" Source="files\FileXP.ext" 
> KeyPath="yes" />
>       </Component>
>
>       <Component Id="FileVista.ext" 
> Guid="{9B7DC90F-6D82-499B-8346-20B916745777}">
>          <File Id="FileVista.ext" Name="File.ext" 
> Source="files\FileVista.ext" KeyPath="yes" />
>       </Component>
>
>       <Feature Id="File2000.ext" Level="1">
>         <Condition Level="0"> VersionNT=500 </Condition>
>         <ComponentRef Id="File2000.ext"/>
>       </Feature>
>
>       <Feature Id="FileXP.ext" Level="1">
>         <Condition Level="0"> VersionNT=501 </Condition>
>         <ComponentRef Id="FileXP.ext"/>
>       </Feature>
>
>       <Feature Id="FileVista.ext" Level="1">
>         <Condition Level="0"> VersionNT=600 </Condition>
>         <ComponentRef Id="FileVista.ext"/>
>       </Feature>
>
> Thanks,
> Mike
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   


-- 
Dr.Michael Faden        fon: +49(0)228-98549-51
kippdata GmbH           fax: +49(0)228-98549-50
Bornheimer Str. 33a     Email: [EMAIL PROTECTED]
D-53111 Bonn 

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to