Documentation

Configuration, parameters, and commands

DW2WIN reads login settings from the Windows registry and export settings from an IEF parameter document in DocuWare. This page lists every wizard field, parameter, and command.

Installation

Deploy on Windows

Download setup.exe and DW2WIN-3.4.0.msi into the same folder, run setup.exe and follow the wizard, or configure the service and tasks later from an elevated command prompt. From version 2.4.0 onwards, DW2WIN requires the .NET Desktop Runtime 9. setup.exe installs it if it is not already present.

Setup wizard

The MSI wizard guides you through the following steps:

  1. Terms and conditions — accept the license agreement.
  2. Existing settings — only shown when DW2WIN settings are already in the registry. Keep existing settings skips the next two steps, Enter new credentials replaces them.
  3. DocuWare connection — DocuWare server URL, customer id, and optionally the name of the parameter document. URL and customer id are required.
  4. DocuWare sign-in — username and password, and optionally an impersonated user for trusted-user sign-in. Username and password are required.
  5. Startup mode — select how DW2WIN should run:
    • Skip — copies files only. No service or task is created.
    • Windows service — registers the DW2WIN service and two Task Scheduler tasks (DW2WIN Start, DW2WIN Stop) under \itarius\.
    • Scheduled task — creates \itarius\DW2WIN, which runs DW2WIN.exe --nopause hourly.
  6. Installation directory — choose where DW2WIN files are placed. The default is C:\Program Files\itarius\DW2WIN.
  7. Confirmation and install — review the choices and start the installation.

The service is installed but not started. All scheduled tasks are created disabled and must be enabled manually. See Default task schedule.

Wizard inputs

The setup wizard stores these values in the Windows registry under HKLM\Software\itarius\DW2WIN:

FieldDescription
CUSTOMERCustomer id for licensing.
USERDocuWare username. With trusted-user sign-in, this is the trusted user. See Credential modes for special values.
PASSWORDDocuWare password. The wizard masks it and it is not written to the install log.
URLDocuWare server URL.
TRUSTEDUSERImpersonated user, optional. Only used with trusted-user sign-in: DW2WIN signs in as USER and acts as this user.
DATEINAMEName of the IEF parameter document in DocuWare, optional. The default is IEF.

Post-install commands

From an elevated prompt you can install or adjust automation later:

DW2WIN install-service
DW2WIN install-task
install-service
Registers the DW2WIN service and the Start/Stop tasks.
install-task
Creates the hourly scheduled task.

First-run initialisation

After installing, initialise the IEF parameter table for your configuration group:

DW2WIN init --group=DW2WIN.MyCompany

The --group argument is required for new configurations. Use the format DW2WIN.<id>. This creates the basic IEF settings in the IEF archive. See the init command for every option.

IEF archive must be created manually

For the time being, you must create the IEF archive in DocuWare manually, or import its definition file. DW2WIN init can then create or update the IEF parameter document inside the archive, but it does not create the archive itself.

Parameter names and values are listed under Parameters.

Configuration

Parameter table

DW2WIN is configured through a parameter document stored in DocuWare (the IEF archive). Each configuration group (DW2WIN.<id>) holds the settings below. Use DW2WIN init --group=... to create or update parameters.

Global parameters

ParameterDescriptionRequiredMulti
exportIntervalInterval in minutes between transfer runs when running as a service.NoNo

When running as a Windows service, exportInterval must be greater than 0. A value of 0 performs a single export and exits, which is only suitable for scheduled-task or on-demand execution.

Group parameters

ParameterDescriptionRequiredMulti
archiveDocuWare file cabinet name to export from.YesNo
mandantDocuWare index field. The value of that field is inserted between the basis folder and the mapping folder.NoNo
exportBasisFolderBase folder path for exported files.

Example: D:\Export

NoNo
fileTransferMappingsTarget folder for a field value, one row per line: field,value,folder. More value,folder pairs can follow on the same line. default matches every other value.

Example: DATEIART,dw2sepa,SEPAFiles,dw2csv,CSVFiles,default,OtherFiles

NoYes
exportFilterFileTransferWhich documents to export, one field,expression row. The expression uses DocuWare search syntax.

Example: DATEIART,dw2sepa* OR dw2csv*

