private string DownloadSnapshotIfNeeded(NodeFileSystem fileSystem, ElasticsearchPluginConfiguration plugin, ElasticsearchVersion v) { var downloadLocation = Path.Combine(fileSystem.RoamingFolder, plugin.SnapshotZip(v)); this.DownloadPluginSnapshot(downloadLocation, plugin, v); //transform downloadLocation to file uri and use that to install from return(new Uri(downloadLocation).AbsoluteUri); }