When a ZENworks FTF installation package is to be deployed, say via a bundle, one needs to specify the TARGETDIR property to indicate where the files need to be copied. This value is the Program Files folder (%ProgramFiles%) for standard deployments. However, if deployments are customized and vary from location to location, its neither easy to remember the deployment location nor is it convenient to create a different bundle for each location.
This utility creates (or updates) an environment variable called 'ZENWORKS_TARGETDIR' which can be consumed by a ZENworks administrator to conveniently deploy an FTF installation package via a single bundle to multiple locations, independent of the "ZENworks home" value. You will need to ensure that this utility is run on a managed device prior to deploying an FTF installation package via a bundle. Thereafter, you will need to specify TARGETDIR=%ZENWORKS_TARGETDIR% in the MSI options of the FTF bundle.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.