NoYes
statusUpdateDocuWare index field updated after export. A field name alone stores a timestamp. Documents are exported only while this field is empty, unless a filter already names the field.NoNo
statusUpdateForExportIndex fields written after a successful export, one field,value row. The value timestamp stores the current time.

Example: STATUS,exported

NoYes
stampDocuWare stamp placed on the document after export. The value is the stamp's display name, then =, then the index fields printed on the stamp, separated by commas.

Example: ApprovedStamp=BETREFF,COMPANY

NoNo
layersAnnotation layers to include in the export.NoNo
firstSectionOnlyExport only the first section of each document.NoNo
keepAnnotationsExport documents as PDF with stamps and annotations. E-invoices identified by eInvoiceField keep their original file unless forcePDF is enabled.NoNo
defaultFileTypeFile format used when keepAnnotations is off (PDF, Auto, or zip). Defaults to PDF, or Auto for the legacy IEF2WIN group.NoNo
eInvoiceFieldDocuWare index field that marks ZUGFeRD / Factur-X e-invoices. A document is treated as an e-invoice when this field is set to anything other than empty.NoNo
forcePDFAlso convert e-invoices to PDF when keepAnnotations is on. Annotations are kept; the embedded XML is removed.NoNo
fileNameFieldDocuWare index field used as the exported file name. The extension still comes from the downloaded document. If the field is empty, DW2WIN uses the DocuWare download name.NoNo
fileNameIncludeDocIdAppends the DWDOCID before the extension (invoice.12345.pdf). On by default. Set to false to keep the base name only.NoNo

Multi-value parameters can have multiple rows in the parameter table for the same group. The group name convention is DW2WIN.<id> (for example DW2WIN.MyCompany). Legacy groups DW2WIN, DW2WIN2, and IEF2WIN are also supported.

mandant is placed between exportBasisFolder and the mapping folders, so the basis folder must be set and those folders must be relative. UNC or drive-absolute mapping folders are valid only when the basis folder and the mandant are both empty. A configuration that breaks this is not used.

Documents are first downloaded into a hidden .dw2win folder and then moved to their export folder. The folder is <exportBasisFolder>\.dw2win, or %TEMP%\.dw2win without a basis folder. After the move, the file gets the permissions inherited from its export folder. That needs the right to change permissions, otherwise a warning is logged.

Annotation export and e-invoices

If keepAnnotations is on, DW2WIN exports most documents as PDF so stamps and annotations are included. E-invoices identified by eInvoiceField are left in their original format (usually XML) so the embedded invoice data is kept. If keepAnnotations is off, DW2WIN uses defaultFileType instead. XML and ZIP files are always exported as-is.

If you also enable forcePDF, e-invoices are converted to PDF as well. That removes the embedded XML, so the exported file is no longer a ZUGFeRD or Factur-X e-invoice.

Commands

CLI reference

Run DW2WIN help for the full CLI reference, or DW2WIN help <command> for one command.

init

Ensures the parameter document or table exists in the IEF archive and appends any missing parameters. Run this after a fresh install or when adding a new configuration group.

DW2WIN init [-i|--iefdateiname=<name>] [-a|--archive=<fileCabinet>]
DW2WIN init [-i|--iefdateiname=<name>] -g|--group=<group> [-a|--archive=<fileCabinet>] [-f|--force]
  • init (no --group) — append missing parameters for all existing config groups.
  • init --group='<'group'>' — append missing parameters for that group. Existing values are not overwritten.
  • init --group='<'group'>' --force — destructive overwrite. Deletes all rows for the group and prompts for confirmation (y/N).

Parameters: -g, --group=<group> (use DW2WIN.<id> for new configs, for example DW2WIN.MyCompany), -a, --archive=<fileCabinet>, -i, --iefdateiname=<name>, -f, --force.

# Create a new config group for "MyCompany" using the "Invoices" file cabinet
DW2WIN init --group=DW2WIN.MyCompany --archive=Invoices

# Re-create defaults for an existing group (destructive, asks for confirmation)
DW2WIN init --group=DW2WIN.MyCompany --force

# Append missing parameters to all existing groups
DW2WIN init

install-service

Registers DW2WIN as a Windows service and creates the Start/Stop scheduled tasks under \itarius\. Must be run from an elevated command prompt.

DW2WIN install-service

After installation, start the service with `DW2WIN start` or enable the scheduled tasks to automate start and stop times. See Default task schedule.

