* First, the description of the install process how it goes here on Vista 32-bit:
1. I start offline install using a beta 2 of installer (released at Oct. 23, 2019) which is placed near tcmain_950b4.inf and totalcmd950b4x32_64.cab using a command:
totalcmdbetainst_(beta_2).exe tcmain_950b4.inf
2. Because of Zone.Identifier stream in totalcmdbetainst_(beta_2).exe I get a Windows warning that the installer is downloaded from internet, there I agree to start the installer.
3. With chosen "Update installed version" option, progress goes to 100 %.
4. While the dialog with 100% progress is still open, I get the same dialog to start the installer as in step 2.
Christian Ghisler explained: in this case the installer is restarted with higher user rights to write TC uninstall information.
5. If I cancel the installer restart in that Windows dialog about program downloaded from internet,
I get the following Error dialog:
Code: Select all
---------------------------
Error!
---------------------------
Error running program:
<path_to_installer>\totalcmdbetainst_(beta_2).exe
---------------------------
ОК
---------------------------
6. After I press OK in above Error dialog, I get a message about successful install:
Code: Select all
---------------------------
Installation Total Commander 9.50 beta 4 32+64bit
---------------------------
<localized with Windows UI language message about finished successful install>!
---------------------------
ОК
---------------------------
1) before a dialog in step 4 appears, progress is already 100%. It should be 99% and switch to 100 if user either finished the process restarted with higher rights or cancel such restart;
2) the install error (which has critical error icon in msg box) in step 5 and following message about successful install in step 6 are confusing because they're telling opposite things to user. I think either TC shouldn't show that error in step 5 at all, or show it with warning icon instead of critical one, and the message in step 6 should write that install is successful but the installer couldn't write uninstall information.
* Now comes up the UAC problem I mentioned.
On my system, if I confirm the installer install in step 5 (Downloaded from Internet warning), I don't get elevation request which should ask whether to start the installer with higher user rights (UAC / elevation request). Installer just silently restarts (invisible window), does the job writing mentioned info to registry, and then I get a message telling install finished successfully.
Christian Ghisler wrote that to make any fixes to the installer behavior, installer needs to know whether UAC is enabled on a system.
So on my Vista 32-bit, Security Center from Control Panel shows that UAC is disabled.
However, the registry key EnableLUA, which should indicate UAC state, is set to 1, and it looks like it means the UAC is enabled: source
So the question is: what is a correct and reliable way to check the UAC state on Vista and newer Windows?