VirtualBox

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


Ignore:
Timestamp:
Jul 20, 2017 10:38:12 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117087
Message:

Unattended: Moved the unattended templates into Main where they belong and renamed their installation directory to 'UnattendedTemplates' (was 'unattended_templates'). Added them to the solaris and darwin installers. Corrected the ubuntu template to with a ubiquity/success_command line duplicating preseed/late_command so the commands actually get executed.

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

Legend:

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

    r67067 r68057  
    168168        $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
    169169        $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
     170        $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
    170171        $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
    171172                $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
     
    503504        $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
    504505        $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi \
    505         $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi
     506        $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
     507        $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi
    506508
    507509#
     
    520522                                $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,) \
    521523                                $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
     524                                $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
    522525                                $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
    523526                                $(VBOX_MSI_DEPENDENCIES)) \
     
    580583                -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
    581584                -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
    582                 -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
    583585                -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
    584586                -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
     
    614616                $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,) \
    615617                $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
     618                $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
    616619                $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
    617620                $(VBOX_MSI_DEPENDENCIES) \
     
    671674                -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
    672675                -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
    673                 -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
    674676                -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
    675677                -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
     
    718720#
    719721include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
    720 $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi: $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
     722$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi)
     723$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi: $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk | $$(dir $$@)
    721724        $(APPEND) -t $@ '<?xml version="1.0" ?>'
    722725        $(APPEND) $@ '<Include>'
     
    729732# Edit the version stored in the registry.
    730733#
     734$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi)
    731735$(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi: $(PATH_SUB_CURRENT)/VBoxKey.wxi $(VBOX_VERSION_STAMP) | $$(dir $$@)
    732736        $(SED)  -e 's/%VER%/$(VBOX_VERSION_STRING_RAW)/' \
    733737                -e 's/%VER_EXT%/$(VBOX_VERSION_STRING)/' \
    734738                --output $@ $<
     739
     740#
     741# Generate the list of unattended template script files.
     742#
     743$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi)
     744$(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi: | $$(dir $$@)
     745        $(APPEND) -t -n $@ \
     746                '<?xml version="1.0" ?>' \
     747                '<Include>'
     748ifdef VBOX_UNATTENDED_TEMPLATES
     749        $(APPEND) -n $@ \
     750                '  <Directory Id="dir_VBoxUnattendedTemplates" Name="UnattendedTemplates">' \
     751                '    <Component Id="cp_UnattendedTemplates" Guid="0571550d-aaa5-4723-c17b-5ddcc29f5686" Win64="$$(var.Property_Win64)">' \
     752                $@ $(foreach file,$(VBOX_UNATTENDED_TEMPLATES), \
     753                '      <File Id="$(file)" Name="$(file)" Source="$$(env.PATH_OUT)\bin\UnattendedTemplates\$(file)" />') \
     754                '    </Component>' \
     755                '  </Directory>'
     756endif
     757        $(APPEND) $@ '</Include>'
     758
    735759
    736760#
  • trunk/src/VBox/Installer/win/VBoxMergeApp.wxi

    r67067 r68057  
    423423    </Component>
    424424
    425 <?if $(env.VBOX_WITH_UNATTENDED) = "yes" ?>
    426     <!-- Unattended templates -->
    427     <Directory Id="dir_VBoxUnattendedTemplates" Name="unattended_templates">
    428         <Component Id="cp_UnattendedTemplates" Guid="8f89ec7e-ae83-490d-a293-c7ab276c5678" Win64="$(var.Property_Win64)">
    429             <!-- VBox unattended template files -->
    430             <File Id="file_debian_preseed.cfg" Name="debian_preseed.cfg"
    431                   Source="$(env.PATH_OUT)\bin\unattended_templates\debian_preseed.cfg" />
    432             <File Id="file_fedora_ks.cfg" Name="fedora_ks.cfg"
    433                   Source="$(env.PATH_OUT)\bin\unattended_templates\fedora_ks.cfg" />
    434             <File Id="file_ol_ks.cfg" Name="ol_ks.cfg"
    435                   Source="$(env.PATH_OUT)\bin\unattended_templates\ol_ks.cfg" />
    436             <File Id="file_redhat67_ks.cfg" Name="redhat67_ks.cfg"
    437                   Source="$(env.PATH_OUT)\bin\unattended_templates\redhat67_ks.cfg" />
    438             <File Id="file_ubuntu_preseed.cfg" Name="ubuntu_preseed.cfg"
    439                   Source="$(env.PATH_OUT)\bin\unattended_templates\ubuntu_preseed.cfg" />
    440             <File Id="file_win_nt6_unattended.xml" Name="win_nt6_unattended.xml"
    441                   Source="$(env.PATH_OUT)\bin\unattended_templates\win_nt6_unattended.xml" />
    442             <File Id="file_win_nt5_unattended.sif" Name="win_nt5_unattended.sif"
    443                   Source="$(env.PATH_OUT)\bin\unattended_templates\win_nt5_unattended.sif" />
    444         </Component>
    445     </Directory>
     425    <!-- Unattended installation template scripts if enabled -->
     426    <?include $(env.PATH_TARGET)\VBoxUnattendedTemplateComponent.wxi ?>
     427
    446428<?endif?>
    447429
Note: See TracChangeset for help on using the changeset viewer.

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