Reinstalling and upgrading UPDD
When reinstalling or updating the driver software it may be desirable to retain previous settings and configurations. This document describes what the installer does with existing settings on each platform, how to save and restore settings yourself, the autoload settings, and moving from UPDD 6 to UPDD 7. It applies to UPDD 7 and UPDD 6.
Retaining settings may not be necessary in simple configurations, as it is likely to be easier to reapply any settings than to retain or restore them.
Considerations
Settings from an existing installation can be carried over to a new installation with the following considerations:
- This works when the newly installed software is the same as or newer than the overwritten installation. When the newly installed software is older than the overwritten installation the behaviour is not guaranteed. It will likely work in most cases but this will need to be verified on a case by case basis.
- The newly installed package must have support for all the currently installed devices.
- Any new settings based customisations in the newly installed package will be ignored.
- As the device binding settings are retained it is important that the installed devices remain connected in the same configuration.
What the installer does with existing settings
| Platform | Existing settings |
| Windows | Run the installer with the command line argument -R (retain settings; not case sensitive) and the software is upgraded with the existing settings retained, see Install UPDD on Windows. Without it the installer removes the existing settings database, unless the package was prepared as an upgrade. |
| Linux | The installer always removes the existing settings database and creates a new one from the package. To keep settings, save them before installing and restore them afterwards, as described below. |
| macOS | See For review below. |
Saving and restoring settings
The command line interface can export the settings of an installation to a file and import them into another one. This is the recommended method, and is described in How UPDD settings work.
Upgrade strategy
As an example, the settings of a system can be saved, the system re-imaged and the settings reinstalled. In this example w: is a network drive, but it could be any external writable media, such as a USB pen drive.
- Save the settings to an area not affected by the re-image:
upddutils export ** * w:\updd_settings.exp - Re-image the system and install UPDD.
- Reload the settings:
upddutils import w:\updd_settings.exp
On Linux and macOS the wildcards must be enclosed in quotes: upddutils export "**" "*" updd_settings.exp.
Device to monitor binding is not retained this way, as the information used to identify USB devices is specific to a computer; see How UPDD settings work.
dumpsettings and loadsettings
Earlier versions of this documentation described the upddutils options dumpsettings and loadsettings, which wrote the settings to and read them from updd_dump.sql in the UPDD data folder. Current builds of upddutils do not offer these options; use export and import instead.
Autoload settings
Two UPDD settings control the automatic loading of saved settings when the driver starts:
| Setting | Description |
| autoload_settings.path | Specifies the full path to a file containing saved settings. When the driver starts, if a file exists at the location identified by this setting and autoload_settings.done is not "1", the settings are loaded from the referenced file and autoload_settings.done is set to 1. |
| autoload_settings.done | If set (1) indicates that the settings have been autoloaded. See autoload_settings.path. |
This can be used to automate the restore stage of an upgrade by using a package with the autoload_settings.path setting predefined. This would have to be set by Touch-Base in your installation package. If using this approach you should ensure that autoload_settings.done is either undefined or set to zero in the saved settings; otherwise the autoload will be blocked.
Upgrading from UPDD 6 to UPDD 7
The installer does not carry UPDD 6 settings into UPDD 7. On Windows the UPDD 7 installer will not run until UPDD 6 has been uninstalled (see Install UPDD on Windows); on Linux the installer replaces the settings database. Note the settings you need, or export them, before removing UPDD 6, and reapply them after installing UPDD 7.
How licences carry over is described in Licensing: keys, seats, maintenance and evaluation.
For review
- dumpsettings / loadsettings are gone from upddutils. Both are commented out in 7.1 (
utils/main.cpp:4788-4797, since the 2021 take-on) and in 6.0 (06_00 utils/main.cpp:4658-4667); the usage text of the local 7.1upddutilslists export and import only. The driver still handles the operations (updd/upddmessagedispatcher.cpp:215-216,2023-2110), so only the command line was removed. The original procedure (screenshotsdumpsettings.png,UpgradeDump.png,upgradeload.png) was rewritten with export/import. Confirm this is the intended replacement. - Autoload file format. The driver still autoloads (
updd/updd.cpp:103-130), but it expects the dumpsettings SQL format (statements separated by/*sep*/), which upddutils can no longer produce, not an export file. Who prepares the file for a package (TBA?) should be stated, or the section narrowed to staff. - macOS. Whether the macOS installer keeps the settings database was not established: the delete in
install/osx/loadjobs.cpp:293is commented out, but the package scripts were not found in the source checked. Please fill in the macOS row. - Windows: without
-Rthe installer runspreinstall -removedb_unless_upgrade(inno/updd.iss:324-330), which keeps the database only when the package's bundle is marked as an upgrade (preinstall/main.cpp:143-203). The-Rdetail lives in install-windows. - Linux:
scripts/unix_install/install:303-316deletesdata/updd/db/updd.dbbeforeupdd -dbinitlog. - V6 to V7: whether a UPDD 6 export imports cleanly into UPDD 7 was not checked, so the text only says to note or export the settings. The retain.png screenshot (UPDD 6
.exename) was dropped; the V5 warning was dropped (V5 out of scope).