Zum Inhalt springen
DeutschlandGPT

Controlling updates

When the app updates itself, how to control that by policy, what happens when older versions get a deadline and which emails your admins receive

On Windows, deploy the per-user installer -setup.exe and set the ForceAutoUpdate policy alongside it. The app then installs every new version itself, and you have nothing to do for any release. A deadline for older versions does not affect these devices as long as they are switched on regularly. They already run a newer version by then.

The MSI is worth it when your devices may only start programs from C:\Program Files, for example with AppLocker or WDAC, or when you want to test every version before releasing it yourself. It never updates itself. That has a cost: your IT rolls out every new version. When DeutschlandGPT sets a deadline for an older version, the update has to be on every device before the lock date, otherwise the app cannot be used there from that day on.

The same principle holds on the Mac and on Linux. An app bundle in /Applications or an AppImage that the signed-in user may write to keeps itself up to date. DEB, RPM and a read-only app bundle are yours to roll out.

When the app updates itself

The app can only update itself if it is allowed to replace its own installation. With the MSI that is not the case: it installs for all users of the device into C:\Program Files, where a standard user cannot write. A self-update would therefore not replace the managed installation, it would create a second copy inside the user profile.

The app detects this and turns automatic updates off. At startup it checks:

  1. Does the program live in C:\Program Files (Windows) or in an application bundle the signed-in user cannot write to (macOS)?
  2. Does the app run on Linux from a DEB or RPM, rather than from a writable AppImage? Only an AppImage can replace itself.
  3. Has an administrator disabled updates by policy?

If any of these applies, the app never checks for new versions and the update button does not appear. Rolling out new versions is then entirely up to you.

On the Mac this comes down to how tightly you lock /Applications. If the application bundle stays writable for the signed-in user, the app keeps itself up to date even when you deployed it through an MDM. If you want to control the timing anyway, set the policy in the next section.

An app started straight from the opened DMG or from the Downloads folder does not count as managed. It offers the update, cannot install it from there, and asks the user to move DeutschlandGPT into the Applications folder.

How the app updates itself

If the app may update itself, it downloads a new signed build in the background. It installs it only when nobody is working in the app: when you quit through the icon in the notification area or the menu bar ("Quit", on the Mac also ⌘Q), or on the next start, before the window appears. Closing the window does not quit the app, so it installs nothing. On Windows the installer briefly shows its progress. Anyone who does not want to wait restarts right away with the button in the sidebar.

If the automatic install of a version fails three times, the app stops trying. The version then stays available through the button.

Disabling automatic updates by policy

This policy applies regardless of the installation location, so it also covers an installation inside the user profile.

Windows. Value DisableAutoUpdate (REG_DWORD) under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\DeutschlandGPT. 1 disables updates, 0 or a missing value allows them. The same path under HKEY_CURRENT_USER is read as well, in case you want the policy to apply to individual users only.

REG
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\DeutschlandGPT]
"DisableAutoUpdate"=dword:00000001

Deploy it as a registry preference in a group policy, or as a PowerShell script in Intune:

POWERSHELL
New-Item -Path 'HKLM:\SOFTWARE\Policies\DeutschlandGPT' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\DeutschlandGPT' `
  -Name 'DisableAutoUpdate' -PropertyType DWord -Value 1 -Force | Out-Null

macOS. Create the file /Library/Application Support/DeutschlandGPT/managed-config.json. It deliberately sits outside the user profile so that only administrative processes and MDM payloads can write it.

JSON
{
  "disableAutoUpdate": true
}

The policy is read when the app starts, so a change takes effect on the next launch.

Enforcing automatic updates by policy

This policy turns the previous one around: the app no longer waits for anyone to agree. It downloads a new signed build in the background and does not wait for the app to quit. It shows a window that cannot be dismissed, counts down 60 seconds and installs. There is no "later" and no cancel. The only button shortens the wait, and it reads "restart now".

Those 60 seconds exist so that nobody loses a sentence they are typing. They are not a consent step: when they elapse the installation runs, whether or not anyone is at the machine. Installing restarts the app, like any other restart.

If the installation fails, for example because the download drops, the app tries again after 30 minutes. After three failed attempts it stops until the next start. If it cannot replace the application bundle at all, it stops right away. The regular update button stays available either way.

Windows. Value ForceAutoUpdate (REG_DWORD) under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\DeutschlandGPT, the same key as DisableAutoUpdate. 1 enforces updates, 0 or a missing value leaves the timing to the user as before. A string value (REG_SZ) containing 1 is accepted as well. The same path under HKEY_CURRENT_USER is read here too.

REG
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\DeutschlandGPT]
"ForceAutoUpdate"=dword:00000001

Deploy it again as a registry preference in a group policy, or as a PowerShell script in Intune:

POWERSHELL
New-Item -Path 'HKLM:\SOFTWARE\Policies\DeutschlandGPT' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\DeutschlandGPT' `
  -Name 'ForceAutoUpdate' -PropertyType DWord -Value 1 -Force | Out-Null

macOS. Put the same key into /Library/Application Support/DeutschlandGPT/managed-config.json. Both policies live in one file:

JSON
{
  "disableAutoUpdate": false,
  "forceAutoUpdate": true
}

DisableAutoUpdate wins. If both policies are set, updates stay off. A per-machine installation wins as well: with the MSI under C:\Program Files, with an MDM-deployed application bundle the signed-in user cannot write to, and with an installation from a DEB or RPM, ForceAutoUpdate has no effect at all. The built-in updater can only replace the per-user installation there and would otherwise create a second copy. Rolling out new versions stays with you in those cases.

