Here is my exact .wxs file, with GUID's changed of course. I also made 
sure to remove other sensitive information as needed.

----------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
<Product  Name="MyProg" Version="1.0.0"
               Id="blahblah-6C18-4336-A63D-46DD18959C93" 
UpgradeCode="blahblah-CD51-4632-BF70-C21E583BE788"
               Language="1033" Codepage="1252" Manufacturer="My Company">

<!-- Let WiX generate the package ID for us. -->
<Package Id="*" Keywords="Installer" InstallerVersion="300" Compressed="yes"
                  Description="MyProg Installer" Languages='1033' 
SummaryCodepage='1252'
                  Manufacturer="My Company" />

<Media Id="1" Cabinet="MyProg1.cab" EmbedCab="no" CompressionLevel="high" />
<Media Id="2" Cabinet="MyProg2.cab" EmbedCab="no" CompressionLevel="high" />
<Media Id="3" Cabinet="MyProg3.cab" EmbedCab="no" CompressionLevel="high" />
<Media Id="4" Cabinet="MyProg4.cab" EmbedCab="no" CompressionLevel="high" />
<-- <Media Id="5" Cabinet="MyProg5.cab" EmbedCab="no" 
CompressionLevel="high" /> See below for why this is commented out. -->

<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PgmFilesFldr">
<Directory Id="INSTALLLDIR" Name="MyProg">
<Component Id="MyProgFiles" Guid="blahblah-69D3-4CF5-B44B-592B1DAE353D">
<File Id="MyProgExe" 
Source="$(var.SolutionDir)\Program\program\MyProg.exe" Vital="yes" 
DiskId="1" />
<File Id="MyProgExeConfig" 
Source="$(var.SolutionDir)\Program\program\MyProg.exe.config" 
Vital="yes" DiskId="4" />
<File Id="MyProgUpgradeExe" 
Source="$(var.SolutionDir)\Program\program\Upgrade.exe" KeyPath="yes" 
Vital="yes" DiskId="1">
<Shortcut Id="startMenuMyProg" Directory="ProgramMenuDir" Name="MyProg" 
WorkingDirectory="INSTALLDIR"
                                       Icon="MyProg.exe" IconIndex="0" 
Advertise="yes" />
<Shortcut Id ="desktopMyProg" Directory="DesktopFolder" Name="MyProg" 
WorkingDirectory="INSTALLDIR"
                                       Icon="MyProg.exe" IconIndex="0" 
Advertise="yes" />
</File>
<File Id="MyProgUpgradeExeConfig" 
Source="$(var.SolutionDir)\Program\program\Upgrade.exe.config" 
Vital="yes" DiskId="4" />
<File Id="MyProgImageViewer" 
Source="$(var.SolutionDir)\files_to_install\ImageViewer.dll" Vital="yes" 
DiskId="2" />
<File Id="MyProgMySQL" 
Source="$(var.SolutionDir)\files_to_install\MySQL.Data.dll" Vital="yes" 
DiskId="2" />
</Component>

<Component Id="MyProgManual" Guid="blahblah-4856-46EB-BF9F-E15CC14BA12E">
<File Id="MyProgManual" 
Source="$(var.SolutionDir)\files_to_install\MyProgUsermanual.pdf" 
Vital="no" DiskId="3" />
</Component>

<Component Id="MyProgExtraForms" 
Guid="blahblah-C96A-4E42-A148-7BE681C5227D">
<File Id="MyProgAbsentForm" 
Source="$(var.SolutionDir)\files_to_install\Form.pdf" Vital="no" 
DiskId="3" />
</Component>

<Directory Id="displayDir" Name="display">
<Component Id="display" Guid="blahblah-8976-4DFE-9794-B0CEECA5A177"
                                    SharedDllRefCount="no" KeyPath="yes" 
NeverOverwrite="yes" Permanent="no" Transitive="no"
                                    Win64="no" Location="either">
<CreateFolder />
<RemoveFolder Id='display' On='uninstall' />
</Component>
</Directory>

<Directory Id='importDir' Name='import'>
<Component Id="import" Guid="blahblah-E0D5-4AC7-8DAC-8BEDCD399610"
                                    SharedDllRefCount="no" KeyPath="yes" 
NeverOverwrite="yes" Permanent="no" Transitive="no"
                                    Win64="no" Location="either">
