- Timestamp:
- Oct 27, 2010 4:05:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ExtPackManagerImpl.cpp
r33521 r33523 32 32 #include <iprt/process.h> 33 33 #include <iprt/string.h> 34 #include <iprt/cpp/xml.h> 34 35 35 36 #include <VBox/com/array.h> … … 48 49 */ 49 50 #if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2) 50 # define VBOX_EXTPACK_HELPER_NAME "VBoxExtPackHelper.exe"51 # define VBOX_EXTPACK_HELPER_NAME "VBoxExtPackHelper.exe" 51 52 #else 52 # define VBOX_EXTPACK_HELPER_NAME "VBoxExtPackHelper"53 # define VBOX_EXTPACK_HELPER_NAME "VBoxExtPackHelper" 53 54 #endif 55 /** @name VBOX_EXTPACK_DESCRIPTION_NAME 56 * The name of the description file in an extension pack. */ 57 #define VBOX_EXTPACK_DESCRIPTION_NAME "ExtPack.xml" 54 58 55 59 … … 143 147 * Read the description file. 144 148 */ 145 149 char szFile[RTPATH_MAX]; 150 vrc = RTPathJoin(szFile, sizeof(szFile), szDir, VBOX_EXTPACK_DESCRIPTION_NAME); 151 AssertLogRelRCReturn(vrc, E_FAIL); 152 153 xml::Document Doc; 154 xml::XmlFileParser Parser; 155 try 156 { 157 Parser.read(szFile, Doc); 158 xml::ElementNode *pRoot = Doc.getRootElement(); 159 NOREF(pRoot); 160 } 161 catch (xml::XmlError Err) 162 { 163 m->fUsable = true; 164 m->strWhyUnusable = tr(""); 165 } 146 166 147 167 return S_OK; … … 548 568 * the don't-do-that variety. 549 569 */ 570 const char *pszForcedOpt = a_fForcedRemoval ? "--forced" : NULL; 550 571 hrc = runSetUidToRootHelper("uninstall", 551 572 "--basepath", m->strBasePath.c_str(), 552 573 "--name", strName.c_str(), 574 pszForcedOpt, /* Last as it may be NULL. */ 553 575 NULL); 554 576 if (SUCCEEDED(hrc))
Note:
See TracChangeset
for help on using the changeset viewer.