KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Do not install to Protected Folders if using Automatic Client Update
PRODUCT: 4D | VERSION: 12 | PLATFORM: Win
Published On: April 13, 2012

As explained in Tech Tip 76405, Running 4D Applications from the "Program Files" Folder, there are many challenges that can be encountered when running 4D applications from a protected folder on Windows.

This is even more true for 4D Remote applications when the "Allow automatic update of client application" feature is used (found in the "Build Application" dialog on the "Client/Server" tab):



The automatic client update task is handled via a batch file named "upgclnt.bat". This file is located in the "4D Extensions" folder of the "4D Volume Desktop" package. The difficulty with installing the client software to a protected folder is that this batch file will fail without elevated privileges. Furthermore it will fail even with elevated privileges because of the Virtual Store feature. For these reasons, if the automatic client update feature is to be used, do not install the client application to a protected folder.

Important Note: the root of the boot drive is also a protected location on Windows. Do not install the client application to the root either. For example, instead of:

C:\My Cool App Client\My Cool App Client.exe


Install to a subfolder:

C:\My Cool App\The Client\My Cool App Client.exe


In other words when installing to the root of the drive create a "host" folder for all of the application files, including the client application. With this technique the automatic client update can be carried out normally. An added benefit is that all files related to the application can be consolidated into this host folder.