diff --git a/start.vbs b/start.vbs index f1ebf60..8d4dd1c 100644 --- a/start.vbs +++ b/start.vbs @@ -1,3 +1,4 @@ Set WshShell = CreateObject("WScript.Shell") -' Run the application hidden without a terminal window -WshShell.Run ".\node_modules\electron\dist\electron.exe .", 0, False +' Use cmd /c to run electron.cmd which is what npm start uses +' This ensures all environment variables and paths are correctly set +WshShell.Run "cmd /c .\node_modules\.bin\electron.cmd .", 0, False