Hi,
I am creating a MSI that has two features, each containing one component. The
user can install either or both the features. Each component use the same
source file which is to be installed to a different location.
Although the component use the same source file, it seems the file size of the
MSI is still doubled. If in the wxs, I remove one component totally, then the
size is only about the size of 1 times the source file, instead of twice.
Is there any to reduce the size of the MSI in such a scenario?
Here is a sample that I have tried:
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='INSTALLDIR' Name='Foobar 1.0'>
<Directory Id='DIR1' Name='DIR1'>
<Component Id='HelperLibrary1'
Guid='1026cf9e-946c-445e-889a-d0e947796847'>
<File Id='Helper1' Name='Helper1.zip' DiskId='1'
Source=MyFile.zip' />
</Component>
</Directory>
<Directory Id='DIR2' Name='DIR2'>
<Component Id='HelperLibrary2'
Guid='33333333-946c-445e-889a-d0e947796847'>
<File Id='Helper2' Name='Helper2.zip' DiskId='1' Source=
MyFile.zip' />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature Id='Complete' Level='1'>
<Feature Id='SomeFeature1' Level='1' AllowAdvertise='no' Absent='allow'>
<ComponentRef Id='HelperLibrary1'/>
</Feature>
<Feature Id='SomeFeature2' Level='1' AllowAdvertise='no' Absent='allow'>
<ComponentRef Id='HelperLibrary2' />
</Feature>
</Feature>
Thanks for your help.
Regards,
Hongping
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users