VirtualBox

Changeset 63989 in vbox for trunk/src/VBox/Installer/win


Ignore:
Timestamp:
Sep 25, 2016 2:47:24 AM (8 years ago)
Author:
vboxsync
Message:

VirtualBox.wxs,Makefile.kmk: Use high compression on product.cab, not just common.cab. However, when we are build the none en_US versions or the x86 common.cab file, don't bother with compression as we're not using them.

Location:
trunk/src/VBox/Installer/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/Makefile.kmk

    r63987 r63989  
    4444
    4545include $(PATH_SUB_CURRENT)/Resources/Makefile.kmk
     46ifdef VBOX_WITH_MSI_HACK
     47 include $(PATH_SUB_CURRENT)/MsiHack/Makefile.kmk
     48endif
    4649
    4750
     
    393396                $(VBOX_SVN_REV_KMK) \
    394397                $(MAKEFILE_CURRENT) \
     398                $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHack.dll,) \
     399                $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
    395400                | $$$$(dir $$$$@)
    396401        $$(call MSG_L1,Linking installer $$@)
     
    398403                $$(@D)/$(PACKAGE_BASE)-r*_$(lang).wixpdb $$(@D)/$(lang)/$(PACKAGE_BASE)-r*_$(lang).wixpdb)
    399404        $(QUIET)$(MKDIR) -p -- $$(@D)/$(lang)/
     405        kmk_time \
    400406        $(VBOX_PATH_WIX)/light.exe -v -nologo \
    401407                -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
     
    403409                -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
    404410                -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
     411               $(if-expr defined(VBOX_WITH_MSI_HACK),-ext $(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
    405412                $(VBOX_MSI_ICE_IGNORE) \
    406413                -out $$(@D)/$(lang)/$$(@F) \
     
    530537                -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
    531538                -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
     539                -E 'VBOX_CAB_COMPRESSION_LEVEL=$(if-expr $(lang) == "en_US",high,none)' \
     540                -E 'VBOX_CAB_COMPRESSION_LEVEL_COMMON=$(if-expr $(lang) == "en_US" && $(KBUILD_TARGET_ARCH) == "amd64",high,none)' \
    532541                -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
    533542                -E 'VBOX_MIDL_PROXY_CLSID=$(VBOX_MIDL_PROXY_CLSID)' \
     
    621630                -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
    622631                -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
     632                -E 'VBOX_CAB_COMPRESSION_LEVEL=high' \
     633                -E 'VBOX_CAB_COMPRESSION_LEVEL_COMMON=high' \
    623634                -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
    624635                -E 'VBOX_MIDL_PROXY_CLSID=$(VBOX_MIDL_PROXY_CLSID)' \
  • trunk/src/VBox/Installer/win/VirtualBox.wxs

    r62022 r63989  
    138138
    139139    <!-- The media/binary IDs -->
    140     <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
     140    <!--
     141        The effects of CompressionLevel options:
     142           default/mszip, high: 32.54s
     143             -rw-rw-rw-  1 bird 0  53 591 221 2016-09-25 03:56 common.cab
     144             -rw-rw-rw-  1 bird 0  41 560 082 2016-09-25 03:56 VirtualBox-5.1.51-r110887_en_US.msi
     145           high, high: 46.76s
     146             -rw-rw-rw-  1 bird 0  53 591 221 2016-09-25 03:49 common.cab
     147             -rw-rw-rw-  1 bird 0  34 056 210 2016-09-25 03:49 VirtualBox-5.1.51-r110887_en_US.msi
     148           medium, medium: 29.95s
     149             -rw-rw-rw-  1 bird 0  56 293 089 2016-09-25 03:53 common.cab
     150             -rw-rw-rw-  1 bird 0  35 498 002 2016-09-25 03:54 VirtualBox-5.1.51-r110887_en_US.msi
     151           low, low: 25.41s
     152             -rw-rw-rw-  1 bird 0  57 616 155 2016-09-25 03:52 common.cab
     153             -rw-rw-rw-  1 bird 0  37 181 458 2016-09-25 03:52 VirtualBox-5.1.51-r110887_en_US.msi
     154           mszip/default, mszip/default: 16.13s
     155             -rw-rw-rw-  1 bird 0  58 751 954 2016-09-25 03:49 common.cab
     156             -rw-rw-rw-  1 bird 0  41 560 082 2016-09-25 03:50 VirtualBox-5.1.51-r110887_en_US.msi
     157           none, none: 2.37s
     158             -rw-rw-rw-  1 bird 0  92 470 301 2016-09-25 03:47 common.cab
     159             -rw-rw-rw-  1 bird 0 135 874 578 2016-09-25 03:47 VirtualBox-5.1.51-r110887_en_US.msi
     160
     161        We set the level in the VBOX_CAB_COMPRESSION_LEVEL and VBOX_CAB_COMPRESSION_LEVEL_COMMON
     162        environment variables so we don't waste time compressing and decompressing the intermediate
     163        language MSIs and the common.cab that we're not going to use (x86).
     164    -->
     165    <Media Id="1" Cabinet="product.cab" EmbedCab="yes" CompressionLevel="$(env.VBOX_CAB_COMPRESSION_LEVEL)" />
    141166<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
    142167    <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?>
    143         <Media Id="2" Cabinet="common.cab" EmbedCab="no" CompressionLevel="high" />
     168        <Media Id="2" Cabinet="common.cab" EmbedCab="no" CompressionLevel="$(env.VBOX_CAB_COMPRESSION_LEVEL_COMMON)" />
    144169    <?endif ?>
    145170<?endif ?>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette