PacsSwitch keeps its scenarios, settings, logs, history, backups and captures in a data folder, C:\ProgramData\PacsLogic\DTRS4 unless you choose another one. Some sites keep application data on a separate drive, such as E:; this appendix explains how.
Choosing it at installation
On a new installation, the setup asks for the data folder (Installing and upgrading), or takes it on the command line with /DATADIR="E:\PacsLogic\DTRS4". The setup creates the folder with access for SYSTEM and Administrators only, and records it in the registry. Nothing else is needed.
How it works
The folder is recorded in the registry value DataDir (a string) under HKLM\SOFTWARE\PacsLogic\DTRS4, as a full path with a drive letter, or a UNC path. PacsSwitch reads it at every start; without the value it uses C:\ProgramData\PacsLogic\DTRS4. The application log names the folder in use at start-up ("Data folder ... (from the registry pointer)").
- PacsSwitch creates the folders it needs inside the data folder by itself.
- An empty data folder gives a fresh PacsSwitch with the starter scenarios and no license. The license, the SMTP password and the certificates are tied to this server and live in the data folder.
- If the drive is not ready, PacsSwitch refuses to start with a message, and writes
%TEMP%\DTRS_datafolder_error.log, rather than quietly making a second set of data on another drive. - The support view's workspace always stays under
C:\ProgramData\PacsLogic\DTRS4_Support.
Moving an existing installation
- Close PacsSwitch, stop the service (
DTRS.exe -stopproxy) and the monitor (DTRS.exe -monitor stop). - Copy the folder with its contents and permissions, for example:
robocopy "C:\ProgramData\PacsLogic\DTRS4" "E:\PacsLogic\DTRS4" /E /COPYALL. - Set the registry value
HKLM\SOFTWARE\PacsLogic\DTRS4,DataDir=E:\PacsLogic\DTRS4. - Start PacsSwitch. In Settings > Services, click Apply Account to Service & Tasks, because the service and the scheduled tasks hold the folder paths. PacsSwitch also offers to correct the service's folders when it notices they differ.
- Start the service, check the status page, and keep the old folder until everything works.
Removing the registry value returns PacsSwitch to C:\ProgramData\PacsLogic\DTRS4.
Good to know
- The drive must be ready when the service starts at boot. For a drive that comes up late, such as some SAN volumes, set the service to a delayed start, or make it depend on the service that mounts the drive.
- Antivirus exclusions (Appendix N) and server backups must follow the new path.
- Captures can grow large; a separate data drive also keeps them away from the system drive. Captures can also be stored on their own drive without moving the data folder: Captures > Settings > Store new captures in (Capture settings).
Related pages
This page was revised 2026-11-02.
← Appendix E. SSL certificatesAppendix G. Upgrade checklist →