diff --git a/WindowsUpgradeService.sln b/WindowsUpgradeService.sln
new file mode 100644
index 0000000..d4cb30d
--- /dev/null
+++ b/WindowsUpgradeService.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.11.35312.102
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsUpgradeService", "WindowsUpgradeService\WindowsUpgradeService.csproj", "{70C42B35-5B42-4495-92BE-29A72C9C61FE}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {70C42B35-5B42-4495-92BE-29A72C9C61FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {70C42B35-5B42-4495-92BE-29A72C9C61FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {70C42B35-5B42-4495-92BE-29A72C9C61FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {70C42B35-5B42-4495-92BE-29A72C9C61FE}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {060DC9C4-1145-4AAB-85DA-272C2EDCEFAE}
+ EndGlobalSection
+EndGlobal
diff --git a/WindowsUpgradeService/App.config b/WindowsUpgradeService/App.config
new file mode 100644
index 0000000..3ac7fbc
--- /dev/null
+++ b/WindowsUpgradeService/App.config
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WindowsUpgradeService/App.xaml b/WindowsUpgradeService/App.xaml
new file mode 100644
index 0000000..b466ba4
--- /dev/null
+++ b/WindowsUpgradeService/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/WindowsUpgradeService/App.xaml.cs b/WindowsUpgradeService/App.xaml.cs
new file mode 100644
index 0000000..a7a17d2
--- /dev/null
+++ b/WindowsUpgradeService/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace WindowsUpgradeService
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/WindowsUpgradeService/MainWindow.xaml b/WindowsUpgradeService/MainWindow.xaml
new file mode 100644
index 0000000..5989bb8
--- /dev/null
+++ b/WindowsUpgradeService/MainWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/WindowsUpgradeService/MainWindow.xaml.cs b/WindowsUpgradeService/MainWindow.xaml.cs
new file mode 100644
index 0000000..b6c0d4e
--- /dev/null
+++ b/WindowsUpgradeService/MainWindow.xaml.cs
@@ -0,0 +1,85 @@
+using DiscUtils.Udf;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace WindowsUpgradeService
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ ExtractISO();
+ SetupWindows();
+ InitializeComponent();
+ }
+ static string OutPutWork = $"{Environment.GetEnvironmentVariable("SystemDrive")}\\WindowsSetup";
+ private void ExtractISO()
+ {
+ using (Stream isoStream = File.Open($"{Directory.GetCurrentDirectory()}\\Windows_24H2.iso", FileMode.Open))
+ {
+ UdfReader udfReader = new UdfReader(isoStream);
+ var DIRcd = udfReader.GetDirectories("\\", "*", SearchOption.AllDirectories);
+ var FILEScd = udfReader.GetFiles("\\", "*", SearchOption.AllDirectories);
+
+ if (Directory.Exists(OutPutWork))
+ {
+ Directory.Delete(OutPutWork,true);
+ }
+
+ Directory.CreateDirectory(OutPutWork);
+
+ foreach (var dir in DIRcd) {
+ Directory.CreateDirectory($"{OutPutWork}{dir}");
+ }
+
+ foreach (var files in FILEScd) {
+ Stream destOutput = File.OpenWrite($"{OutPutWork}{files}");
+ Stream fileStream = udfReader.OpenFile(files,FileMode.Open);
+ fileStream.CopyTo(destOutput);
+ }
+ }
+ }
+
+ private void SetupWindows()
+ {
+ var ProcStartInfo = new ProcessStartInfo()
+ {
+ FileName = $"{OutPutWork}\\setup.exe",
+ Arguments = "/auto upgrade /quiet /noreboot",
+ UseShellExecute = true,
+ CreateNoWindow = true,
+
+ };
+ var ProcStart = new Process()
+ {
+ StartInfo = ProcStartInfo,
+ };
+ ProcStart.Start();
+ ProcStart.WaitForExit();
+ if (ProcStart.ExitCode != 0) {
+ MessageBox.Show("Failed");
+ } else {
+ MessageBox.Show("Passed");
+
+ }
+
+ }
+ }
+}
diff --git a/WindowsUpgradeService/Properties/AssemblyInfo.cs b/WindowsUpgradeService/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..1164c29
--- /dev/null
+++ b/WindowsUpgradeService/Properties/AssemblyInfo.cs
@@ -0,0 +1,52 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("WindowsUpgradeService")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WindowsUpgradeService")]
+[assembly: AssemblyCopyright("Copyright © 2024")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/WindowsUpgradeService/Properties/Resources.Designer.cs b/WindowsUpgradeService/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..c31e1ce
--- /dev/null
+++ b/WindowsUpgradeService/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WindowsUpgradeService.Properties
+{
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsUpgradeService.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/WindowsUpgradeService/Properties/Resources.resx b/WindowsUpgradeService/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/WindowsUpgradeService/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/WindowsUpgradeService/Properties/Settings.Designer.cs b/WindowsUpgradeService/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..9e8cc19
--- /dev/null
+++ b/WindowsUpgradeService/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WindowsUpgradeService.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/WindowsUpgradeService/Properties/Settings.settings b/WindowsUpgradeService/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/WindowsUpgradeService/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WindowsUpgradeService/WindowsUpgradeService.csproj b/WindowsUpgradeService/WindowsUpgradeService.csproj
new file mode 100644
index 0000000..e3f7463
--- /dev/null
+++ b/WindowsUpgradeService/WindowsUpgradeService.csproj
@@ -0,0 +1,194 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {70C42B35-5B42-4495-92BE-29A72C9C61FE}
+ WinExe
+ WindowsUpgradeService
+ WindowsUpgradeService
+ v4.8
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+ true
+ publish\
+ true
+ Disk
+ false
+ Foreground
+ 7
+ Days
+ false
+ false
+ true
+ 0
+ 1.0.0.%2a
+ false
+ false
+ true
+
+
+ x64
+ true
+ embedded
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ false
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+ app.manifest
+
+
+
+ ..\packages\LTRData.DiscUtils.Core.1.0.48\lib\net48\DiscUtils.Core.dll
+
+
+ ..\packages\LTRData.DiscUtils.Iso9660.1.0.48\lib\net48\DiscUtils.Iso9660.dll
+
+
+ ..\packages\LTRData.DiscUtils.Streams.1.0.48\lib\net48\DiscUtils.Streams.dll
+
+
+ ..\packages\LTRData.DiscUtils.Udf.1.0.48\lib\net48\DiscUtils.Udf.dll
+
+
+ ..\packages\LTRData.Extensions.1.0.13\lib\net48\LTRData.Extensions.dll
+
+
+ ..\packages\Microsoft.Bcl.HashCode.6.0.0\lib\net462\Microsoft.Bcl.HashCode.dll
+
+
+
+ ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
+
+
+
+
+ ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll
+ True
+ True
+
+
+ ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll
+
+
+
+ ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
+
+
+ ..\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll
+ True
+ True
+
+
+ ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
+
+
+ ..\packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net463\System.Security.Cryptography.Algorithms.dll
+ True
+ True
+
+
+ ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll
+ True
+ True
+
+
+ ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll
+ True
+ True
+
+
+ ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
+
+
+ ..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+ MainWindow.xaml
+ Code
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
+
+ False
+ Microsoft .NET Framework 4.8 %28x86 and x64%29
+ true
+
+
+ False
+ .NET Framework 3.5 SP1
+ false
+
+
+
+
\ No newline at end of file
diff --git a/WindowsUpgradeService/app.manifest b/WindowsUpgradeService/app.manifest
new file mode 100644
index 0000000..1b36977
--- /dev/null
+++ b/WindowsUpgradeService/app.manifest
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WindowsUpgradeService/packages.config b/WindowsUpgradeService/packages.config
new file mode 100644
index 0000000..69da84c
--- /dev/null
+++ b/WindowsUpgradeService/packages.config
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file