- Timestamp:
- Jan 18, 2022 10:38:13 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
r93333 r93334 184 184 * @param pszImage Absolute path of executable to run. 185 185 * @param papszArgs Pointer to command line arguments to use for calling the executable. 186 * @param cArgs Number of command line arguments in \a papszArgs.187 186 */ 188 static int procRun(MSIHANDLE hModule, const char *pszImage, const char * const *papszArgs, size_t cArgs) 189 { 190 RT_NOREF(cArgs); 191 192 RTPROCESS Process; 193 RT_ZERO(Process); 194 195 uint32_t fProcess = 0; 196 #ifndef DEBUG 197 fProcess |= RTPROC_FLAGS_HIDDEN; 187 static int procRun(MSIHANDLE hModule, const char *pszImage, const char * const *papszArgs) 188 { 189 #ifdef DEBUG 190 uint32_t const fProcess = 0; 191 #else 192 uint32_t const fProcess = RTPROC_FLAGS_HIDDEN; 198 193 #endif 199 194 RTPROCESS Process = NIL_RTPROCESS; 200 195 int rc = RTProcCreate(pszImage, papszArgs, RTENV_DEFAULT, fProcess, &Process); 201 196 if (RT_SUCCESS(rc)) … … 352 347 const char *papszArgs[] = { pcszPythonExe, "-c", "import win32api", NULL}; 353 348 354 int rc = procRun(hModule, pcszPythonExe, papszArgs , RT_ELEMENTS(papszArgs));349 int rc = procRun(hModule, pcszPythonExe, papszArgs); 355 350 if (RT_SUCCESS(rc)) 356 351 logStringF(hModule, "checkPythonDependencies: win32api found\n"); … … 477 472 const char *papszArgs[] = { pszPythonExe, "vboxapisetup.py", "install", NULL}; 478 473 479 rc = procRun(hModule, pszPythonExe, papszArgs , RT_ELEMENTS(papszArgs));474 rc = procRun(hModule, pszPythonExe, papszArgs); 480 475 if (RT_SUCCESS(rc)) 481 476 logStringF(hModule, "InstallPythonAPI: Installation of vboxapisetup.py successful\n"); … … 503 498 const char *papszArgs[] = { pszPythonExe, "-c", "from vboxapi import VirtualBoxManager", NULL}; 504 499 505 rc = procRun(hModule, pszPythonExe, papszArgs , RT_ELEMENTS(papszArgs));500 rc = procRun(hModule, pszPythonExe, papszArgs); 506 501 if (RT_SUCCESS(rc)) 507 502 logStringF(hModule, "InstallPythonAPI: VBox API looks good.\n");
Note:
See TracChangeset
for help on using the changeset viewer.