VirtualBox

Changeset 93157 in vbox for trunk


Ignore:
Timestamp:
Jan 9, 2022 1:30:49 PM (3 years ago)
Author:
vboxsync
Message:

Main/Unattended: Made the OS/2 detection code return S_OK instead of S_FALSE for ACP2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UnattendedImpl.cpp

    r93115 r93157  
    299299
    300300        RTVfsRelease(hVfsIso);
    301         hrc = E_NOTIMPL;
     301        if (hrc != S_FALSE) /** @todo Finish the linux and windows detection code. Only OS/2 returns S_OK right now. */
     302            hrc = E_NOTIMPL;
    302303    }
    303304    else if (RTErrInfoIsSet(&ErrInfo.Core))
     
    15021503    /** @todo language detection? */
    15031504
    1504     /** @todo Return true if we can actually do an unattended installation
    1505      *        using this ISO.  So far, we cannot from any OS/2 image. */
     1505    /*
     1506     * Only tested ACP2, so only return S_OK for it.
     1507     */
     1508    if (   *penmOsType == VBOXOSTYPE_OS2Warp45
     1509        && RTStrVersionCompare(mStrDetectedOSVersion.c_str(), "4.52") >= 0
     1510        && mStrDetectedOSFlavor.contains("Server", RTCString::CaseInsensitive))
     1511        return S_OK;
     1512
    15061513    return S_FALSE;
    15071514}
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