To install Tor as a Windows service, assuming it's installed in folder
C:\Tor, you need to first create its torrc configuration file,
for example:
echo( > C:\Tor\torrc
To test if the service with the settings file will start correctly:
C:\Tor\tor.exe -f "C:\Tor\torrc"
Now to install the Tor service:
C:\Tor\tor.exe --service install -options -f "C:\Tor\torrc"
To start and stop the service, use the following commands
(or set it to automatically start in the Services applet):
C:\Tor\tor.exe --service start
C:\Tor\tor.exe --service stop
To remove the service:
C:\Tor\tor.exe --service stop
C:\Tor\tor.exe --service remove
By default, the Tor service listens on port 9050,
which can be checked by the command:
netstat -aon | findstr ":9050"
But it's up to you to set each internet browser or application to use the
Tor Socks5 proxy, found at localhost port 9050.
For more details, see the article
How to install Tor and create Tor hidden service on Windows.
Here is a small test I did with the latest version.
The folder layout of the Tor folder has changed, but the rest works the same:
