I did not look for a bug list.
When installed, an entry is created in the task scheduler library to run an update check.
The syntax is improperly formatted. The path is not quote delimited.
I did not look for a bug list.
When installed, an entry is created in the task scheduler library to run an update check.
The syntax is improperly formatted. The path is not quote delimited.
Thanks for the feedback.
I went ahead and forwarded it, hope you don’t mind.
Noticed it years ago. I’m really lazy.
To add quotes to the path, I tried the following and got errors from schtasks command
C:\Windows\System32>schtasks /create /sc daily /tn “FxSound\Update” /tr ““C:\Program Files\FxSound LLC\FxSound\updater.exe” /silent” /st 10:00 /f
ERROR: Invalid argument/option - ‘Files\FxSound’.
Type “SCHTASKS /CREATE /?” for usage.
C:\Windows\System32>schtasks /create /sc daily /tn “FxSound\Update” /tr ““C:\Program Files\FxSound LLC\FxSound\updater.exe /silent”” /st 10:00 /f
ERROR: Invalid argument/option - ‘Files\FxSound’.
Type “SCHTASKS /CREATE /?” for usage.
Only the following command works where the path is not quote formatted,
C:\Windows\System32>schtasks /create /sc daily /tn “FxSound\Update” /tr “C:\Program Files\FxSound LLC\FxSound\updater.exe /silent” /st 10:00 /f
SUCCESS: The scheduled task “FxSound\Update” has successfully been created.
Edited task:
The default condition of the task after install:
Perhaps you need to (quote) delimit the line elsewhere in the code.
I do not enter a create command. I edit an existing task (assumed to be the task you create).
First detected by Autoruns several Windows versions ago (editing the task has been a part of the install for some time - may or may not coincide with the death of DFX.). Currently present in Win11 22H2 clean.
Does C:\Progra~1 still work? If yes, no delimiter.
I don’t code for a living. I note that a switch is being passed as a command. The task sched GUI treats the switch as a separate field.
I will play with it.
Observation:
On a new install of Win11, the same truncated command was listed in tasksched.
When I edited the line (parse and move the [Files\FxSound LLC\FxSound\updater.exe /silent] text -
I forgot to place quotes in the Program/Task field. Windows prompted me to clarify and I got a dialog box -
Do you want to run C:\Program.exe
or
Do you want to run C:\Program Files\FxSound LLC\FxSound\updater.exe with the switch /silent?
I chose the latter. Task Scheduler automatically populated each of the two fields AND entered quotes in the path.
BUTT
When I saved it, it reverted to the same condition install leaves behind, a truncated command line with most of the path in the switch field.
This is the command that gets added in task scheduler by my installer.
Can you try running this command and see what gets added to the task scheduler,
schtasks /create /sc daily /tn “FxSound\Update” /tr “C:\Program Files\FxSound LLC\FxSound\updater.exe /silent” /st 10:00 /f
tldr; i think with my pen. Remove the quotes from “FxSound\Update” Windows is parsing that correctly.
schtasks /create /sc daily /tn FxSound\Update /tr “C:\Program Files\FxSound LLC\FxSound\updater.exe /silent” /st 10:00 /f
Not working on windows 7, try this :
schtasks /create /sc daily /tn FxSound\Update /tr "'C:\Program Files\FxSound LLC\FxSound\updater.exe' /silent" /st 10:00 /f
No, only path in apostrophes!
Sure, I will update the installer in the next release to create the task in this format.
Hi @Antman
v.1.1.20.0 has the update task formatting changes. Can you please install and check if the task gets created as expected in your PC?
Windows 7 - all ok, i’m checked it after publish beta version.