Merge MSI's for Reduce size of exe Bootstrapper

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Merge MSI's for Reduce size of exe Bootstrapper

ankur456799@gmail.com
This post has NOT been accepted by the mailing list yet.
hi I have two MSI one for 86 bit and one for 64 bit and each MSI size is 60 MB so i want to create exe with both MSI's with exe size 60-70 MB .

Issue:- Currently my exe size is 120 MB i want to reduce this to 60-70 MB

MY CODE

In Bootstapper

<Chain>
      <PackageGroupRef Id="NetFx451Web"/>
      <ExePackage SourceFile="vstor_redist.exe" Vital="yes" Cache="yes" Compressed="no" Permanent="yes"
                 
                  InstallCommand="/q /norestart"
                  RepairCommand="/q /norestart"
                  UninstallCommand="/q /norestart"
                  DetectCondition="VSTOR40"
                   />
      <ExePackage SourceFile="vcredist_x86.exe" Vital="yes" Cache="yes" Compressed="no" Permanent="yes"
                 
                  InstallCommand="/q /norestart"
                  RepairCommand="/q /norestart"
                  UninstallCommand="/q /norestart"
                  DetectCondition="VCREDIST2012"
                   />     
        <MsiPackage Id="MSI64" SourceFile="$(var.WixMFW_PerMachine.ProjectDir)bin\64\Release\MFWSetup_x64.msi" InstallCondition="(VersionNT64)" DisplayInternalUI="no">
          <MsiProperty Name="INSTALLFOLDER" Value="[InstallFolder]"/>
        </MsiPackage>     
        <MsiPackage Id="MSI86" SourceFile="$(var.WixMFW_PerMachine.ProjectDir)bin\86\Release\MFWSetup_x86.msi" InstallCondition="(NOT VersionNT64)" DisplayInternalUI="no">
          <MsiProperty Name="INSTALLFOLDER" Value="[InstallFolder]"/>
        </MsiPackage>
    </Chain>

IN MSI

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
  <Product Id="*" Name="Demo $(var.bitness)" Language="1033" Version="$(var.SetupVersionNumber)" Manufacturer="Demo " UpgradeCode="$(var.UpgradeCode)">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
    <CustomAction Id="DIRCA_TARGETDIR" Property="TARGETDIR" Value="[LocalAppDataFolder][Manufacturer]\[ProductName]" Execute="firstSequence" />
    <MajorUpgrade DowngradeErrorMessage="A newer version of Demo For Windows is already installed." />
    <Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion Maximum="$(var.SetupVersionNumber)" Property="OLDPRODUCTFOUND" OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="no" Language="1033" />
      <UpgradeVersion Minimum="$(var.SetupVersionNumber)" Property="NEWPRODUCTFOUND" OnlyDetect="yes" IncludeMinimum="no" Language="1033" />
    </Upgrade>
   
   
    <?if $(var.Configuration) = ReleaseMSI ?>
    <Media Id="1" Cabinet="Cab1.cab" EmbedCab="yes"></Media>
    <?if $(var.Platform) = x64 ?>
    <Media Id="2" Cabinet="Cab2.cab" EmbedCab="yes"></Media>
    <?else ?>
    <Media Id="3" Cabinet="Cab3.cab" EmbedCab="yes"></Media>
    <?endif ?>
    <?else?>
    <Media Id="1" Cabinet="Cab1.cab" EmbedCab="no"></Media>
    <?if $(var.Platform) = x64 ?>
    <Media Id="2" Cabinet="Cab2.cab" EmbedCab="no"></Media>
    <?else ?>
    <Media Id="3" Cabinet="Cab3.cab" EmbedCab="no"></Media>
    <?endif ?>
    <?endif ?>

Feature
Directory
Component example
--
 <Component Id="comp_F7B6C4FB_A2AD_493C_8081_8DAC3298503B" Guid="156DA224-3EC3-490C-8BE4-192E93883F44" Permanent="no" SharedDllRefCount="no" Transitive="no"  Win64="$(var.Win64)" >
        <File Id="_93649A69_3915_4B81_B0CB_B0AB2807E6E6" DiskId="1" Hidden="no" ReadOnly="no" TrueType="no" System="no" Vital="yes" Name="CefSharp.dll" Source="..\Utility\externalReferences\CefSharp.dll" KeyPath="yes" />
      </Component>
---
Registrys

  </Fragment>
</Wix>


But this is not working .. please help me.