title: Unable to install pgagent with application stack builder
body: <p>I'm trying to install pgagent in a windows environment. Postgresql version 9.6 is installed and application stack builder was installed with it. I have followed the steps, detailed <a href="https://www.pgadmin.org/docs/pgadmin4/4.14/pgagent_install.html#service-installation-on-windows" rel="noreferrer">here</a>.</p>
  
  <p>The first step in this guide is to create the extension in the maintenance db, and I am not able to do that.</p>
  
  <p><strong>"ERROR:  could not open extension control file "C:/Program Files/PostgreSQL/9.6/share/extension/pgagent.control": No such file or directory
  SQL state: 58P01"</strong></p>
  
  <p>Tryied to skip this step and go straight to the installation with application stack builder, but the pgAgent tool does not show up. </p>
  
  <p><a href="https://i.stack.imgur.com/g4b82.png" rel="noreferrer"><img src="https://i.stack.imgur.com/g4b82.png" alt="enter image description here"></a></p>
  
  <p>I also tried to install it as a service using the command line instead of stack builder.</p>
  
  <p><code>pgAent.exe INSTALL pgAgent -u postgres -p secret hostaddr=127.0.0.1 dbname=postgres user=postgres</code></p>
  
  <p>This worked to some degree. The only error I get is this.</p>
  
  <p><strong>"Windows could not start pgAgent service on the local computer. Error 1069: The service did not start due to a logon failure."</strong></p>
  
  <p>But I have tried all possible combinations of usernames, passwords, secrets, ports and so on....</p>
  
  <p>Any help would be much appreciated. </p>