install-task

Creates \itarius\DW2WIN as a scheduled task that runs DW2WIN.exe --nopause hourly during business hours. Use this when you prefer task-based execution over a long-running service.

DW2WIN install-task

The task is created disabled. Enable it in Task Scheduler when ready.

uninstall

Removes the DW2WIN Windows service and any generated scheduled tasks if present. Files on disk are not deleted. Run from an elevated command prompt.

# Stop the service first, then uninstall
DW2WIN stop
DW2WIN uninstall

start

Starts the DW2WIN Windows service. The service runs transfers on its configured schedule until stopped.

DW2WIN start

Equivalent to sc start DW2WIN or starting the service in the Services console.

stop

Stops the DW2WIN Windows service gracefully. Any in-progress transfer completes before the service exits.

DW2WIN stop

Equivalent to sc stop DW2WIN or stopping the service in the Services console.

status

Displays the local install state: registry settings (no password shown), service registration, scheduled tasks, and the startup mode they add up to. Inconsistencies, such as a registered service and hourly task at the same time, are listed as issues. Does not start the service or run a transfer.

# Show install state
DW2WIN status

# Also verify DocuWare connectivity using stored registry credentials
DW2WIN status --check

-k, --check attempts a DocuWare login to verify that credentials and the server URL are valid.

dry-run

Connects to DocuWare, validates the selected export configurations, probes the export folders, runs the export query, and previews sample target paths. Does not download files or update document indexes.

DW2WIN dry-run
DW2WIN dry-run --configurations=DW2WIN.MyCompany
DW2WIN dry-run --configurationPattern=DW2WIN.*

Uses the same credential and configuration options as a normal run, including --dwdocid.

help

Prints the full CLI reference, or detailed usage for a single command.

# Show all available commands
DW2WIN help

# Get detailed help for a specific command
DW2WIN help init
DW2WIN help status

Global options

OptionDescription
-i, --iefdateiname=<name>Selects the parameter document by DATEINAME.
-s, --configurations=<g1,g2>Run only the listed config groups (comma, semicolon, or pipe separated).
-x, --configurationPattern=<pattern>Select configs by wildcard (*, ?) or regex (re:<regex>).
-r, --runconfig=<mode>How login settings are loaded. The default is registry. Modes: registry, test, commandline.
-c, --customer=<customer>Customer id for licensing.
-p, --password=<password>DocuWare password, when not using stored credentials.
-n, --nopauseDo not wait for a keypress on exit.
-d, --dwdocid=<id>Export only the document with this DocuWare DWDOCID. Replaces the configured export filters for that run.

Options use a long form (--name) and a short form (-x). Values may be given as --name=value or --name value. Direct runs and the Windows service ImagePath accept the same arguments.

"C:\Path\DW2WIN.exe" --runconfig=registry --configurations=DW2WIN.MyCompany
DW2WIN --nopause --dwdocid=12345

Reference

Definitions and defaults

Credential modes

The USER installer property controls how DocuWare credentials are handled:

KEEP or empty
Leaves existing registry settings unchanged. Only explicitly provided values are updated. This is what Keep existing settings in the wizard and a silent upgrade without USER do. If no settings exist yet, the installation stops.
WS
Command line only. Retrieves the credentials for the provided CUSTOMER/PASSWORD combination from the itarius server and stores them in the registry. The wizard then skips the settings and credential steps.
Any other value
The entered credentials are written directly to the registry, overwriting any existing settings. URL, CUSTOMER, USER, and PASSWORD are required.

For unattended installations, pass the fields as properties to msiexec. STARTUPCHOICE selects the startup mode: Service, ScheduledTask, or Skip.

msiexec /i DW2WIN-3.4.0.msi /qn USER=WS CUSTOMER=mycompany PASSWORD=secret STARTUPCHOICE=Service

With /qn or /qb, the installer shows no message boxes. Notices are written to the install log and questions, such as whether to upgrade, are answered with yes.

Default task schedule

These are the default schedules. You can adjust triggers, times, and frequency in the Windows Task Scheduler.

TaskSchedule
\itarius\DW2WIN StartMonday–Friday at 07:00
\itarius\DW2WIN StopMonday–Friday at 19:00
\itarius\DW2WINHourly, Monday–Friday 07:00–19:00