VirtualBox

Changeset 81453 in vbox


Ignore:
Timestamp:
Oct 22, 2019 3:43:09 PM (5 years ago)
Author:
vboxsync
Message:

Main: Use correct names of files in 'guestcontrol updateadditions' command, bugref:8078

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r80833 r81453  
    23582358                                static struct { const char *pszDst, *pszIso; } const s_aCertFiles[] =
    23592359                                {
    2360                                     { "vbox.cer",           "CERT/VBOX.CER" },
    2361                                     { "vbox-sha1.cer",      "CERT/VBOX_SHA1.CER" },
    2362                                     { "vbox-sha256.cer",    "CERT/VBOX_SHA256.CER" },
    2363                                     { "vbox-sha256-r3.cer", "CERT/VBOX_SHA256_R3.CER" },
    2364                                     { "oracle-vbox.cer",    "CERT/ORACLE_VBOX.CER" },
     2360                                    { "vbox.cer",           "/CERT/VBOX.CER" },
     2361                                    { "vbox-sha1.cer",      "/CERT/VBOX-SHA1.CER" },
     2362                                    { "vbox-sha256.cer",    "/CERT/VBOX-SHA256.CER" },
     2363                                    { "vbox-sha256-r3.cer", "/CERT/VBOX-SHA256-R3.CER" },
     2364                                    { "oracle-vbox.cer",    "/CERT/ORACLE-VBOX.CER" },
    23652365                                };
    23662366                                uint32_t fCopyCertUtil = ISOFILE_FLAG_COPY_FROM_ISO;
     
    23852385                                    GuestProcessStartupInfo siCertUtilRem;
    23862386                                    siCertUtilRem.mName = "VirtualBox Certificate Utility, removing old VirtualBox certificates";
     2387                                    /* The argv[0] should contain full path to the executable module */
     2388                                    siCertUtilRem.mArguments.push_back(strUpdateDir + "VBoxCertUtil.exe");
    23872389                                    siCertUtilRem.mArguments.push_back(Utf8Str("remove-trusted-publisher"));
    23882390                                    siCertUtilRem.mArguments.push_back(Utf8Str("--root")); /* Add root certificate as well. */
     
    23982400                                    GuestProcessStartupInfo siCertUtilAdd;
    23992401                                    siCertUtilAdd.mName = "VirtualBox Certificate Utility, installing VirtualBox certificates";
     2402                                    /* The argv[0] should contain full path to the executable module */
     2403                                    siCertUtilAdd.mArguments.push_back(strUpdateDir + "VBoxCertUtil.exe");
    24002404                                    siCertUtilAdd.mArguments.push_back(Utf8Str("add-trusted-publisher"));
    24012405                                    siCertUtilAdd.mArguments.push_back(Utf8Str("--root")); /* Add root certificate as well. */
     
    24102414                            /* The installers in different flavors, as we don't know (and can't assume)
    24112415                             * the guest's bitness. */
    2412                             mFiles.push_back(ISOFile("VBOXWINDOWSADDITIONS_X86.EXE",
     2416                            mFiles.push_back(ISOFile("VBOXWINDOWSADDITIONS-X86.EXE",
    24132417                                                     strUpdateDir + "VBoxWindowsAdditions-x86.exe",
    24142418                                                     ISOFILE_FLAG_COPY_FROM_ISO));
    2415                             mFiles.push_back(ISOFile("VBOXWINDOWSADDITIONS_AMD64.EXE",
     2419                            mFiles.push_back(ISOFile("VBOXWINDOWSADDITIONS-AMD64.EXE",
    24162420                                                     strUpdateDir + "VBoxWindowsAdditions-amd64.exe",
    24172421                                                     ISOFILE_FLAG_COPY_FROM_ISO));
     
    24222426                             * setup can take quite a while, so be on the safe side. */
    24232427                            siInstaller.mTimeoutMS = 5 * 60 * 1000;
     2428
     2429                            /* The argv[0] should contain full path to the executable module */
     2430                            siInstaller.mArguments.push_back(strUpdateDir + "VBoxWindowsAdditions.exe");
    24242431                            siInstaller.mArguments.push_back(Utf8Str("/S")); /* We want to install in silent mode. */
    24252432                            siInstaller.mArguments.push_back(Utf8Str("/l")); /* ... and logging enabled. */
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