VirtualBox

Changeset 67654 in vbox for trunk/src


Ignore:
Timestamp:
Jun 27, 2017 6:23:33 PM (8 years ago)
Author:
vboxsync
Message:

IUnattended: Some refactoring, probably not quite working right yet.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r67652 r67654  
    12811281    Bstr bstrMachineName;
    12821282    Bstr bstrSettingsFile;
    1283     unsigned short imageIndex = 1; // applied only to Windows installation
     1283    ULONG idxImage = 1; // applied only to Windows installation
    12841284    Bstr bstrSessionType = "headless";
    12851285
     
    12981298        { "--additions-iso-path",   'a', RTGETOPT_REQ_STRING },
    12991299        { "--auxiliary-base-path",  'x', RTGETOPT_REQ_STRING },
    1300         { "--image-index",          'm', RTGETOPT_REQ_UINT16 },
     1300        { "--image-index",          'm', RTGETOPT_REQ_UINT32 },
    13011301        { "--settings-file",        's', RTGETOPT_REQ_STRING },
    13021302        { "--session-type",         'S', RTGETOPT_REQ_STRING },
     
    13501350
    13511351            case 'm':   // --image-index
    1352                 imageIndex = ValueUnion.u16;
     1352                idxImage = ValueUnion.u32;
    13531353                break;
    13541354
     
    14341434        CHECK_ERROR_BREAK(unAttended, COMSETTER(AdditionsIsoPath)(bstrAdditionsIsoPath.raw()));
    14351435        CHECK_ERROR_BREAK(unAttended, COMSETTER(InstallGuestAdditions)(bstrAdditionsIsoPath.isNotEmpty()));
    1436         CHECK_ERROR_BREAK(unAttended, COMSETTER(ImageIndex)(imageIndex));
     1436        CHECK_ERROR_BREAK(unAttended, COMSETTER(ImageIndex)(idxImage));
    14371437        CHECK_ERROR_BREAK(unAttended, COMSETTER(AuxiliaryBasePath)(bstrAuxiliaryBasePath.raw()));
    14381438
     
    15071507        CHECK_ERROR_BREAK(unAttended, COMGETTER(ProductKey)(bstrProductKey.asOutParam()));
    15081508        CHECK_ERROR_BREAK(unAttended, COMGETTER(AuxiliaryBasePath)(bstrAuxiliaryBasePath.asOutParam()));
    1509         imageIndex = 0;
    1510         CHECK_ERROR_BREAK(unAttended, COMGETTER(ImageIndex)(&imageIndex));
     1509        idxImage = 0;
     1510        CHECK_ERROR_BREAK(unAttended, COMGETTER(ImageIndex)(&idxImage));
    15111511        RTPrintf("Got values:\n"
    15121512                 " user:                  %ls\n"
     
    15211521                 bstrPassword.raw(),
    15221522                 bstrProductKey.raw(),
    1523                  imageIndex,
     1523                 idxImage,
    15241524                 bstrIsoPath.raw(),
    15251525                 bstrAdditionsIsoPath.raw(),
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r67652 r67654  
    38383838    </attribute>
    38393839
    3840     <attribute name="imageIndex" type="unsigned short">
     3840    <attribute name="imageIndex" type="unsigned long">
    38413841      <desc>
    38423842        The image index on installation CD/DVD used to install.
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