Symptom
The PowerBuilder application cannot find the INI file when running in a Citrix environment.

Environment
PowerBuilder
Citrix
Windows Server OS

Cause
If an application is Terminal Server aware, it must not rely on INI files or write to the HKEY_CURRENT_USER registry during setup.

If you use /TSAWARE and your application still uses INI files, the files will be shared by all users of the system. If that's acceptable, you can still link your application with /TSAWARE; otherwise you need to use /TSAWARE:NO.

Resolution
Set the executable's TSAWARE flag to No (/TSAWARE:NO).
As a workaround, the TSAWARE attribute can be manually disabled in the EXE file by running the following command in the Developer Command Prompt for Visual Studio:

editbin /TSAWARE:NO <filename>.exe

To verify the TSAWARE setting, use the following command:

dumpbin /HEADERS <filename>.exe

Reference
https://learn.microsoft.com/en-us/cpp/build/reference/tsaware-create-terminal-server-aware-application?view=msvc-170
https://learn.microsoft.com/en-us/cpp/build/reference/editbin-options?view=msvc-170

0
0