srvany-ng icon indicating copy to clipboard operation
srvany-ng copied to clipboard

Crash without AppDirectory Parameter

Open andrewzirkel opened this issue 7 years ago • 1 comments

Have been playing with your app, which is great and is exactly what I need. It crashes if there isn't an AppDirectory parameter for the service. Maybe update that in the readme or make a default.

Thanks!

andrewzirkel avatar Jan 22 '18 20:01 andrewzirkel

This works here

@echo off
sc create frpcsvc start= auto binPath= "%~dp0srvany-ng.exe"
reg add HKLM\SYSTEM\CurrentControlSet\Services\frpcsvc\Parameters /v Application /f /d "%~dp0frpc.exe"
reg add HKLM\SYSTEM\CurrentControlSet\Services\frpcsvc\Parameters /v AppDirectory /f /d "%~dp0."
reg add HKLM\SYSTEM\CurrentControlSet\Services\frpcsvc\Parameters /v AppParameters /f /d "-c %~dp0frpc.ini"

. . . but without AppDirectory registry value the service crashes indeed.

wqweto avatar Mar 28 '22 14:03 wqweto

Confirmed and resolved in https://github.com/birkett/srvany-ng/commit/0cfffe4c4f10a241377c9eae3e5007a95a1f3e33

This fix will be included in an upcoming 1.1 release.

birkett avatar Sep 19 '24 17:09 birkett