Add TempPath parameter to bootstrapper install

Allows a temporary path to be passed to the Bootstrapper to be used when
mounting WIM images during the offline install phase. Allows mounting to
be done on another (faster, SSD) volume.
This commit is contained in:
Gary Sharp
2015-12-23 10:31:11 +11:00
parent 80f7cd0275
commit d6de5e5958
3 changed files with 17 additions and 20 deletions
+4 -5
View File
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Disco.ClientBootstrapper
@@ -14,11 +11,13 @@ namespace Disco.ClientBootstrapper
private CompleteCallback mCompleteCallback;
private string InstallLocation;
private string WimImageId;
private string TempPath;
public InstallLoop(string InstallLocation, string WimImageId = null)
public InstallLoop(string InstallLocation, string WimImageId, string TempPath)
{
this.InstallLocation = InstallLocation;
this.WimImageId = WimImageId;
this.TempPath = TempPath;
}
public void Start(CompleteCallback Callback)
@@ -34,7 +33,7 @@ namespace Disco.ClientBootstrapper
//Program.Status.UpdateStatus(null, null, "Testing UI");
//Program.SleepThread(5000, false);
Interop.InstallInterop.Install(this.InstallLocation, this.WimImageId);
Interop.InstallInterop.Install(this.InstallLocation, this.WimImageId, this.TempPath);
if (this.mCompleteCallback != null)
{
this.mCompleteCallback.BeginInvoke(null, null);