In Windows, when invoking with --install / --uninstall paramter, privoxy installs a windows service and shows a message with the result. This User's action may prevent to install privoxy as a service from a script.
It could be nice to add a second paramter to install quietly (or with a console message)
On Thu, Jan 25, 2024 at 4:40 AM Miguel Nieto wrote:
--install leaves the service added but not configured. As the user manual says
After invoking Privoxy with --install, you will need to bring up the
Windows service console to assign the user you want Privoxy to run
under, and whether or not you want it to run whenever the system
starts.
What the user manual doesn't say is that one needs administrator privs
to be able to install a service, so a normal user is not going to be
able to interfere with an admin installing privoxy as a service.
In addition, I tried installing Privoxy as a service and couldn't get
the GUI to work :( Which could be my not knowing how2doit or because
services interacting with the desktop is no longer allowed. But with
no GUI when installed as a service I prefer Privoxy installing a link
in
%ALLUSERSPROFILE%\Microsoft\Windows\"Start Menu"\Programs\StartUp
to start privoxy when the user logs in.
I'm sorry, but I don't know how to do that; feel free to submit a patch.
I also don't know much about PowerShell but maybe you could create a
PS script using
https://learn.microsoft.com/en-US/windows-server/administration/windows-commands/sc-create
https://learn.microsoft.com/en-US/windows-server/administration/windows-commands/sc-delete
https://learn.microsoft.com/en-US/windows-server/administration/windows-commands/sc-query
to accomplish what you want?
Related
Feature Requests: #608
I agree that this would be a useful feature and would welcome patches too.
Also the documentation should probably be improved but as I currently don't have any Windows systems I'm not the right person to do it.