VirtualBox

Changeset 37987 in vbox for trunk


Ignore:
Timestamp:
Jul 18, 2011 8:11:16 AM (13 years ago)
Author:
vboxsync
Message:

VBoxStub: Initialize extended common controls and use a manifest to provide modern looking common controls to Windows host installers.

Location:
trunk/src/VBox/Installer/win/Stub
Files:
1 added
4 edited

Legend:

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

    r35380 r37987  
    4343# The icon location is configurable.
    4444VBoxStub.rc_INCS += $(VBoxStub_0_OUTDIR)
    45 VBoxStub.rc_DEPS += $(VBoxStub_0_OUTDIR)/VBoxStub-icon.rc
    46 VBoxStub.rc_CLEAN = $(VBoxStub_0_OUTDIR)/VBoxStub-icon.rc
     45VBoxStub.rc_DEPS += \
     46        $(VBoxStub_0_OUTDIR)/VBoxStub-icon.rc \
     47        $(VBoxStub_0_OUTDIR)/VBoxStub-manifest.rc
     48VBoxStub.rc_CLEAN = \
     49        $(VBoxStub_0_OUTDIR)/VBoxStub-icon.rc \
     50        $(VBoxStub_0_OUTDIR)/VBoxStub-manifest.rc
    4751
    4852# Icon include file.
     
    5054        $(APPEND) -t $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
    5155
     56# Manifest.
     57VBOX_STUB_MANIFEST_FILE := $(PATH_SUB_CURRENT)/VBoxStub.manifest
     58$$(VBoxStub_0_OUTDIR)/VBoxStub-manifest.rc: $(VBOX_STUB_MANIFEST_FILE) $(MAKEFILE_CURRENT) | $$(dir $$@)
     59        $(APPEND) -t $@ 'APP_MANIFEST RT_MANIFEST "$(subst /,\\,$(VBOX_STUB_MANIFEST_FILE))"'
     60
    5261endif # x86 only
    5362
  • trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp

    r34206 r37987  
    2020*******************************************************************************/
    2121#include <windows.h>
     22#include <commctrl.h>
    2223#include <lmerr.h>
    2324#include <msiquery.h>
     
    568569                            AssertMsgBreak(uLogLevel == ERROR_SUCCESS, ("Could not set installer logging level!\n"));
    569570                        }
     571
     572                        /* Initialize the common controls (extended version). This is necessary to
     573                         * run the actual .MSI installers with the new fancy visual control
     574                         * styles (XP+). Also, an integrated manifest is required. */
     575                        INITCOMMONCONTROLSEX ccEx;
     576                        ccEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
     577                        InitCommonControlsEx(&ccEx); /* Ignore failure. */
    570578
    571579                        UINT uStatus = ::MsiInstallProductA(pszTempFile, szMSIArgs);
  • trunk/src/VBox/Installer/win/Stub/VBoxStub.rc

    r32394 r37987  
    55
    66/*
    7  * Copyright (C) 2009-2010 Oracle Corporation
     7 * Copyright (C) 2009-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    5252
    5353#include "VBoxStub-icon.rc"
     54#include "VBoxStub-manifest.rc"
    5455
  • trunk/src/VBox/Installer/win/Stub/resource.h

    r31667 r37987  
    1515 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1616 */
     17#define IDI_VIRTUALBOX 101
    1718
    18 #define IDI_VIRTUALBOX 101
     19#define RT_MANIFEST 24
     20#define APP_MANIFEST 1
     21
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