VirtualBox

Changeset 94075 in vbox for trunk


Ignore:
Timestamp:
Mar 3, 2022 1:59:09 PM (3 years ago)
Author:
vboxsync
Message:

Main/Unattended: ​bugref:9781. Adding a property to IUnattended to indicate if unattended install is possible.

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r93901 r94075  
    46764676  <interface
    46774677    name="IUnattended" extends="$unknown"
    4678     uuid="6f89464f-7193-426c-a41f-522e4e537fa0"
     4678    uuid="6f89464f-7193-426c-a4df-592e4e537fa0"
    46794679    wsmap="managed"
    46804680    reservedMethods="4" reservedAttributes="16"
     
    50215021      </desc>
    50225022    </attribute>
     5023
    50235024    <attribute name="detectedImageIndices" type="unsigned long" readonly="yes" safearray="yes">
    50245025      <desc>
     
    50265027        is parallel to <link to="IUnattended::detectedImageNames"/>. <link to="IUnattended::imageIndex"/>
    50275028        should be set to one of these indices for Vista and later Windows ISOs.
     5029      </desc>
     5030    </attribute>
     5031
     5032    <attribute name="isUnattendedInstallSupported" type="boolean" readonly="yes">
     5033      <desc>
     5034        Checks the detected OS type and version against a set of rules and returns
     5035        whether unattended install is supported or not. Note that failing detecting
     5036        OS type from the ISO causes this attribute to be false by default.
    50285037      </desc>
    50295038    </attribute>
  • trunk/src/VBox/Main/include/UnattendedImpl.h

    r93587 r94075  
    229229    HRESULT getDetectedImageNames(std::vector<com::Utf8Str> &aDetectedImageNames);
    230230    HRESULT getDetectedImageIndices(std::vector<ULONG> &aDetectedImageIndices);
     231    HRESULT getIsUnattendedInstallSupported(BOOL *aIsUnattendedInstallSupported);
    231232    //internal functions
    232233
  • trunk/src/VBox/Main/src-server/UnattendedImpl.cpp

    r93589 r94075  
    35613561}
    35623562
     3563HRESULT Unattended::getIsUnattendedInstallSupported(BOOL *aIsUnattendedInstallSupported)
     3564{
     3565    *aIsUnattendedInstallSupported = true;
     3566    return S_OK;
     3567}
     3568
    35633569/*
    35643570 * Getters that the installer and script classes can use.
     
    38223828    return fRet;
    38233829}
    3824 
  • trunk/src/VBox/Main/testcase/tstUnattendedScript.cpp

    r93535 r94075  
    451451}
    452452
     453HRESULT Unattended::getIsUnattendedInstallSupported(BOOL *aIsUnattendedInstallSupported)
     454{
     455    RT_NOREF(aIsUnattendedInstallSupported);
     456    return E_NOTIMPL;
     457}
     458
    453459/*
    454460 * Getters that the installer and script classes can use.
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