VirtualBox

Changeset 96620 in vbox


Ignore:
Timestamp:
Sep 6, 2022 9:13:52 PM (2 years ago)
Author:
vboxsync
Message:

VBoxManage: Display the IsUnattendedInstallSupported value at the end of a 'detect', as it's part of the result set. bugref:9781

File:
1 edited

Legend:

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

    r96407 r96620  
    20402040    CHECK_ERROR2_RET(hrc, ptrUnattended, COMGETTER(DetectedImageIndices)(ComSafeArrayAsOutParam(aImageIndices)), RTEXITCODE_FAILURE);
    20412041    Assert(aImageNames.size() == aImageIndices.size());
     2042    BOOL fInstallSupported = FALSE;
     2043    CHECK_ERROR2_RET(hrc, ptrUnattended, COMGETTER(IsUnattendedInstallSupported)(&fInstallSupported), RTEXITCODE_FAILURE);
    20422044
    20432045    if (fMachineReadable)
     
    20532055            outputMachineReadableStringWithFmtName(&bstrName, false, "ImageIndex%u", aImageIndices[i]);
    20542056        }
     2057        outputMachineReadableBool("IsInstallSupported", &fInstallSupported);
    20552058    }
    20562059    else
     
    20692072        for (size_t i = 0; i < aImageNames.size(); i++)
    20702073            RTPrintf("    Image #%-3u   = %ls\n", aImageIndices[i], aImageNames[i]);
     2074        if (fInstallSupported)
     2075            RTPrintf(Misc::tr("    Unattended installation supported = yes\n"));
     2076        else
     2077            RTPrintf(Misc::tr("    Unattended installation supported = no\n"));
    20712078    }
    20722079
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