119 << "\t\t[-s [sisfile | dir] [+drive [+mcard | +mcardnr | +nonremovablepkg | +mcardalone | +mcardalonenr] [+sucert]]] [-s ...]\n" |
119 << "\t\t[-s [sisfile | dir] [+drive [+mcard | +mcardnr | +nonremovablepkg | +mcardalone | +mcardalonenr] [+sucert]]] [-s ...]\n" |
120 << "\t\t[-p param_file] [-d drive] [-r rofsbuild_log_file1,rofsbuild_log_file2,...]\n" |
120 << "\t\t[-p param_file] [-d drive] [-r rofsbuild_log_file1,rofsbuild_log_file2,...]\n" |
121 << "\t\t[-t romstubdir] [-n language_code] [-i config_file] \n" |
121 << "\t\t[-t romstubdir] [-n language_code] [-i config_file] \n" |
122 << "\t\t[-x pkgUID[,pkgUID2,...]] [-w [off | error | warn | info]] [-l logfile]\n\n" |
122 << "\t\t[-x pkgUID[,pkgUID2,...]] [-w [off | error | warn | info]] [-l logfile]\n\n" |
123 << "Where:\t-h\t\tDisplays help\n" |
123 << "Where:\t-h\t\tDisplays help\n" |
|
124 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
125 << "\t-a\t\tThe path representing the location of Resource files\n" |
|
126 << "\t \t\tSpecifying the ROM Drive (-z) is mandatory.\n" |
|
127 << "\t \t\tLocalize resource file is read from (Rom_drive\\path_specified_in_resource_file)\n" |
|
128 #endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
124 << "\t-c\t\tThe directory representing the system drive on the device\n" |
129 << "\t-c\t\tThe directory representing the system drive on the device\n" |
125 << "\t-d\t\tThe system drive letter [default to 'C']\n" |
130 << "\t-d\t\tThe system drive letter [default to 'C']\n" |
126 << "\t-e\t\tDisable eclipsing and SID checks using Z drive \n" |
131 << "\t-e\t\tDisable eclipsing and SID checks using Z drive \n" |
127 << "\t \t\t-z or -r not required when this option used \n" |
132 << "\t \t\t-z or -r not required when this option used \n" |
128 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
133 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
168 << "\tsucert\t\tTo indicate that the SIS file has been signed with a SU certificate\n\n"; |
173 << "\tsucert\t\tTo indicate that the SIS file has been signed with a SU certificate\n\n"; |
169 } |
174 } |
170 |
175 |
171 void CCommandParser::DisplayVersion() |
176 void CCommandParser::DisplayVersion() |
172 { |
177 { |
173 std::cout << "\nINTERPRETSIS " << " Version 2.2.0 ." << std::endl; |
178 std::cout << "\nINTERPRETSIS " << " Version 3.0.0 ." << std::endl; |
174 std::cout << "Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.\n " << std::endl; |
179 std::cout << "Copyright (c) 2009 Symbian Software Ltd. All rights reserved.\n " << std::endl; |
175 } |
180 } |
176 |
181 |
177 |
182 |
178 CParameterList* CCommandParser::ParseOptions(int argc, const char**argv) |
183 CParameterList* CCommandParser::ParseOptions(int argc, const char**argv) |
179 { |
184 { |
206 bool err = false; |
211 bool err = false; |
207 const char* optPtr = *argv; |
212 const char* optPtr = *argv; |
208 |
213 |
209 switch (toupper(*++optPtr)) |
214 switch (toupper(*++optPtr)) |
210 { |
215 { |
211 case 'C': |
216 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
217 case 'A': |
212 { |
218 { |
213 if (argc <= 1) |
219 if (argc <= 1) |
214 throw CCommandParser::ECmdLineNoDirArgument; |
220 throw CCommandParser::ECmdLineNoDirArgument; |
215 |
221 |
216 --argc; |
222 --argc; |
|
223 aParamList->SetResourceFilePath(*(++argv)); |
|
224 break; |
|
225 } |
|
226 #endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
227 case 'C': |
|
228 { |
|
229 if (argc <= 1) |
|
230 throw CCommandParser::ECmdLineNoDirArgument; |
|
231 |
|
232 --argc; |
217 aParamList->SetSystemDrive(*(++argv)); |
233 aParamList->SetSystemDrive(*(++argv)); |
218 break; |
234 break; |
|
235 |
219 } |
236 } |
220 case 'D': |
237 case 'D': |
221 { |
238 { |
222 --argc; |
239 --argc; |
223 wchar_t buf[2048]; |
240 wchar_t buf[2048]; |
224 ConvertMultiByteToWideChar(*++argv,-1, buf, 2048); |
241 ConvertMultiByteToWideChar(*++argv,-1, buf, 2048); |
225 aParamList->SetSystemDriveLetter(tolower(buf[0])); |
242 aParamList->SetSystemDriveLetter(tolower(buf[0])); |
226 break; |
243 break; |
227 } |
244 } |
228 case 'E': |
245 case 'E': |
229 { |
246 { |
230 aParamList->SetFlag(CParameterList::EFlagsDisableZDriveChecksSet); |
247 aParamList->SetFlag(CParameterList::EFlagsDisableZDriveChecksSet); |
231 break; |
248 break; |
232 } |
249 } |