- Timestamp:
- Jul 28, 2017 9:13:29 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r68146 r68151 1461 1461 break; 1462 1462 case 'a': // --additions-iso 1463 if (!ValueUnion.psz) 1464 return errorSyntax("No Additions ISO path specified"); 1463 1465 vrc = RTPathAbs(ValueUnion.psz, szAbsPath, sizeof(szAbsPath)); 1464 1466 if (RT_FAILURE(vrc)) … … 1555 1557 if (ptrMachine.isNull()) 1556 1558 return errorSyntax("Missing VM name/UUID"); 1559 1560 { 1561 Bstr bstrString; 1562 hrc = ptrUnattended->COMGETTER(AdditionsIsoPath)(bstrString.asOutParam()); 1563 if (SUCCEEDED(hrc)) 1564 { 1565 BOOL fGA = false; 1566 hrc = ptrUnattended->COMGETTER(InstallGuestAdditions)(&fGA); 1567 if (SUCCEEDED(hrc)) 1568 { 1569 if (fGA == false && !bstrString.isEmpty()) 1570 return errorSyntax("Parameter --additions-iso doesn't make sense without " 1571 "parameter --install-additions"); 1572 } 1573 else 1574 return RTEXITCODE_FAILURE; 1575 } 1576 else 1577 return RTEXITCODE_FAILURE; 1578 } 1557 1579 1558 1580 /*
Note:
See TracChangeset
for help on using the changeset viewer.