For enforced updates on Windows that means: deploy the per-user installer -setup.exe (NSIS), in user context through Intune, and set ForceAutoUpdate. If you stay with the MSI, roll out every new version yourself, and do it before the lock date when DeutschlandGPT sets a deadline. The condition for that is the version endpoint in Detecting new versions.

On Linux the policy is not read, just like DisableAutoUpdate. It applies on Windows and macOS only, and it is read when the app starts.

When DeutschlandGPT requires an update

With updates switched off and the installed version still supported, nothing changes: the app works normally, it simply stops offering to install updates.

Whether and by when a version has to be replaced is set centrally by DeutschlandGPT, separately for Windows, macOS and Linux. A minimum version applies to everything below it. On top of that, individual versions or a range such as all 0.8 versions can be asked to update, for example when only those contain a bug. The app then gives the reason, and other versions are not affected. Such a request is either just a notice or it comes with a deadline. A build with nothing configured is not asked to update.

A deadline has two dates. From the first one, every installation that can update itself is blocked. That costs it little, because it gets the new version with one click. Managed installations are only blocked from the second, later date. They are the MSI, a per-user copy on a PC that also has the MSI, an app bundle deployed via MDM, DEB and RPM, installations with updates switched off, and devices whose network blocks updates. Without that second date they are never blocked. We agree it with you beforehand and announce it by email, see Emails to your organization's admins.

What users see

The app goes through three stages.

Notice. When a newer recommended version exists, a quiet notice appears in the sidebar. If the app may update itself, it is an update button. On a managed installation it says that your IT distributes the new version, on a per-user copy next to the MSI that the centrally installed app should be used. A request for specific versions appears instead as a notice at the top of the window, with the reason. It can be hidden.

Deadline. While a deadline runs, the app shows a notice at the top with the date and the required version. It can be hidden for the day. During the last three days before the cut-off it appears on every start. On a managed installation it contains a "Copy details for IT" button and, except for the MSI and an MDM-deployed app bundle, a link to the matching installer. For the MSI and the MDM bundle it says instead: "Your IT has to roll out this update. You cannot install it yourself." Without administrator rights the file could not be installed there anyway. A per-user copy on a PC that also has the MSI gets no link either; it asks the user to use the centrally installed app and remove the copy. The button puts the installed and required version, the cut-off date, the operating system and the link on the clipboard. The linked file follows the installation: the MSI for an installation under C:\Program Files and for a per-user copy next to it, the -setup.exe for any other installation inside the user profile, the DMG on the Mac and the AppImage for the machine's own CPU architecture on Linux. For an installation from DEB or RPM the link leads to the downloads page, because the app cannot tell which package format was used.

Block. From the first date, an installation that can update itself shows a window that cannot be dismissed. The button in it leads straight to a matching version, and work continues afterwards. Managed installations keep the notice until the second date. It can then no longer be hidden, and they can keep working. From the second date they also see a window that cannot be dismissed. It holds the same details for IT as the notice, but no update button.

If no published version meets the requirement yet, the app does not block. It shows the notice with a download link and the option to check again.

Versions before 0.15.0 know neither the notice nor the deadline, only a minimum version. They therefore always count as a managed installation and are only blocked from the second date, but then every installation type is, the MSI included. Until then they see nothing about the deadline. A request without a deadline never reaches them. A deadline for specific versions turns into a minimum version for them: a deadline for all 0.8 versions also blocks 0.7 and older there. Bring such devices up to date early, so your users see future deadlines in time.

Emails to your organization's admins

Before a deadline takes effect, DeutschlandGPT writes to the admins of the affected organizations. Recipients are all active members with the Admin role. We send these emails deliberately, not on a schedule. Each one carries the text in German and in English and links to this page. It names device counts per version, never people.

Announcement of a deadline

Subject: "DeutschlandGPT Desktop: ältere Versionen werden gesperrt / Older versions will be locked". You get this email when a deadline is announced for an operating system and a device with an affected version ran in your organization within the last 90 days. It arrives only once per deadline. For every affected version it lists how many devices update themselves and how many are managed installations, with the lock date for each group. If the date for managed installations is not fixed yet, the email says so.

What you have to do depends on the installation. An installation that can update itself downloads the new version in the background and installs it on the next quit or start. Anyone who never quits the app sees the notice until the date and updates with one click. For managed installations, roll out the current version through your software distribution before the date given. The download links are in the email.

Windows devices with an outdated MSI

Subject: "Bitte aktualisieren Sie die DeutschlandGPT Desktop-App / Please update your desktop app". This email goes to organizations in which a Windows device installed via MSI ran a version within the last 30 days that is no longer supported or that has a deadline running. Per version it lists the number of devices and the day from which MSI installations of that version are blocked. Where no date is set yet, it says so. It also names the target version and links to the MSI. Roll out that version through your software distribution.

When a new version is released, you may also get a short email with the download links. No deadline is attached to it.

Detecting new versions

To find out whether a newer version exists without a JSON parser, use the version endpoint:

BASH
curl -fsL https://www.deutschlandgpt.de/api/desktop/version/windows-msi

That works well as a condition in a scheduled task, an Intune script or a Jamf extension attribute. The full list of stable URLs is in the overview.

Network

Updates use their own addresses, which have to be allowed separately from the running app. The full list is on Network requirements.

Was this page helpful?