Preventing the compression of an external msi file and its inclusion in the boot boot block

Is it possible to include the Msi package in the bootstrapper, but not some of its external files?

So my msi installer has a file:

<Component Directory="INSTALLDIR">
    <File Id="DatabaseBackup"
          Name="Database.bak"
          Source="Database.bak"
          Compressed="no" />
  </Component>

which outputs:

  • Installer.msi
  • Database.bak

Now, if I set the burn chain to include the msi package:

<MsiPackage SourceFile="$(var.Installer.TargetPath)" />

the database.bak file is also compressed into the resulting exe. Is it possible to compress msi but not a .bak file?

If not, someone can answer this question better than I can, then I won’t need it! :)

+3
source share
1 answer

I used the Payload element for this ... in your example, I would change the element MsiPackageto:

<MsiPackage SourceFile="$(var.Installer.TargetPath)" >
  <Payload Compressed="no" SourceFile="{path_to_bak_file}\Database.bak"  />
</MsiPackage>

MSI , .

.. , , ( , ), - , MSI.

,

+4

All Articles