Fix Local Agent 1.13.1 Windows dashboard startup

This commit is contained in:
A R R R Associates
2026-08-22 19:36:51 +05:30
parent 4b0ac5ce2b
commit 215ad2c6c6
5 changed files with 43 additions and 7 deletions
@@ -1,4 +1,4 @@
Option Explicit
Option Explicit
Dim fso, shell, baseDir, launcher, pyw, py, cmd
Set fso = CreateObject("Scripting.FileSystemObject")
@@ -15,9 +15,9 @@ If Not fso.FileExists(launcher) Then
End If
If fso.FileExists(pyw) Then
cmd = """" & pyw & """ """ & launcher & """"
cmd = Chr(34) & pyw & Chr(34) & " " & Chr(34) & launcher & Chr(34)
ElseIf fso.FileExists(py) Then
cmd = """" & py & """ """ & launcher & """"
cmd = Chr(34) & py & Chr(34) & " " & Chr(34) & launcher & Chr(34)
Else
MsgBox "ERP Local Agent Python environment was not found.", 16, "ERP Local Agent"
WScript.Quit