Skip to content

msiexec silent install friendly .msi build of latest gitlab-runner

Notifications You must be signed in to change notification settings

darktoolz/runner-msi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing wixl

sudo apt install wixl

For Conditional setup using Feature, use distro with wixl v0.106. Ubuntu 25.10 can install wixl v0.106 by default. Or build your own from https://download.gnome.org/sources/msitools/0.106/

Building MSI

wixl -D VERSION=18.5.0 -o gitlab-runner.msi wixl-gitlab-runner.wxs

Silent setup MSI

Launch elevated CMD and paste modified command

msiexec /qn /i "gitlab-runner.msi" GITTOKEN=Token123 GITURL=http://github.com GITNAME=server1

TODO

  • Fix rewriting toml on Upgrade
  • CustomActions not working properly
    • replaced with modification of config.toml using IniFile

Passing arguments to .msi package

Create Property with Id="GITTOKEN", set default Value in case you don't provide launch argument when starting .msi

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
  <Package Id="GitLab-Runner.Msi" Name="GitLab Runner" Manufacturer="GitLab" Version="18.14.0">
    <Property Id="GITTOKEN"  Value="someDefaultToken" />

Pass your data to GITTOKEN property as launch argument:

  • PowerShell token with spaces
    msiexec /i "gitlab-runner.msi" GITTOKEN=`"Token with spaces`" GITURL=http://github.com
  • CMD token with spaces
    msiexec /i "gitlab-runner.msi" GITTOKEN="Token with spaces" GITURL=http://github.com

Creating/changing config.toml

  • Do not use a closed bracket as part of the section name

    TOML section wixl section name
    [[runners]] [runners

About

msiexec silent install friendly .msi build of latest gitlab-runner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published