From ac2ceb210da1675aed291a586090b5ec4cf4f2e1 Mon Sep 17 00:00:00 2001 From: valnoxy Date: Mon, 13 Mar 2023 01:46:10 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=92=EF=B8=8F=20Finalize=20Driver=20Inject?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++--- deploya/deployaCore/Action/Apply.cs | 12 +++++++++--- deploya/deployaCore/deployaCore.csproj | 2 +- .../Pages/ApplyPages/DeploymentSettingsStep.xaml | 2 +- .../Pages/ApplyPages/DeploymentSettingsStep.xaml.cs | 12 ++++++++---- .../deployaUI/Pages/TweaksPages/TweaksDashboard.xaml | 2 ++ deploya/deployaUI/deployaUI.csproj | 2 +- 7 files changed, 27 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index ad55136..71cfcd3 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@

Easy Deployment for Windows
- Version: 1.0.0.289 (Beta 4) + Version: 1.0.0.362 (Beta 5)
- Core: 12.0.0.426 + Core: 12.0.0.452

Download now ยป @@ -20,7 +20,7 @@

-![-----------------------------------------------------](https://dl.exploitox.de/t440p-oc/rainbow.png) +![-----------------------------------------------------](https://raw.githubusercontent.com/valnoxy/valnoxy/main/assets/bar.gif) ## ๐Ÿ”” Information Dive (formally deploya) is a little application for deploying Windows on a machine. @@ -28,6 +28,8 @@ Dive (formally deploya) is a little application for deploying Windows on a machi - Deploy WIM-Files on any drive - Mass deploy Windows with AutoDive (W.I.P) - Bypass Windows 11 Microsoft-Account compulsion +- Configure Windows with OEM & Local Accound settings +- Inject multiple drivers - Capture Windows installation - Install Windows from the Cloud diff --git a/deploya/deployaCore/Action/Apply.cs b/deploya/deployaCore/Action/Apply.cs index ade8fee..5b9d259 100644 --- a/deploya/deployaCore/Action/Apply.cs +++ b/deploya/deployaCore/Action/Apply.cs @@ -37,7 +37,8 @@ internal static void AddDriverToDisk(string windowsDrive, List driverPat Bw = worker; try { - Output.WriteLine("[Driver] Entering Injection process ..."); + var driverCount = driverPath.Count; + Output.WriteLine($"[Driver] Entering Injection process with {driverCount} drivers ..."); Output.WriteLine("[Driver] Initialize Dism API ..."); DismApi.Initialize(DismLogLevel.LogErrors); Output.WriteLine("[Driver] Open offline session ..."); @@ -52,14 +53,15 @@ internal static void AddDriverToDisk(string windowsDrive, List driverPat catch (Exception ex) { Output.WriteLine("[Driver] Failed to open offline session: " + ex.Message); - Output.WriteLine("[Driver] Shutdown Dism API ..."); + Output.WriteLine("[Driver] Shutting down API ..."); DismApi.Shutdown(); return; } var currentDriverCount = 0; - foreach (var driver in driverPath.Where(File.Exists)) + foreach (var driver in driverPath) { + Output.WriteLine("[Driver] Begin driver installation ..."); try { currentDriverCount++; @@ -74,8 +76,12 @@ internal static void AddDriverToDisk(string windowsDrive, List driverPat } } + Output.WriteLine("[Driver] Closing session ..."); session.Close(); + Output.WriteLine("[Driver] Shutting down API ..."); DismApi.Shutdown(); + Output.WriteLine("[Driver] Job completed. Returning now ..."); + return; } catch (Exception ex) { diff --git a/deploya/deployaCore/deployaCore.csproj b/deploya/deployaCore/deployaCore.csproj index 719aba1..5b08824 100644 --- a/deploya/deployaCore/deployaCore.csproj +++ b/deploya/deployaCore/deployaCore.csproj @@ -18,7 +18,7 @@ embedded False deploya - 12.0.0.448 + 12.0.0.452 valnoxy Exploitox deploya diff --git a/deploya/deployaUI/Pages/ApplyPages/DeploymentSettingsStep.xaml b/deploya/deployaUI/Pages/ApplyPages/DeploymentSettingsStep.xaml index 9150695..89c6e89 100644 --- a/deploya/deployaUI/Pages/ApplyPages/DeploymentSettingsStep.xaml +++ b/deploya/deployaUI/Pages/ApplyPages/DeploymentSettingsStep.xaml @@ -200,7 +200,7 @@ + Text="Load and inject multiple drivers. (Vista and up)" /> infFiles = Directory.GetFiles(dialog.SelectedPath, "*.inf") - .Select(Path.GetFileName) + var infFiles = Directory.GetFiles(dialog.SelectedPath, "*.inf", SearchOption.AllDirectories) + .Select(Path.GetFullPath) .ToList(); switch (infFiles.Count) { case > 0: - var driverWindow = new LoadDriversLiveSystem(infFiles); - driverWindow.ShowDialog(); + if (File.Exists("X:\\Windows\\System32\\wpeutil.exe")) + { + var driverWindow = new LoadDriversLiveSystem(infFiles); + driverWindow.ShowDialog(); + } + Common.Debug.WriteLine($"Found {infFiles.Count} drivers."); Common.ApplyDetails.DriverList = infFiles; break; case 0: diff --git a/deploya/deployaUI/Pages/TweaksPages/TweaksDashboard.xaml b/deploya/deployaUI/Pages/TweaksPages/TweaksDashboard.xaml index b1f98ba..c465e37 100644 --- a/deploya/deployaUI/Pages/TweaksPages/TweaksDashboard.xaml +++ b/deploya/deployaUI/Pages/TweaksPages/TweaksDashboard.xaml @@ -12,6 +12,7 @@ Dive Exploitox valnoxy - 1.0.0.359 + 1.0.0.362 Copyright (c) 2018 - 2023 Exploitox. All rights reserved. https://github.com/valnoxy/dive https://github.com/valnoxy/dive