1
votes

In Inno Setup I do PrivilegesRequired=none.

This setting should prompt the UAC, if the user has Administrative privileges.

On some computers of Windows XP the UAC doesn't get prompted even though the Administrator is logged in, I verified this by checking the IsAdminLoggedOn setting and I saw that it was set to True.

Why is this happening?

1

1 Answers

2
votes
  • If IsAdminLoggedOn returns True, the installer is already running with Administrator privileges ("elevated").

    Note that there's no privileges separation in Windows XP. If the user you are running the installer with is the Administrator, you always have Administrator privileges. There's no UAC prompt in Windows XP.

    The only prompt you can get in Windows XP is "Run as" prompt that allows you to run an application/installer as a different user (usually the Administrator).

  • By using the (undocumented and deprecated) PrivilegesRequired=none, you actually tell Inno Setup explicitly not to elevate the installer, even when it is started not-elevated. That you usually get the UAC/Run As prompt anyway is solely because of Windows internal heuristics that detects that the .exe you are starting is an installer and will probably need to be run elevated.

    For details, see my question Make Inno Setup installer request privileges elevation only when needed.