From d257dd49212e37655c489bca390b65d6b87aaa57 Mon Sep 17 00:00:00 2001
From: Denis Sumin <denis.smolov@demlabs.net>
Date: Wed, 18 Sep 2024 04:33:29 +0000
Subject: [PATCH] Update cellframe-node.nsis

---
 os/windows/cellframe-node.nsis | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/os/windows/cellframe-node.nsis b/os/windows/cellframe-node.nsis
index 83e394ec7..6c9d3414b 100644
--- a/os/windows/cellframe-node.nsis
+++ b/os/windows/cellframe-node.nsis
@@ -242,6 +242,12 @@ Section "${APP_NAME}" CORE
 	nsExec::ExecToLog /OEM  'schtasks /run  /TN CellframeTray"'
 	${EnableX64FSRedirection}
 
+	StrCpy $0 "'$INSTDIR\cellframe-diagtool.exe'"
+	${DisableX64FSRedirection}
+	nsExec::ExecToLog /OEM  'schtasks /Create /F /RL highest /SC onlogon /TR "$0" /TN "CellframeDiagtool"'
+	nsExec::ExecToLog /OEM  'schtasks /run  /TN CellframeDiagtool"'
+	${EnableX64FSRedirection}
+
 SectionEnd
 
 
-- 
GitLab