Skip to content

Commit

Permalink
Small Fixes
Browse files Browse the repository at this point in the history
Invoking BSOD application wasn't copying with ndtklib or cmd/xcopy.. User will now have to manually place files. see InvokeBSOD-Info.txt

Fixed Crash Dump Path changing label and not text box
  • Loading branch information
Empyreal96 committed Jan 9, 2023
1 parent f39a2eb commit a7b44b2
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 23 deletions.
7 changes: 5 additions & 2 deletions src/FirstRunPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ private async void Connect()

if (IsCMDPresent == true)
{
CMDpresent.Foreground = new SolidColorBrush(Windows.UI.Colors.Green);
CMDpresent.Text = "Checks Completed Successfully\nCopying files needed";

CMDpresent.Text = "Copying files needed";
try
{
// Copy the Kernel Debug files used when enabling debugging
Expand All @@ -119,6 +119,9 @@ private async void Connect()
rpc.FileCopy($"{ApplicationData.Current.LocalFolder.Path}\\KDFiles\\kdnet_uart16550.dll.dll", "C:\\Windows\\System32\\kdnet_uart16550.dll.dll", 0);
rpc.FileCopy($"{ApplicationData.Current.LocalFolder.Path}\\KDFiles\\kd.dll", "C:\\Windows\\System32\\kd.dll", 0);

//Copy InvokeBSOD app

CMDpresent.Foreground = new SolidColorBrush(Windows.UI.Colors.Green);
}
catch (Exception ex)
{
Expand Down
1 change: 1 addition & 0 deletions src/InvokeBSOD-Info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If you want to be able to Invoke BSOD, copy "WPLoggingTools" to "C:\Data\Users\Public\Documents" on your device
18 changes: 3 additions & 15 deletions src/Logging Enabler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@
</AppxManifest>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Tools\InvokeBSOD\TailoredDeploy.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Tools\InvokeBSOD\Invoke-BSOD-arm.pdb">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Registry.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</EmbeddedResource>
Expand Down Expand Up @@ -243,6 +237,9 @@
<EmbeddedResource Include="KDFiles\kd_8003_5143.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</EmbeddedResource>
<Content Include="InvokeBSOD-Info.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Properties\Default.rd.xml" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\SplashScreen.scale-200.png" />
Expand Down Expand Up @@ -278,15 +275,6 @@
<EmbeddedResource Include="Registry.winmd">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Tools\InvokeBSOD\Invoke-BSOD-arm.application">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Tools\InvokeBSOD\Invoke-BSOD-arm.exe.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Tools\InvokeBSOD\Invoke-BSOD-arm.exe.manifest">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Reference Include="ndtklib, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL">
Expand Down
13 changes: 11 additions & 2 deletions src/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ private async void CrashDmpChooseLocation_Click(object sender, RoutedEventArgs e
if (results3.Contains("The operation completed successfully."))
{

CrashDmpLocation.Text = SelectedCrashDumpPath;
CrashDmpUserLocation.Text = SelectedCrashDumpPath;
}
else
{
Expand All @@ -1184,6 +1184,7 @@ private async void CrashDmpChooseLocation_Click(object sender, RoutedEventArgs e
/// <param name="e"></param>
private async void InvokeBSODBtn_Click(object sender, RoutedEventArgs e)
{

MessageDialog showDialog = new MessageDialog("You are about to invoke a System Crash, Are you sure?");
showDialog.Commands.Add(new UICommand("Yes")
{
Expand All @@ -1197,9 +1198,17 @@ private async void InvokeBSODBtn_Click(object sender, RoutedEventArgs e)
showDialog.DefaultCommandIndex = 0;
showDialog.CancelCommandIndex = 1;
var result = await showDialog.ShowAsync();

if ((int)result.Id == 0)
{
await client.Send($"{LocalPath}\\Tools\\InvokeBSOD\\TailoredDeploy.exe");

await client.Send($"C:\\Data\\users\\public\\documents\\WPLoggingTools\\TailoredDeploy.exe > \"{LocalPath}\\cmdstring.txt\"");
string result1 = File.ReadAllText($"{LocalPath}\\cmdstring.txt");
if (result1.Contains("is not recognized as an internal or external command"))
{
Exceptions.CustomMessage("Files not found, make sure you placed the \"WPLoggingTools\" folder into \"C:\\Data\\Users\\Public\\Documents\" ");
}

}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="WindowsLoggingTools"
Publisher="CN=Empyreal96"
Version="0.1.25.0" />
Version="0.1.1.0" />

<mp:PhoneIdentity PhoneProductId="bfa661cf-f050-4597-8f87-a1ad67b39962" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down
Binary file removed src/Tools/InvokeBSOD/Invoke-BSOD-arm.pdb
Binary file not shown.
Binary file removed src/Tools/InvokeBSOD/TailoredDeploy.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>8NpLnko5kPQYVi387up7+4PaxCQLO0x34wJfwZTH4tE=</dsig:DigestValue>
<dsig:DigestValue>zz/wiIp1BeCgurHhfKnfAngVM0ngtAhU4tm+Qi7xRUI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Invoke-BSOD-arm.exe" size="6128">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Invoke-BSOD-arm.exe" size="5616">
<assemblyIdentity name="Invoke-BSOD-arm" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>W5E1TbHJa8R0Cm50sZmjhHqjL7rwqoewFudUwCfNOjU=</dsig:DigestValue>
<dsig:DigestValue>C6hIllc1zTFxig9Tg405eaG0JaU1QbnTvqLMLAi6gao=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file added src/WPLoggingTools/TailoredDeploy.exe
Binary file not shown.

0 comments on commit a7b44b2

Please sign in to comment.