secureswitools/swisistools/source/interpretsis/main.cpp
changeset 33 8110bf1194d1
parent 25 98b66e4fb0be
child 50 c6e8afe0ba85
--- a/secureswitools/swisistools/source/interpretsis/main.cpp	Mon May 03 12:38:03 2010 +0300
+++ b/secureswitools/swisistools/source/interpretsis/main.cpp	Fri May 14 15:58:48 2010 +0300
@@ -67,26 +67,30 @@
 		CInterpretSIS interpretSis(paramList);
 		
 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
-		if ( paramPtr->IsFlagSet(CParameterList::EFlagsResourceFilePathSet)) 
+		//Parsing Preprovisioned Resource file in not done if RegistryVersionExists
+		if(!paramPtr->RegistryVersionExists())
 		{
-			ParseResourceDir(paramPtr, interpretSis);
-
-			if (NULL != logFile)
+			if ( paramPtr->IsFlagSet(CParameterList::EFlagsResourceFilePathSet)) 
 			{
-				bool val = logFile->is_open();
-				logFile->close();
-				delete logFile;
+				ParseResourceDir(paramPtr, interpretSis);
+
+				if (NULL != logFile)
+				{
+					bool val = logFile->is_open();
+					logFile->close();
+					delete logFile;
+				}
+				return result;
 			}
-			return result;
-		}
-		else
-		{
-			ParseResourceDir(paramPtr, interpretSis);
+			else
+			{
+				ParseResourceDir(paramPtr, interpretSis);
+			}
 		}
 #endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK		
 	
 		result = interpretSis.Install();
-		
+
 		// Uninstall the sis files
 		interpretSis.Uninstall();
 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK