Works fine. The following 2 code samples illustrate it (Not working as
some overhead was removed. Do a diff to check where they are different
:-)
--- setup.wxs ---
<?xml version='1.0'?>
<Product Id="SOMEGUID" Name="My Product" Version="1.0.0"
Manufacturer="My Company" UpgradeCode="SOMEGUID" Language="1033">
<Package InstallerVersion="200" Description="My Product
Installer"
Comments="Package Comments" Platform="x86" Manufacturer="My Company"
Languages="0" Compressed="yes"/>
<Media Id="1" DiskPrompt="Disk 1" Cabinet="setup.cab"
EmbedCab="no"
CompressionLevel="mszip"/>
<Media Id="2" DiskPrompt="Disk x86" Cabinet="setupx86.cab"
EmbedCab="no" CompressionLevel="mszip"/>
<Feature Id="Complete" Title="Complete" Level="1"
Description="Complete program features." Absent="allow"
AllowAdvertise="no" TypicalDefault="install" Display="collapse"
InstallDefault="local">
<ComponentRef Id="msil.dll"/>
<ComponentRef Id="x86.dll"/>
</Feature>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder"
Name="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="My Product"/>
</Directory>
</Directory>
</Product>
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Component Id="msil.dll" Guid="SOMEGUID">
<File Id="msil.dll" Name="msil.dll" DiskId="1"
KeyPath="yes"
Source="src\msil.dll"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Component Id="x86.dll" Guid="SOMEGUID">
<File Id="x86.dll" Name="x86.dll" DiskId="2"
KeyPath="yes"
Source="src\x86.dll"/>
</Component>
</DirectoryRef>
</Fragment>
</Wix>
--- End: setup.wxs ---
--- setupX64.wxs ---
<?xml version='1.0'?>
<Product Id="SOMEGUID" Name="My Product x64" Version="1.0.0"
Manufacturer="My Company" UpgradeCode="SOMEGUID" Language="1033">
<Package InstallerVersion="200" Description="My Product
Installer
x64" Comments="Package Comments" Platform="x86" Manufacturer="My
Company" Languages="0" Compressed="yes"/>
<Media Id="1" DiskPrompt="Disk 1" Cabinet="setup.cab"
EmbedCab="no"
CompressionLevel="mszip"/>
<Media Id="3" DiskPrompt="Disk x64" Cabinet="setupx64.cab"
EmbedCab="no" CompressionLevel="mszip"/>
<Feature Id="Complete" Title="Complete" Level="1"
Description="Complete program features." Absent="allow"
AllowAdvertise="no" TypicalDefault="install" Display="collapse"
InstallDefault="local">
<ComponentRef Id="msil.dll"/>
<ComponentRef Id="x64.dll"/>
</Feature>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder"
Name="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="My Product"/>
</Directory>
</Directory>
</Product>
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Component Id="msil.dll" Guid="SOMEGUID5">
<File Id="msil.dll" Name="msil.dll" DiskId="1"
KeyPath="yes"
Source="src\msil.dll"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Component Id="x64.dll" Guid="SOMEGUID">
<File Id="x64.dll" Name="x64.dll" DiskId="3"
KeyPath="yes"
Source="src\x64.dll"/>
</Component>
</DirectoryRef>
</Fragment>
</Wix>
--- End: setupX64.wxs ---
Then they are compiled using
:: x64 package
candle.exe" -out "setupX64.wixobj" "setupX64.wxs"
light.exe" -cc "%~dp0\" -reusecab -loc "English-US.wxl" -out
"setupX64.msi" "setupX64.wixobj"
:: x86 package
candle.exe" -out "setup.wixobj" "setup.wxs"
light.exe" -cc "%~dp0\" -reusecab -loc "English-US.wxl" -out
"setup.msi" "setup.wixobj"
which generates the corresponding cab files setup.cab, setupx86.cab
and setupx64.cab
2010/10/4 David Watson <[email protected]>:
> I've not tried it but check out the -reusecab switch on light.
>
> -----Original Message-----
> From: Sean Farrow [mailto:[email protected]]
> Sent: 02 October 2010 14:23
> To: [email protected]
> Subject: [WiX-users] using trhe same cab between two different
> configurations
>
> Hi:
> Is it possible to use the same cab when building the release builds of
> two different platforms, the files are exactly the same in both
> platforms.
> Any help appreciated.
> Cheers
> Sean.
> ------------------------------------------------------------------------
> ------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
> </pre>
> <BR style="font-size:4px;">
> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email
> logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a>
> <BR>
> <font face="arial" size="2"><a href = "http://www.sdl.com"
> style="color:005740; font-weight: bold">www.sdl.com</a></font>
> <BR>
> <BR>
> <font face="arial" size="1" color="#736F6E">
> <b>SDL PLC confidential, all rights reserved.</b>
> 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.<BR>
> SDL PLC is a public limited company registered in England and Wales.
> Registered number: 02675207.<BR>
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
> 7DY, UK.
> </font>
>
>
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security
easier or more difficult to achieve? Read this whitepaper to separate the
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users