I recently setup additional agents as Windows services. Here are my rough 
notes:

 * Copy "C:\Program Files (x86)\Go Agent" to "C:\Program Files (x86)\Go 
Agent2"
 * Delete files in 'config' folder (guid.txt, token, etc)
 * Edit 'wrapper-config/wrapper.conf' to match new service name 
(wrapper.displayname, wrapper.description)
 * sc create GoAgent2 binPath= "C:\Program Files (x86)\Go 
Agent2\wrapper\wrapper-windows-x86-64.exe" displayName= "Go Agent2" start= 
auto
 * Go to Control Panel -> Services and set the logon account for GoAgent2
 * Use Regedit
  * copy ImagePath value from  
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Go Agent
  * Edit that value and paste to ImagePath at 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\GoAgent2
 * Start Service GoAgent2

On Tuesday, August 17, 2021 at 7:55:45 AM UTC-5 Emil wrote:

> Hi Fellas,
>
> Is it possible to have multiple agents installed on the same windows box, 
> windows is not mentioned in the docs 
> <https://docs.gocd.org/current/advanced_usage/admin_install_multiple_agents.html>
> ?
> I tried silent install. but I got the following in the log:
>
> Previous Install dir is C:\GoCD\agent, checking if upgrade is possible...
> Go Agent 21.2.0-12498 is already installed.
>
> Is there any workaround?
>
> Thanks,
> Emil
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/231e26f4-5063-4698-9f5a-75a40c6ee76dn%40googlegroups.com.

Reply via email to