Skip to content

Commit

Permalink
Update Customizer to 6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsleuth committed May 3, 2023
1 parent e879b74 commit 01e585b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
22 changes: 20 additions & 2 deletions WinFOR-Customizer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1975,10 +1975,23 @@ private async void Check_Updates(object sender, RoutedEventArgs e)
private void Results_Button(object sender, RoutedEventArgs e)
// Parses the available logs for the SaltStack and WSL installs to determine its summary
{
string version_file = @"C:\ProgramData\Salt Project\Salt\srv\salt\winfor\VERSION";
string release_version = File.ReadAllText($"{version_file}").TrimEnd();
string version_file_salt = @"C:\ProgramData\Salt Project\Salt\srv\salt\winfor\VERSION";
string version_file_local = @"C:\winfor-version";
try
{
string release_version = "";
if (File.Exists(version_file_salt))
{
release_version = File.ReadAllText($"{version_file_salt}").TrimEnd();
}
else if (File.Exists(version_file_local))
{
release_version = File.ReadAllText($"{version_file_local}").TrimEnd();
}
else
{
throw new FileNotFoundException("VERSION files not found");
}
(StringBuilder results, StringBuilder errors) = Process_Results();
if (results.Length == 0)
{
Expand All @@ -1994,6 +2007,11 @@ private void Results_Button(object sender, RoutedEventArgs e)
resultsWindow.Show();
}
}
catch (FileNotFoundException)
{
OutputExpander.IsExpanded = true;
Console_Output($"Unable to determine recent installation attempt:\n{version_file_salt} and {version_file_local} are not present.");
}
catch (Exception ex)
{
OutputExpander.IsExpanded = true;
Expand Down
6 changes: 3 additions & 3 deletions WinFOR-Customizer/Win-FOR Customizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<RepositoryUrl>https://github.com/digitalsleuth/win-for</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<ApplicationIcon>Images\fp.ico</ApplicationIcon>
<Version>6.0.0</Version>
<AssemblyVersion>6.0.0</AssemblyVersion>
<FileVersion>6.0.0</FileVersion>
<Version>6.1.0</Version>
<AssemblyVersion>6.1.0</AssemblyVersion>
<FileVersion>6.1.0</FileVersion>
<Authors>Corey Forman (digitalsleuth)</Authors>
<Description>A graphical interface to choose which packages are installed in a Windows Forensics (Win-FOR) environment.</Description>
<PackageProjectUrl>https://github.com/digitalsleuth/win-for</PackageProjectUrl>
Expand Down

0 comments on commit 01e585b

Please sign in to comment.