Check for standalone windows .Net version

This commit is contained in:
2dust
2024-08-29 10:09:45 +08:00
parent 6721d150e0
commit 48a5cbc552
5 changed files with 28 additions and 0 deletions
@@ -722,6 +722,16 @@ namespace ServiceLib.ViewModels
private void CheckUpdateN()
{
//Check for standalone windows .Net version
if (Utils.IsWindows()
&& File.Exists(Path.Combine(Utils.StartupPath(), "wpfgfx_cor3.dll"))
&& File.Exists(Path.Combine(Utils.StartupPath(), "D3DCompiler_47_cor3.dll"))
)
{
_noticeHandler?.SendMessageAndEnqueue(ResUI.UpdateStandalonePackageTip);
return;
}
void _updateUI(bool success, string msg)
{
_noticeHandler?.SendMessage(msg);