always stream 7z out of assembly
during client setup task
This commit is contained in:
parent
38a102bf72
commit
e17441a1a9
@ -25,16 +25,15 @@ public class SetupClientTask : InstallerTaskBase
|
||||
|
||||
var progress = new Progress<double>((d) => { SetStatus(null, null, (int)Math.Floor(d)); });
|
||||
|
||||
SetStatus("Preparing 7z", "", null, ProgressStyle.Indeterminate);
|
||||
|
||||
if (!FileHelper.StreamAssemblyResourceOut("7z.dll", Path.Join(DownloadCacheHelper.CachePath, "7z.dll")))
|
||||
{
|
||||
return Result.FromError("Failed to prepare 7z");
|
||||
}
|
||||
|
||||
if (_data.PatchNeeded)
|
||||
{
|
||||
SetStatus("Preparing 7z", "", null, ProgressStyle.Indeterminate);
|
||||
|
||||
if (!FileHelper.StreamAssemblyResourceOut("7z.dll", Path.Join(DownloadCacheHelper.CachePath, "7z.dll")))
|
||||
{
|
||||
return Result.FromError("Failed to prepare 7z");
|
||||
}
|
||||
|
||||
// extract patcher files
|
||||
SetStatus("Extrating Patcher", "", 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user