public bool InstallSamplePackage(byte[] bytes) { //get a temporary file from provided bytes var fileName = _localFileProvider.GetTemporaryFile(bytes); try { return(InstallSamplePackage(fileName)); } catch (Exception ex) { _logger.Log <InstallationService>(LogLevel.Error, ex.Message, ex); return(false); } }