I read this article passing parameters to services where it says to edit the ImagePath registry key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\, but when I restarted my service this approach doesn't work.
If I start the service manually using a parameter it runs correctly, restarting the service fails to persist the parameter however and it didn't load from the registry either.
Is there another option for this short of an application config file?