Custom Delayed Startup for Smartcontroller which will override the current hardcoded 15-second delay
Problem | Details
Within the current code logic for BeStartup.exe Smartcontroller is hard coded to be delayed for 15 seconds with no way to alter the time using BestartupStartProgram("BEpoz SmartController", g_oSettings.sExecutePath & "\smartcontrol.exe", "/S15"
Resolution | Details
The batch file can be found in the ScreenConnect Tools that does the following.
It finds the registry key for the Execution path and sets it as a variable |
FOR /F "tokens=2* delims= " %%A IN ('reg query HKCU\SOFTWARE\Backoffice /v ExecutePath') DO SET ExecutePath=%%B |
It sets the Dword for StartSmartController to 0 |
REM CLEAR FLAG FOR SMARTCONTROLLER START |
Create a startup entry for Smartcontroller in Windows\CurrentVersion\Run with a 60-second delay |
REM SET RUN ON STARTUP FOR SMARTCONTROLLER WITH 60 SECONDS |
Batch File |
@echo off |
@echo off
FOR /F "tokens=2* delims= " %%A IN ('reg query HKCU\SOFTWARE\Backoffice /v ExecutePath') DO SET ExecutePath=%%B
Echo %ExecutePath%
REM CLEAR FLAG FOR SMARTCONTROLLER START
reg add "HKCU\SOFTWARE\Backoffice" /v StartSmartController /t REG_DWORD /d "0" /f
REM SET RUN ON STARTUP FOR SMARTCONTROLLER WITH 60 SECONDS
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v StartSmartController /t REG_SZ /d "\"%ExecutePath%\smartcontrol.exe\" /S60" /f
Issue Links
-
BEPOZ-5937 - As a Bepoz Admin, I would like the ability to set a custom Delayed Startup in Database.exe which will override the current hardcoded 15 second delay Triage