- Timestamp:
- Jul 24, 2017 12:45:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r68071 r68095 1288 1288 bool fSetImageIdx = false; 1289 1289 uint32_t idxImage = 0; 1290 const char *pszPostInstallCommand = NULL; 1290 const char *pszLocale = NULL; 1291 const char *pszCountry = NULL; 1292 const char *pszTimeZone = NULL; 1293 const char *pszProxy = NULL; 1291 1294 Utf8Str strAbsAuxiliaryBasePath; 1292 1295 const char *pszAuxiliaryBasePath = NULL; … … 1295 1298 Utf8Str strAbsPostInstallScriptTemplatePath; 1296 1299 const char *pszPostInstallScriptTemplatePath = NULL; 1300 const char *pszPostInstallCommand = NULL; 1301 const char *pszExtraInstallKernelParameters = NULL; 1297 1302 const char *pszSessionType = "headless"; 1298 1303 … … 1305 1310 static const RTGETOPTDEF s_aOptions[] = 1306 1311 { 1307 { "--iso", 'i', RTGETOPT_REQ_STRING }, 1308 { "--user", 'u', RTGETOPT_REQ_STRING }, 1309 { "--password", 'p', RTGETOPT_REQ_STRING }, 1310 { "--full-user-name", 'U', RTGETOPT_REQ_STRING }, 1311 { "--key", 'k', RTGETOPT_REQ_STRING }, 1312 { "--install-additions", 'A', RTGETOPT_REQ_NOTHING }, 1313 { "--no-install-additions", 'N', RTGETOPT_REQ_NOTHING }, 1314 { "--additions-iso", 'a', RTGETOPT_REQ_STRING }, 1315 { "--install-txs", 't', RTGETOPT_REQ_NOTHING }, 1316 { "--no-install-txs", 'T', RTGETOPT_REQ_NOTHING }, 1317 { "--validation-kit-iso", 'K', RTGETOPT_REQ_STRING }, 1318 { "--auxiliary-base-path", 'x', RTGETOPT_REQ_STRING }, 1319 { "--image-index", 'm', RTGETOPT_REQ_UINT32 }, 1320 { "--script-template", 'c', RTGETOPT_REQ_STRING }, 1321 { "--post-install-template", 'C', RTGETOPT_REQ_STRING }, 1322 { "--post-install-command", 'P', RTGETOPT_REQ_STRING }, 1323 { "--session-type", 'S', RTGETOPT_REQ_STRING }, 1312 { "--iso", 'i', RTGETOPT_REQ_STRING }, 1313 { "--user", 'u', RTGETOPT_REQ_STRING }, 1314 { "--password", 'p', RTGETOPT_REQ_STRING }, 1315 { "--full-user-name", 'U', RTGETOPT_REQ_STRING }, 1316 { "--key", 'k', RTGETOPT_REQ_STRING }, 1317 { "--install-additions", 'A', RTGETOPT_REQ_NOTHING }, 1318 { "--no-install-additions", 'N', RTGETOPT_REQ_NOTHING }, 1319 { "--additions-iso", 'a', RTGETOPT_REQ_STRING }, 1320 { "--install-txs", 't', RTGETOPT_REQ_NOTHING }, 1321 { "--no-install-txs", 'T', RTGETOPT_REQ_NOTHING }, 1322 { "--validation-kit-iso", 'K', RTGETOPT_REQ_STRING }, 1323 { "--locale", 'l', RTGETOPT_REQ_STRING }, 1324 { "--country", 'L', RTGETOPT_REQ_STRING }, 1325 { "--time-zone", 'z', RTGETOPT_REQ_STRING }, 1326 { "--proxy", 'y', RTGETOPT_REQ_STRING }, 1327 { "--auxiliary-base-path", 'x', RTGETOPT_REQ_STRING }, 1328 { "--image-index", 'm', RTGETOPT_REQ_UINT32 }, 1329 { "--script-template", 'c', RTGETOPT_REQ_STRING }, 1330 { "--post-install-template", 'C', RTGETOPT_REQ_STRING }, 1331 { "--post-install-command", 'P', RTGETOPT_REQ_STRING }, 1332 { "--extra-install-kernel-parameters", 'I', RTGETOPT_REQ_STRING }, 1333 { "--session-type", 'S', RTGETOPT_REQ_STRING }, 1324 1334 }; 1325 1335 … … 1391 1401 break; 1392 1402 1403 case 'l': // --locale 1404 pszLocale = ValueUnion.psz; 1405 break; 1406 1407 case 'L': // --country 1408 pszCountry = ValueUnion.psz; 1409 break; 1410 1411 case 'z': // --time-zone; 1412 pszTimeZone = ValueUnion.psz; 1413 break; 1414 1415 case 'y': // --proxy 1416 pszProxy = ValueUnion.psz; 1417 break; 1418 1393 1419 case 'x': // --auxiliary-base-path 1394 1420 vrc = RTPathAbsCxx(strAbsAuxiliaryBasePath, ValueUnion.psz); … … 1419 1445 case 'P': // --post-install-command. 1420 1446 pszPostInstallCommand = ValueUnion.psz; 1447 break; 1448 1449 case 'I': // --extra-install-kernel-parameters 1450 pszExtraInstallKernelParameters = ValueUnion.psz; 1421 1451 break; 1422 1452 … … 1505 1535 if (fInstallTxs >= 0) 1506 1536 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(InstallTestExecService)(fInstallTxs != (int)false)); 1537 if (pszLocale) 1538 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(Locale)(Bstr(pszLocale).raw())); 1539 if (pszCountry) 1540 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(Country)(Bstr(pszCountry).raw())); 1541 if (pszTimeZone) 1542 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(TimeZone)(Bstr(pszTimeZone).raw())); 1543 if (pszProxy) 1544 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(Proxy)(Bstr(pszProxy).raw())); 1507 1545 if (fSetImageIdx) 1508 1546 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(ImageIndex)(idxImage)); … … 1515 1553 if (pszAuxiliaryBasePath) 1516 1554 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(AuxiliaryBasePath)(Bstr(pszAuxiliaryBasePath).raw())); 1555 if (pszExtraInstallKernelParameters) 1556 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(ExtraInstallKernelParameters)(Bstr(pszExtraInstallKernelParameters).raw())); 1517 1557 1518 1558 CHECK_ERROR_BREAK(ptrUnattended,Prepare()); … … 1541 1581 } while (0) 1542 1582 1543 SHOW_STR_ATTR(IsoPath, "isoPath"); 1544 SHOW_STR_ATTR(User, "user"); 1545 SHOW_STR_ATTR(Password, "password"); 1546 SHOW_STR_ATTR(FullUserName, "fullUserName"); 1547 SHOW_STR_ATTR(ProductKey, "productKey"); 1548 SHOW_STR_ATTR(AdditionsIsoPath, "additionsIsoPath"); 1549 SHOW_ATTR( InstallGuestAdditions, "installGuestAdditions", BOOL, "%RTbool"); 1550 SHOW_STR_ATTR(ValidationKitIsoPath, "validationKitIsoPath"); 1551 SHOW_ATTR( InstallTestExecService, "installTestExecService", BOOL, "%RTbool"); 1552 SHOW_STR_ATTR(AuxiliaryBasePath, "auxiliaryBasePath"); 1553 SHOW_ATTR( ImageIndex, "imageIndex", ULONG, "%u"); 1554 SHOW_STR_ATTR(ScriptTemplatePath, "scriptTemplatePath"); 1583 SHOW_STR_ATTR(IsoPath, "isoPath"); 1584 SHOW_STR_ATTR(User, "user"); 1585 SHOW_STR_ATTR(Password, "password"); 1586 SHOW_STR_ATTR(FullUserName, "fullUserName"); 1587 SHOW_STR_ATTR(ProductKey, "productKey"); 1588 SHOW_STR_ATTR(AdditionsIsoPath, "additionsIsoPath"); 1589 SHOW_ATTR( InstallGuestAdditions, "installGuestAdditions", BOOL, "%RTbool"); 1590 SHOW_STR_ATTR(ValidationKitIsoPath, "validationKitIsoPath"); 1591 SHOW_ATTR( InstallTestExecService, "installTestExecService", BOOL, "%RTbool"); 1592 SHOW_STR_ATTR(Locale, "locale"); 1593 SHOW_STR_ATTR(Country, "country"); 1594 SHOW_STR_ATTR(TimeZone, "timeZone"); 1595 SHOW_STR_ATTR(Proxy, "proxy"); 1596 SHOW_STR_ATTR(AuxiliaryBasePath, "auxiliaryBasePath"); 1597 SHOW_ATTR( ImageIndex, "imageIndex", ULONG, "%u"); 1598 SHOW_STR_ATTR(ScriptTemplatePath, "scriptTemplatePath"); 1555 1599 SHOW_STR_ATTR(PostInstallScriptTemplatePath, "postInstallScriptTemplatePath"); 1556 SHOW_STR_ATTR(PostInstallCommand, "postInstallCommand"); 1600 SHOW_STR_ATTR(PostInstallCommand, "postInstallCommand"); 1601 SHOW_STR_ATTR(ExtraInstallKernelParameters, "extraInstallKernelParameters"); 1602 SHOW_STR_ATTR(DetectedOSTypeId, "detectedOSTypeId"); 1603 SHOW_STR_ATTR(DetectedOSVersion, "detectedOSVersion"); 1604 SHOW_STR_ATTR(DetectedOSFlavor, "detectedOSFlavor"); 1605 SHOW_STR_ATTR(DetectedOSHints, "detectedOSHints"); 1557 1606 1558 1607 #undef SHOW_STR_ATTR
Note:
See TracChangeset
for help on using the changeset viewer.