Menu

#608 Option to silently install as a service

future
open
nobody
None
5
2024-02-13
2024-01-25
No

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)

Related

Feature Requests: #608

Discussion

  • Lee

    Lee - 2024-01-28

    On Thu, Jan 25, 2024 at 4:40 AM Miguel Nieto wrote:

    [feature-requests:#608] Option to silently install as a service

    Status: open
    Group: future
    Created: Thu Jan 25, 2024 09:40 AM UTC by Miguel Nieto
    Last Updated: Thu Jan 25, 2024 09:40 AM UTC
    Owner: nobody

    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.

    --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.

    It could be nice to add a second paramter to install quietly (or with a console message)

    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

  • Fabian Keil

    Fabian Keil - 2024-02-13

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB