VirtualBox

Changeset 37016 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 9, 2011 5:48:43 PM (14 years ago)
Author:
vboxsync
Message:

Added VBOX_VERSION_STRING_RAW to only handle/store the pure VBox version without any suffixes. Fixes bug #8844.

Location:
trunk/src/VBox
Files:
8 edited

Legend:

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

    r35719 r37016  
    55
    66#
    7 # Copyright (C) 2006-2007 Oracle Corporation
     7# Copyright (C) 2006-2011 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    172172        -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
    173173        -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
     174        -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
    174175        -E 'VBOX_VERSION_MAJOR=$(VBOX_VERSION_MAJOR)' \
    175176        -E 'VBOX_VERSION_MINOR=$(VBOX_VERSION_MINOR)' \
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r36571 r37016  
    675675
    676676  ; Write a registry key with version and installation path for later lookup
    677   WriteRegStr HKLM "${PRODUCT_INSTALL_KEY}" "Version" "$%VBOX_VERSION_STRING%"
     677  WriteRegStr HKLM "${PRODUCT_INSTALL_KEY}" "Version" "$%VBOX_VERSION_STRING_RAW%"
     678  WriteRegStr HKLM "${PRODUCT_INSTALL_KEY}" "VersionExt" "$%VBOX_VERSION_STRING%"
    678679  WriteRegStr HKLM "${PRODUCT_INSTALL_KEY}" "Revision" "$%VBOX_SVN_REV%"
    679680  WriteRegStr HKLM "${PRODUCT_INSTALL_KEY}" "InstallDir" "$INSTDIR"
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibAdditions.cpp

    r35907 r37016  
    55
    66/*
    7  * Copyright (C) 2007-2010 Oracle Corporation
     7 * Copyright (C) 2007-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4343    if (ppszVer)
    4444    {
    45         *ppszVer = RTStrDup(VBOX_VERSION_STRING);
     45        *ppszVer = RTStrDup(VBOX_VERSION_STRING_RAW);
    4646        if (!*ppszVer)
    4747            return VERR_NO_STR_MEMORY;
  • trunk/src/VBox/Installer/win/Makefile.kmk

    r35166 r37016  
    55
    66#
    7 # Copyright (C) 2006-2010 Oracle Corporation
     7# Copyright (C) 2006-2011 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    356356                -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
    357357                -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
     358                -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
    358359                -E 'VBOX_VERSION_MAJOR_INST=$(VBOX_VERSION_MAJOR)' \
    359360                -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
     
    427428#
    428429$(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi: $(PATH_SUB_CURRENT)/VBoxKey.wxi $(VBOX_VERSION_STAMP) | $$(dir $$@)
    429         $(SED) -e 's/%VER%/$(VBOX_VERSION_STRING)/' --output $@ $<
     430        $(SED) -e 's/%VER%/$(VBOX_VERSION_STRING_RAW)/' --output $@ $<
     431        $(SED) -e 's/%VER_EXT%/$(VBOX_VERSION_STRING)/' --output $@ $<
    430432
    431433#
  • trunk/src/VBox/Installer/win/VBoxKey.wxi

    r31659 r37016  
    11<Include>
    22    <Registry Root="HKLM" Key="$(var.Property_RegKey)" Name="Version" Value="%VER%" Type="string" />
     3    <Registry Root="HKLM" Key="$(var.Property_RegKey)" Name="VersionExt" Value="%VER_EXT%" Type="string" />
    34    <Registry Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir" Value="[INSTALLDIR]" Type="string" />
    45</Include>
  • trunk/src/VBox/Installer/win/VirtualBox.wxs

    r36715 r37016  
    33    VirtualBox Windows Installation Script (WiX)
    44
    5     Copyright (C) 2006-2010 Oracle Corporation
     5    Copyright (C) 2006-2011 Oracle Corporation
    66
    77    This file is part of VirtualBox Open Source Edition (OSE), as
     
    1515
    1616<?define Property_RegKey ="Software\$(env.VBOX_VENDOR_SHORT)\VirtualBox" ?>
    17 <?define Property_Version = "$(env.VBOX_VERSION_STRING)" ?>
     17<?define Property_Version = "$(env.VBOX_VERSION_STRING_RAW)" ?>
     18<?define Property_VersionExt = "$(env.VBOX_VERSION_STRING)" ?>
    1819<?define Property_Upgrade = "yes" ?>
    1920
     
    7475        <!-- Package GUIDs must be different for each package. The "???" directs WiX to create one. -->
    7576        <Package Id="????????-????-????-????-????????????" Keywords="Installer"
    76                  Description="$(env.VBOX_PRODUCT) $(var.Property_Version) installation package"
     77                 Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) installation package"
    7778                 Comments="$(env.VBOX_PRODUCT) installation package"
    7879                 Manufacturer="$(env.VBOX_VENDOR)"
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r36991 r37016  
    1010
    1111/*
    12  * Copyright (C) 2006-2010 Oracle Corporation
     12 * Copyright (C) 2006-2011 Oracle Corporation
    1313 *
    1414 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    46754675         * will override them.
    46764676         */
    4677         /* Set the VBox version string as a guest property */
     4677        /* Set the raw VBox version string as a guest property. Used for host/guest
     4678         * version comparison. */
    46784679        configSetProperty(pConsole->m_pVMMDev, "/VirtualBox/HostInfo/VBoxVer",
     4680                          VBOX_VERSION_STRING_RAW, "TRANSIENT, RDONLYGUEST");
     4681        /* Set the full VBox version string as a guest property. Can contain vendor-specific
     4682         * information/branding and/or pre-release tags. */
     4683        configSetProperty(pConsole->m_pVMMDev, "/VirtualBox/HostInfo/VBoxVerExt",
    46794684                          VBOX_VERSION_STRING, "TRANSIENT, RDONLYGUEST");
    46804685        /* Set the VBox SVN revision as a guest property */
  • trunk/src/VBox/Runtime/testcase/tstRTStrVersion.cpp

    r35076 r37016  
    55
    66/*
    7  * Copyright (C) 2009 Oracle Corporation
     7 * Copyright (C) 2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    9797        { "3.1.0_BETA2-r12345",         "3.1.0_BETA1-r12345",                1 },
    9898        { "3.1.0_BETA2-r12345",         "3.1.0_BETA999-r12345",             -1 },
    99         { "3.1.0_BETA2",                "3.1.0_ABC",                        -1 }, /* ABC isn't indicating a prerelease, BETA does */
     99        { "3.1.0_BETA2",                "3.1.0_ABC",                        -1 }, /* ABC isn't indicating a prerelease, BETA does. */
    100100        { "3.1.0_BETA",                 "3.1.0_ATEB",                       -1 },
    101101        { "4.0.0_ALPHAr68482",          "4.0.0_ALPHAr68483",                -1 },
     
    106106        { "4.0.0_ALPHAr68483",          "4.0.0_BETA2r68783",                -1 },
    107107        { "4.0.0_ALPHAr68483",          "4.0.0_BETA2r68784",                -1 },
     108        { "4.0.6",                      "4.0.6_Ubuntu",                     -1 }, /* Without stripped guest OS string (Ubuntu). */
     109        { "4.0.6_Windows",              "4.0.6",                             1 }  /* Without stripped guest OS string (Windows). */
    108110    };
    109111    for (unsigned iTest = 0; iTest < RT_ELEMENTS(aTests); iTest++)
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