Skip to content

Getting started

SofCat has two halves. A repository on any web server holds manifests, catalogs and the items themselves. An agent on each machine reads its manifest from that repository, keeps the required items in place, and lets a self-service app install the optional ones for standard users.

  1. Download sofcat-<version>-x86_64-setup.exe from the Download page and install it from an elevated prompt:

    Terminal window
    .\sofcat-<version>-x86_64-setup.exe /S

    The installer puts sofcat.exe, sofcat-ui.exe and sofcat-useragent.exe, the per-user helper, in C:\Program Files\SofCat, registers and starts the sofcat service, adds a Start-menu shortcut and an Add or remove programs entry, and registers the helper to run at logon. It ships no config.

  2. Write C:\ProgramData\SofCat\config.yaml and point it at your repository:

    url: https://example.com/sofcat/
    manifest: example_manifest
    catalogs:
    - example_catalog

    Or set the same keys from MDM or Group Policy, which win over the file (Managed settings).

  3. Restart the service:

    Terminal window
    Restart-Service sofcat

Everything the service writes lives under C:\ProgramData\SofCat; see Data directory.

To upgrade, run a newer setup.exe /S over the install. It stops and removes the service, replaces the program files, and registers and starts the service again; C:\ProgramData\SofCat stays as it is. The service keeps the config path it was registered with (-c). Its startup type goes back to Automatic and its account to LocalSystem, whatever they were changed to. Running the same version again restarts the service. A failed upgrade restores the previous program files and Add or remove programs entry, and reinstalls the previous service with the same config path. If the Services console or another program holds the service open, Windows only marks it for deletion, and the previous service cannot come back: there is none until that handle closes, and the next setup.exe then installs normally. A service that does not stop in time stays registered but may stay stopped until a reboot. The installer refuses a version older than the installed one, a sofcat service it did not install, a sofcat service whose command line was changed from the one sofcat.exe -serviceinstall registers, a config file the service could not read or parse, and an install made with /D=, which is not upgraded in place. The upgrade ends a running per-user helper and closes an open storefront. The helper starts again at the user’s next logon, or sooner when the service stores a changed plan; the storefront stays closed until the user opens it.

To remove SofCat, run "C:\Program Files\SofCat\uninstall.exe" /S. It removes the service and the program files, closes the storefront if it is open, and leaves C:\ProgramData\SofCat alone. The install and the uninstall record each step in the Windows Application log under the source sofcat; see Event log.

Release builds are Authenticode-signed; a build of your own is unsigned unless you set the signing variables.

Download sofcat-<tag>.pkg from the Download page. It is signed with a Developer ID and notarized, and built for Apple silicon (arm64) only. It needs macOS 13 or later. For an Intel Mac, build one on that Mac from a checkout with just pkg (see Developer notes for the toolchain); it is unsigned unless you set the signing variables. The release also has sofcat-<tag>-darwin-arm64.tar.gz, the same CLI, per-user helper and app without the installer.

Install the pkg, write the config and restart the daemon:

Terminal window
sudo installer -pkg sofcat-<tag>.pkg -target /
sudo install -m 600 -o root -g wheel config.yaml "/Library/Application Support/SofCat/config.yaml"
sudo launchctl kickstart -k system/ca.hrndz.sofcat

The package installs the app in /Applications, the CLI in /Library/Application Support/SofCat/bin/sofcat and a launchd daemon. The daemon keeps its state in /Library/Application Support/SofCat/Data, which only root can read. The config stays root-owned and 0600, since it can hold auth_pass. A configuration profile can set the same keys instead (Managed settings).

The repository is plain YAML and files served over HTTP(S):

  • a manifest per machine or group says what it gets: required items, optional items for the self-service app, removals and updates;
  • catalogs say what exists, with each item’s installer, version and checks;
  • the items themselves (.msi, .msix, .exe, .ps1, .nupkg, zips);
  • optionally icons/, the images the storefront shows for items that name one.

makecatalogs builds catalogs/<catalog>.yaml from the repository’s packages-info/*.yaml, each named after its item_name. It is a standalone binary for Linux, macOS and Windows, so the repository’s CI does not need a Windows runner. Run makecatalogs --check <repo_path> as a pull-request gate; it fails on a file whose item_name is not its file name.

makecatalogs import <repo_path> <installer> adds an installer to the repository, as munkiimport does for Munki. It copies the file in and writes its package-info file with the hash; see Add it to the repository.

Configuration lists the annotated example files to start from.