I use the following way:
first let us check if SPTD-Driver is installed in your system
if the SPTD-driver was found - start the daemon-tools-installer with the net switch /S
if the SPTD-driver is not installed:
make a directory on your boot-drive
copy the Daemon-installer to this directory
call the SPTD-Driver-Installer (SPTDinst-v156-x86.exe add /q)
add a registry-value to RUNONCE, to start Daemon-Tools-Installer silent after next reboot
Here my script
CODE
@echo off
Title Daemon Tools Lite 4.30.1
::check for installed SPTD-driver
if exist %systemroot%\system32\drivers\sptd.sys goto ISDA
if not exist %systemroot%\system32\drivers\sptd.sys goto ISNICHDA
:ISNICHDA
if not exist %systemdrive%\install\nul mkdir %systemdrive%\install
if not exist %systemdrive%\install\daemon\nul mkdir %systemdrive%\install\daemon
copy /y/v daemon*.exe %systemdrive%\install\daemon\
start /wait SPTDinst-v156-x86.exe add /q
regedit /s runonce.reg
goto ende
:ISDA
start /wait daemon4301-lite.exe /S
exit
Here the reg-file "runonce.reg"
CODE
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Daemon Tool Lite"="C:\\install\\daemon\\daemon4301-lite.exe /S"
For me this works fine