I'm trying to deploy gitlab-runner on windows using chocolatey.
My intention is to install gitlab-runner in E:\gitlab-runner
directory, automatically register the runner and start it as a service
I executed the following line :
choco install -y gitlab-runner /InstallDir E:\gitlab-runner /Service --source https://mynexusproxy/repository/chocolatey-org/
and I got the following output :
Chocolatey v0.10.11
Installing the following packages:
gitlab-runner;/InstallDir;E:\gitlab-runner;/Service
By installing you accept licenses for the packages.
Progress: Downloading gitlab-runner 11.8.0... 100%
gitlab-runner v11.8.0
gitlab-runner package files install completed. Performing other installation steps.
Using previous gitlab-runner install path: e:\gitlab-runner
Installing x64 bit version
Added C:\ProgramData\chocolatey\bin\gitlab-runner.exe shim pointed to 'e:\gitlab-runner\gitlab-runner.exe'.
The install of gitlab-runner was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Second path fragment must not be a drive or UNC name.
Parameter name: path2
The gitlab-runner.exe is correctly downloaded in E:\gitlab-runner
but the register is not done and no service is created. A register_example.ps1 is also download in E:\gitlab-runner
.
What's wrong with my installation procedure ? Do I need to modify the register_example.ps1 with custom values ?