Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5e494ad
WindowsInstallerLib: implement new functions
felgmar Feb 20, 2025
34d9bc1
WindowsInstallerLib: implement new namespace Helpers
felgmar Feb 20, 2025
7ed4ff6
WindowsInstallerLib: bump version to 1.2.0.0
felgmar Feb 20, 2025
2b54652
GUIApp: reimplementation of the GUI program
felgmar Feb 20, 2025
0651b24
GUIApp: set version to 1.0.0.0
felgmar Feb 25, 2025
0aa5672
GUIApp: remove unnecessary library
felgmar Mar 3, 2025
23e0b60
GUIApp: fix warning regarding trimming code
felgmar Mar 7, 2025
3057a84
GUIApp: add application manifest file and reference in project
felgmar Apr 5, 2025
1f3c80b
GUIApp: fix IL2026 warning about trimming code
felgmar Apr 5, 2025
6b40ef7
GUIApp: format Parameters struct constructor for improved readability
felgmar Apr 5, 2025
6df28f4
GUIApp: remove unused library System.IO
felgmar Apr 5, 2025
c8a18cd
GUIApp: add caption parameter to ShowMessage for future reuse
felgmar Apr 5, 2025
d8bae95
GUIApp: remove checking for admin privileges
felgmar Apr 5, 2025
58ce044
GUIApp: fix warning WFO0003
felgmar Apr 5, 2025
220e60f
GUIApp: refactor code for image choosing
felgmar Apr 15, 2025
7184155
Merge branch 'main' into reimplement-a-gui-application
felgmar May 3, 2025
34bdb42
ConsoleApp: Improve error and parameter handling
felgmar Jan 17, 2026
91ed137
WindowsInstallerLib: Rewrite logic and improve parameter handling
felgmar Jan 17, 2026
ed439e1
WindowsInstallerLib: bump version to 1.1.5.0
felgmar Jan 17, 2026
6040512
ConsoleApp: bump version to 0.0.8.0
felgmar Jan 17, 2026
ed086ee
Merge 'main' into 'reimplement-a-gui-application'
felgmar Jan 17, 2026
dac46f0
GUIApp: upgrade to .NET 10
felgmar Jan 17, 2026
ba08242
GUIApp: update assemblyIdentity information
felgmar Jan 17, 2026
0519478
Merge 'fix-bugs-and-cleanup' into 'reimplement-a-gui-application'
felgmar Jan 17, 2026
3d3324d
WindowsInstallerLib: Fix a typo
felgmar Jan 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ConsoleApp/ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ErrorReport>none</ErrorReport>
<AnalysisLevel>latest-recommended</AnalysisLevel>
<StartupObject>ConsoleApp.Program</StartupObject>
<Version>0.0.7.0</Version>
<Version>0.0.8.0</Version>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions ConsoleApp/src/ArgumentParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal static void ParseArgs(ref Parameters parameters, string[] args)
parameters.ImageFilePath = args[Array.IndexOf(args, arg) + 1].ToLowerInvariant();
continue;
case "/additionaldriversdrive":
parameters.AdditionalDriversDrive = args[Array.IndexOf(args, arg) + 1].ToLowerInvariant();
parameters.AdditionalDrive = args[Array.IndexOf(args, arg) + 1].ToLowerInvariant();
continue;
case "/firmwaretype":
parameters.FirmwareType = args[Array.IndexOf(args, arg) + 1].ToUpperInvariant();
Expand All @@ -80,7 +80,7 @@ internal static void ParseArgs(ref Parameters parameters, string[] args)
Console.WriteLine($" Source Drive: {parameters.SourceDrive}");
Console.WriteLine($" Image Index: {parameters.ImageIndex}");
Console.WriteLine($" Image File Path: {parameters.ImageFilePath}");
Console.WriteLine($" Additional Drivers Drive: {parameters.AdditionalDriversDrive}");
Console.WriteLine($" Additional Drivers Drive: {parameters.AdditionalDrive}");
Console.WriteLine($" Firmware Type: {parameters.FirmwareType}");
Console.WriteLine("Press any key to continue...");
Console.ReadKey();
Expand Down
25 changes: 17 additions & 8 deletions ConsoleApp/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,45 @@ internal static int Main(string[] args)
Console.WriteLine($"Created by {ProgramInfo.GetAuthor()}");
#endif
}
catch (Exception)
catch (Exception ex)
{
throw;
Console.WriteLine($"An error has occurred: {ex.Message}");
}

try
{
ArgumentParser.ParseArgs(ref parameters, args);
}
catch (Exception)
catch (Exception ex)
{
throw;
Console.WriteLine($"An error has occurred: {ex.Message}");
}

try
{
InstallerManager.Configure(ref parameters);
}
catch (Exception)
catch (Exception ex)
{
throw;
Console.WriteLine($"An error has occurred: {ex.Message}");
}

try
{
InstallerManager.Prepare(ref parameters);
}
catch (Exception ex)
{
Console.WriteLine($"An error has occurred: {ex.Message}");
}

try
{
InstallerManager.InstallWindows(ref parameters);
}
catch (Exception)
catch (Exception ex)
{
throw;
Console.WriteLine($"An error has occurred: {ex.Message}");
}

return 0;
Expand Down
54 changes: 54 additions & 0 deletions GUIApp/GUIApp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<StartupObject>wit.Program</StartupObject>
<LangVersion>latest</LangVersion>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>none</ErrorReport>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NeutralLanguage>en-US</NeutralLanguage>
<AnalysisLevel>latest-recommended</AnalysisLevel>
<AssemblyName>wit</AssemblyName>
<RootNamespace>wit</RootNamespace>
<Platforms>x64</Platforms>
<ApplicationManifest>app.manifest</ApplicationManifest>
<ApplicationHightDpiMode>SystemAware</ApplicationHightDpiMode>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<WarningLevel>0</WarningLevel>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DebugType>none</DebugType>
<IsTrimmable>True</IsTrimmable>
<Version>1.0.0.0</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<WarningLevel>9999</WarningLevel>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DebugType>full</DebugType>
<VersionSuffix>testing</VersionSuffix>
<IsTrimmable>True</IsTrimmable>
<Version>0.0.3.0</Version>
<VersionSuffix>testing</VersionSuffix>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
</PropertyGroup>

<ItemGroup>
<Compile Remove="build\**" />
<EmbeddedResource Remove="build\**" />
<None Remove="build\**" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\WindowsInstallerLib\WindowsInstallerLib.csproj" />
</ItemGroup>

</Project>
30 changes: 30 additions & 0 deletions GUIApp/app.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="GUIApp.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
</application>
</compatibility>

<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
187 changes: 187 additions & 0 deletions GUIApp/src/AboutWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading