public InstalledApplication LoadInstallConfigFromFile(string filePath)
{
if (filePath == null) throw new ArgumentNullException("filePath");
Stream istrm = null;
try
{
istrm = File.Open(filePath, FileMode.Open, FileAccess.Read);
}
catch (Exception e)
{
throw ServiceResultException.Create(StatusCodes.BadDecodingError, e, "Could not open file: {0}", filePath);
}
return LoadInstallConfigFromStream(istrm);
}