<p>When installing subversion as a service, I used this command:</p>

<pre><code>c:\&gt;svnservice -install --daemon --root "c:\documents and settings\my_repository"
</code></pre>

<p>And then I got this error:</p>

<pre><code>Could not create service in service control manager.
</code></pre>

<p>After looking at some MSDN docs on the service control manager, I tried granting full control to everyone in the permissions on the registry key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services, but that hasn't had any effect.</p>

<p>Anybody know what I did wrong, or how to overcome this?</p>

<p><em>Note #1: I am running as an administrator on this box</em></p>

<p>*Note #2: I was following the instructions given <a href="http://blogs.vertigosoftware.com/teamsystem/archive/2006/01/16/Setting_up_a_Subversion_Server_under_Windows.aspx" rel="nofollow noreferrer">here</a>, so maybe my choice of directory is misguided.  And my repository is not actually called "my_repository".  I used the name of an actual project which is currently under source control in <em>gasp</em> VSS.*</p>

[{'answer_id': 12727, 'author': 'Eric Z Beard', 'author_id': 1219, 'author_profile': 'https://Stackoverflow.com/users/1219', 'pm_score': 0, 'selected': False, 'text': '<p>I\'ve never used the command line installer for this.  I assume you are downloading the latest from:</p>\n\n<p><a href="http://svnservice.tigris.org/" rel="nofollow noreferrer">http://svnservice.tigris.org/</a></p>\n\n<p>I run the installer, and then use the configuration tool (in the Start Menu, SVN Service, SVN Service Administration) to set it up.</p>\n'}, {'answer_id': 12730, 'author': 'onnodb', 'author_id': 1037, 'author_profile': 'https://Stackoverflow.com/users/1037', 'pm_score': 0, 'selected': False, 'text': "<p>The only thing I can currently think of, is the following: make sure you're running under an administrator account. That's absolutely necessary to install a service, AFAIK.</p>\n\n<p>Have fun with Subversion, btw :)</p>\n"}, {'answer_id': 12738, 'author': 'BrianH', 'author_id': 1484, 'author_profile': 'https://Stackoverflow.com/users/1484', 'pm_score': 0, 'selected': False, 'text': '<p>I\'d suggest you move your repository to somewhere a little safer, maybe "c:\\SVNRepo". </p>\n\n<p>I\'d hesitate to put the Repository in "Documents and Settings".  Is your repository actually called "my_repository"?</p>\n'}, {'answer_id': 12744, 'author': 'Joseph Sturtevant', 'author_id': 317, 'author_profile': 'https://Stackoverflow.com/users/317', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://www.visualsvn.com/server" rel="nofollow noreferrer">VisualSVN Server</a> installs as a Windows service. It is free, includes Apache, OpenSSL, and a repository / permission management tool. It can also integrate with Active Directory for user authentication. I highly recommend it for hosting SVN on Windows.</p>\n'}, {'answer_id': 12746, 'author': 'Jedi Master Spooky', 'author_id': 1154, 'author_profile': 'https://Stackoverflow.com/users/1154', 'pm_score': 0, 'selected': False, 'text': '<p>I recommend you tu use <a href="http://www.visualsvn.com/server/" rel="nofollow noreferrer">Visual SVN Server</a>. Very easy to install</p>\n'}, {'answer_id': 12756, 'author': 'crashmstr', 'author_id': 1441, 'author_profile': 'https://Stackoverflow.com/users/1441', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve followed the instructions given at the Collabnet site:</p>\n\n<p><a href="http://svn.apache.org/repos/asf/subversion/trunk/notes/windows-service.txt" rel="nofollow noreferrer">http://svn.apache.org/repos/asf/subversion/trunk/notes/windows-service.txt</a></p>\n\n<p>They use the windows SC to create the service (which runs svnserve).  This has worked for me without any problems (using svn 1.4 and 1.5)</p>\n'}, {'answer_id': 12762, 'author': 'Will Dean', 'author_id': 987, 'author_profile': 'https://Stackoverflow.com/users/987', 'pm_score': 1, 'selected': False, 'text': '<p>I think svnservice is obsolete, because since 1.4, svnserve itself has been able to run as a Windows service.  (svnserve comes as a part of the normal SVN binary distribution)</p>\n\n<p><a href="http://svn.apache.org/repos/asf/subversion/trunk/notes/windows-service.txt" rel="nofollow noreferrer">http://svn.apache.org/repos/asf/subversion/trunk/notes/windows-service.txt</a> contains the details of how to set it up.</p>\n\n<p>And the binaries you want are here:  <a href="http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91" rel="nofollow noreferrer">http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91</a></p>\n\n<p>But as others have said, there are now more friendly packages containing the svn stuff - VisualSVN Server (so badly named it makes me weep) and the Collabnet distribution - the later is Apache only, and is hand rolled on the thighs of virgins, which means that it always seems to appear about three weeks later than everyone else.</p>\n'}]
['https://Stackoverflow.com/questions/12718', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/672/']