the1812/Malware-Patch

Unbundled版本无法运行(Windows11 & Windows8.1)

Closed this issue · 5 comments

环境

  • 因为Defender报毒所以用的是Unbundled包。
  • Windows 11是我电脑本机系统,已经包含.NET Framework 4.7.2及更高版本。
  • Windows 8.1是Hyper-V虚拟机的虚拟系统,已经手动安装.NET Framework 4.7.2。

问题

双击程序后UAC可以提示需要管理员权限,选择之后屏幕闪烁,程序并未运行,进程管理器中也没有相应进程。
两种系统的问题一模一样。

一些补充信息

Windows 11已经关闭内核隔离、SmartScreen。Windows 8.1禁用了Defender。

已经包含.NET Framework 4.7.2及更高版本

貌似不是,至少不全?还需 Microsoft Edge WebView2 Runtime
注意 Windows 8 的话不能用最新的,只能是100以下。

已经包含.NET Framework 4.7.2及更高版本

貌似不是,至少不全?还需 Microsoft Edge WebView2 Runtime 注意 Windows 8 的话不能用最新的,只能是100以下。

感谢回答。
但是我的Windows 11是内置WebView2 Runtime的。

这里补充日志中关于这个程序的两个错误:

.NET Framework的错误日志

Application: mwp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
at System.IO.Path.CheckInvalidPathChars(System.String, Boolean)
at System.IO.Path.Combine(System.String, System.String)
at MalwarePatch.Models.BuiltInCertificates.getCertificateData(System.String)
at MalwarePatch.Models.BuiltInCertificates..ctor(System.String[])
at MalwarePatch.Models.BuiltInCertificates.loadList()
at MalwarePatch.Models.BuiltInCertificates.get_All()
at MalwarePatch.Windows.Main.MainViewModel..ctor(MalwarePatch.Windows.Main.MainWindow)
at MalwarePatch.Windows.Main.MainWindow..ctor()
at MalwarePatch.Models.Updater.InstallUpdateAndRun(MalwarePatch.App, System.String[])
at MalwarePatch.App.OnStartup(System.Windows.StartupEventArgs)
at System.Windows.Application.<.ctor>b__1_0(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at MalwarePatch.App.Main()

程序本体的错误日志

Faulting application name: mwp.exe, version: 2.17.0.0, time stamp: 0x666b0c38
Faulting module name: KERNELBASE.dll, version: 10.0.22621.3733, time stamp: 0xf527a1c6
Exception code: 0xe0434352
Fault offset: 0x00149a72
Faulting process id: 0x0x1E8C
Faulting application start time: 0x0x1DABE0446C78FFA
Faulting application path: C:\Users\weiyi\Downloads\mwp.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 7072126b-43a8-4ae4-b423-bed245639364
Faulting package full name:
Faulting package-relative application ID:

+1
windows 10 LTSC 21H2 19044.4529
依赖也全部安装好了

代码写错了, 一会更新