<CreateFolder />
<RemoveFolder Id='import' On='uninstall' />
</Component>
</Directory>
</Directory>
</Directory>

<Directory Id="ProgramMenuFolder" Name="Programs">
<Directory Id="ProgramMenuDir" Name="MyProg">
<Component Id="ProgramMenuDir" Guid="blahblah-2EBE-4F02-A2BB-AD601A1C62AE">
<RemoveFolder Id='ProgramMenuDir' On='uninstall' />
<RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' 
Type='string' Value='' KeyPath='yes' />
</Component>
</Directory>
</Directory>

<Directory Id="DesktopFolder" Name="Desktop" />

<!-- This is giving me fits, so I'll worry about it later. -->
<!-- <Merge Id='CrystalReportsMSM' Language='1033' 
SourceFile='$(var.SolutionDir)\files_to_install\CrystalReportsRedist2005_x86.msm'
 
DiskId='5' /> -->
</Directory>

<Feature Id="MyProgFeature" Title="MyProg" Level="1">
<ComponentRef Id="MyProgFiles" />
<ComponentRef Id="MyProgManual" />
<ComponentRef Id="MyProgExtraForms" />
<ComponentRef Id="display" />
<ComponentRef Id="import" />
<ComponentRef Id="ProgramMenuDir" />
<!-- <MergeRef Id='CrystalReportsMSM' /> See above for why this is 
commented out. -->
</Feature>

<Icon Id="MyProg.exe" 
SourceFile="$(var.SolutionDir)\Program\program\MyProg.exe" />
</Product>
</Wix>

----------------------------------------------------

Also, here are the sizes of the generated files:

09/29/2010  04:46 PM        50,425,856 Onyx Installer.msi
09/29/2010  04:46 PM            82,155 Onyx Installer.wixpdb
09/29/2010  04:46 PM         2,664,519 Onyx1.cab
09/29/2010  04:46 PM           118,138 Onyx2.cab
09/29/2010  04:46 PM           356,764 Onyx3.cab
09/29/2010  04:46 PM               361 Onyx4.cab

Am I totally missing something, or not doing something? Thanks for the help.

Nick
[email protected]

On 9/29/2010 4:19 PM, Castro, Edwin G. (Hillsboro) wrote:
> I think an example of your authoring might help here. I have a number of 
> small packages with embedded cabs and they are each between 2MB and 4MB. 
> Small packages are certainly possible...
>
> Edwin G. Castro
> Software Developer - Staff
> Electronic Banking Services
> Fiserv
> Office: 503-746-0643
> Fax: 503-617-0291
> www.fiserv.com
> Please consider the environment before printing this e-mail
>
>> -----Original Message-----
>> From: Nick Davey [mailto:[email protected]]
>> Sent: Wednesday, September 29, 2010 2:11 PM
>> To: WiX Users
>> Subject: [WiX-users] Questions about WiX
>>
>>    I just started using WiX today, and so far I am liking it's potential.
>> But, like all new things, I have some questions about WiX.
>>
>> The major questions I have relate to how the installer is packaged. Due to
>> some restrictions on the FTP server I must use, I need to split the 
>> installer file
>> up into chunks no bigger than 10MB. 10MB is the maximum file size we can
>> transfer before things time out. Sad I know, but it is what I am stuck with.
>>
>> So, question 1. The installer that is created is nearly 52MB in size.
>> The installed program is 48.5MB in size. Does WiX not compress the files
>> when packaging them? (I am able to compress the .cab files I have added to
>> the installer, but still not the installer.) Are there options that I can 
>> put in the
>> XML to decrease the size of the installer, or remove unused libs/features
>> from the final installer binary?
>>
>> Question 2. I told WiX to not embed the .cab into the installer, and it 
>> barely
>> made a dent in the size of the installer file. I also moved each of the 
>> files that
>> I need installed into various .cab files, with each .cab file containing a
>> different type/set of related files. The size of the installer binary was 
>> still
>> ~50MB. Should not the installer binary size have dropped accordingly?
>>
>> I have more questions, but for now, those are my major points of conflict.
>> Once I get past those I'll ask my other questions if I still have them.
>>
>> Nick
>> [email protected]
>>
>> ------------------------------------------------------------------------------
>> 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
> ------------------------------------------------------------------------------
> 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


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

Reply via email to