VirtualBox

Changeset 68192 in vbox for trunk/src


Ignore:
Timestamp:
Jul 31, 2017 11:30:21 AM (7 years ago)
Author:
vboxsync
Message:

VBoxManage unattended install: Disable Rincewind (first run (away) wizzard) for VMs configured for unattended installation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r68188 r68192  
    15931593    /*
    15941594     * Temporarily lock the machine to check whether it's running or not.
    1595      * Note! Not sure if this is the cheapest way of doing this...
     1595     * We take this opportunity to disable the first run wizard.
    15961596     */
    15971597    CHECK_ERROR2_RET(hrc, ptrMachine, LockMachine(a->session, LockType_Shared), RTEXITCODE_FAILURE);
     
    15991599        ComPtr<IConsole> ptrConsole;
    16001600        CHECK_ERROR2(hrc, a->session, COMGETTER(Console)(ptrConsole.asOutParam()));
     1601
     1602        if (   ptrConsole.isNull()
     1603            && SUCCEEDED(hrc)
     1604            && (   RTStrICmp(pszSessionType, "gui") == 0
     1605                || RTStrICmp(pszSessionType, "none") == 0))
     1606        {
     1607            ComPtr<IMachine> ptrSessonMachine;
     1608            CHECK_ERROR2(hrc, a->session, COMGETTER(Machine)(ptrSessonMachine.asOutParam()));
     1609            if (ptrSessonMachine.isNotNull())
     1610                CHECK_ERROR2(hrc, ptrSessonMachine, SetExtraData(Bstr("GUI/FirstRun").raw(), Bstr("0").raw()));
     1611        }
     1612
    16011613        a->session->UnlockMachine();
    16021614        if (FAILED(hrc))
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