How to add a server application written in UNIGUI to startup?

Alen IBRIC
3 min readApr 15, 2021

This post is not about programming, but rather about Deploy applications and a little about administration.

The easiest way to host a UniGUI application on the StandAlone server is to simply drop the EXE file onto the server machine. Our EXE itself is a server program, so on the server machine we just need to run our EXE and open access to it. Let’s say on the Azure cloud this is done by adding EndPoints. But more on that another time. Here’s what we get

So, at the entrance we have a web application written in Delphi UniGUI, designed as an EXE and hosted on Windows Server R2 2008.

The task for today is simple — to add a task to the Task Scheduler to launch our EXE file after a system reboot. It will not start itself)) You can, of course, arrange it as a dll and add it to the IIS server, and then such a task does not need to be solved, but this is a separate story. How to do it?

In principle, there are already all the recipes on the network, but I decided to fix this for myself so as not to look for it all on the Internet.

Let’s start!

I have an English version of Windows Server

Открываем Control Panel\System and Security\Administrative Tools\Task Scheduler

We click 2 times and see this picture

Further, either through the wizard — launch Create Basic Task, or simply Create Basic Task — the main thing is to grasp the essence.

Find our task in the list and click on it 2 times, such a list will appear, once again find our task and go to properties

Next, be sure to do the following

Next, go to triggers and do 2! trigger

In principle, that’s all! The only thing in this situation is that our UniGUI application icon will not appear in the tray — well, God bless him! But after the reboot we get the following picture

More : www.delphifan.online

--

--