Problem: A FlexApp needs admin rights to run/execute, but when setting the icon to Windows 8 Compatibility mode, the FlexApp runs/behaves normally.
Sometimes you may find an application does not behave the same after deployed as it does on the FPC.
For example, Micro Focus UFT One - The main FlexApp requires admin permissions to NOT get an error message while loading a license per user:
Non-Admin user:
Admin User:
The primary workaround found for this is: (And not just for UFT One, this goes for any application you are working with).
1. Run the FlexApp in your VDI. Log in. Apply the Windows 8 Application Compatibility mode to the shortcut:
2. Open Regedit.exe on the desktop you changed the shortcut properties for.
3. Check these two registry keys:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
4. In one or the other, you should see a REG_SZ entry for the application with a value of "~ WIN8RTM" (Ours is only in HKCU in this case).
5. As you can see, the application now has a flag set on it for Windows 8 Compatibility Mode.
6. You can either Export the Registry key to a .REG file, or just take a screenshot.
7. Edit the package in the FPC editor, and add the same registry key manually, OR: (Recommended)
8. Extend the package, double-click the .REG file you exported, import it, and then save the package again.
Now you should see the flag enabled on the newly saved FlexApp once you deploy it again to a user's desktop, and the first time they run it, will not get the corrupted license error message.
Note: Format & contents of the .Reg file used here:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files (x86)\\Micro Focus\\UFT One\\bin\\UFT.exe"="~ WIN8RTM"
Here are the registry values for every compatibility mode setting:
Windows 8 = "~ WIN8RTM"
Windows 7 = "~ WIN7RTM"
Windows Vista (Service Pack 2) = "~ VISTASP2"
Windows Vista (Service Pack 1) = "~ VISTASP1"
Windows Vista = "~ VISTARTM"
Windows XP (Service Pack 3) = "~ WINXPSP3"
Windows XP (Service Pack 2) = "~ WINXPSP2"
Windows 98 / Windows Me = "~ WIN98"
Windows 95 = "~ WIN95"
Product: FlexApp
Product Version: 6.8.4+
Expires on: 365 days from publishing.
Updated: Jan 4, 2024