Skip to content

Meson: Avoid UAC on 32-bit Windows for gtk-update-icon-cache

Chun-wei Fan requested to merge uac.meson.3 into gtk-3-24

Hi,

From the commit message (this is the backport of MR !3141 (merged) for gtk-3-24):

As the program executable name has 'update' in its filename, gtk-update-icon-cache.exe is considered to be an installer program on 32-bit Windows [1], which will cause the program to fail to run unless it is running with elevated privileges (i.e. UAC).

Avoid this situation by embedding a manifest file into the final executable that tells Windows that this is not a program that requires elevation.

Also make the autotools build files dist the new script and use the new script to generate the manifest and rc files, instead of hardcoding the generating bits in gtk/Makefile.am

Fixes issue #3632 (closed).

[1]: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc709628(v=ws.10)?redirectedfrom=MSDN, under section "Installer Detection Technology"

With blessings, thank you!

Merge request reports