installationservices/swi/source/sisregistry/server_legacy/sisregistryserversession.cpp
branchRCL_3
changeset 70 e8965914fac7
parent 66 8b7f4e561641
equal deleted inserted replaced
66:8b7f4e561641 70:e8965914fac7
  1756         
  1756         
  1757 	    if(!SisRegistryUtil::FileExistsL(iFs, firstBootMarkerFilePath))
  1757 	    if(!SisRegistryUtil::FileExistsL(iFs, firstBootMarkerFilePath))
  1758 	        {
  1758 	        {
  1759 	        // First boot detected. Add the first boot marker file as well as the format marker on the drive.
  1759 	        // First boot detected. Add the first boot marker file as well as the format marker on the drive.
  1760             SisRegistryUtil::CreateFileWithAttributesL(iFs, firstBootMarkerFilePath);
  1760             SisRegistryUtil::CreateFileWithAttributesL(iFs, firstBootMarkerFilePath);
  1761             SisRegistryUtil::CreateFileWithAttributesL(iFs, formatMarkerPath, fileAttributes);
  1761 			TRAPD(err,SisRegistryUtil::CreateFileWithAttributesL(iFs, formatMarkerPath, fileAttributes);)
       
  1762 			if (err != KErrNone && err != KErrAlreadyExists)
       
  1763 				{
       
  1764 				User::LeaveIfError(err);
       
  1765 				}            
  1762 	        }
  1766 	        }
  1763 	    else
  1767 	    else
  1764 	        {
  1768 	        {
  1765             // Subsequent boot. Check for the presence of a marker file <drive>\sys\install directory.
  1769             // Subsequent boot. Check for the presence of a marker file <drive>\sys\install directory.
  1766             // If absent, assume format.
  1770             // If absent, assume format.