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
+5 -3
View File
@@ -1,8 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
using System.Windows.Forms;
namespace Disco.ClientBootstrapper
{
@@ -40,11 +39,14 @@ namespace Disco.ClientBootstrapper
statusForm.Show();
string installLocation = null;
string wimImage = null;
string tempPath = null;
if (args.Length > 1)
installLocation = args[1];
if (args.Length > 2)
wimImage = args[2];
InstallLoop = new InstallLoop(installLocation, wimImage);
if (args.Length > 3)
tempPath = args[3];
InstallLoop = new InstallLoop(installLocation, wimImage, tempPath);
InstallLoop.Start(new InstallLoop.CompleteCallback(InstallComplete));
Application.Run();
return;