CODE
start "Daemon Tools" /wait "D:\App Installs\Daemon Tools\daemon4091-x86.exe" /S
del "%ProgramFiles%\DAEMON Tools\SetupDTSB.exe"
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /V "Daemon Tools" /f
del "%ProgramFiles%\DAEMON Tools\SetupDTSB.exe"
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /V "Daemon Tools" /f
The first line does the install, the second line deletes the file that installs the When U adware on first run of DAEMON Tools, and the last line deletes the registry key that causes Daemon Tools to autolaunch on each re-boot.
If I run those lines from a cmd file on the desktop, it does exactly what it's supposed to do. When I include them in guirunonce during installation, I can see Daemon Tools start and appear to install, but I get error messages on the last two lines. The file SetupDTSB.exe can't be found to be deleted nor can the registry key. When the installation is complete, I can confirm that Daemon Tools is not present and for some reason didn't install. But I cannot figure out why.
Is there any reason why Daemon Tools (and only DT) won't install from guirunonce?
I'll really appreciate some help with this.
Thanks.
Ray
