This page guides you step by step through the easiest and quickest way to update a DPE Nano Services Installation.
Current Situation
-
DpeNanoServices is running as a windows service with the service name DpeNanoServices,
e.g. from C:\MyDpeNanoServices -
The new version of DpeNanoServices delivered by DAVID Systems is copied to a local temporary folder
e.g. C:\Temp\20251204_DpeNanoServices_1.4.49 -
A command-line terminal with Administrator privileges is open and the current directory in the terminal is changed to the folder of the new version
Update
Enter the following command
DpeNanoServices /update
or if your service installation uses a different name, e.g. NanoTest instead of the default DpeNanoServices
DpeNanoServices /update=NanoTest
This will do everything for you
-
It creates a new folder in parallel to the currently executing DpeNanoServices, taking the existing folder name and postfixing the name with the new version and a timestamp,
e.g. C:\MyDpeNanoServices.1_4_49_20251204113635 -
It copies the files of the new version to this folder
-
It copies some files of the currently running DpeNanoServices to this folder, e.g.
the file appsettings.json
the file StartupScript.bat
the folder Features which contains the DPE licenses
the folder wwwroot -
It starts DpeNanoServices from the new folder in a warmup mode and stops it after a few seconds. This will decrease the downtime when switching execution from old to new version
-
It changes the service registration (binPath) to refer to the new folder. All command-line parameters for the service registration are kept
-
The folder with the previous DpeNanoServices remains unchanged
-
NOW THE SWITCHING STARTS
-
It stops the currently executing service
-
It starts the service from the new folder
-
The switching normally takes less than 2 seconds