Vista considerations

From ISXKB

Revision as of 21:48, 8 February 2007 by Uecasm (Talk | contribs)
Jump to: navigation, search

Windows Vista now includes a far stricter LUA system. This pretty much stops all applications making system wide changes without asking the user.

Inno 5.1.9 and later handles this fully for the install, and asks for elevated permissions so it can write anything it needs.

Due to this permission elevation, anything run from the install will also run with full access to the system. Whether your application is "Vista compatible" or not, this is a very bad idea. Unfortunately, Microsoft "forgot" to add the ability for en elevated application to drop them when running anything else so the only way around this is to add the OnlyBelowVersion: 0,6 on the [Run] entry to so the option is not available on vista.

Types of Installer

With the changes made in Vista, essentially now only two different "classes" of installer can be used:

  • Administrative
    • Runs with admin permissions (use PrivilegesRequired=admin)
    • Is expected to make changes to per-machine areas such as Program Files, HKLM, and/or the All Users profile
    • Must not make changes to per-user areas such as HKCU and the current user's profile
    • Fully supported by Inno Setup (all versions, although 5.1.9 and above is best under Vista)
  • Standard user
    • Runs with standard user permissions (use PrivilegesRequired=none)
    • Is expected to make changes to per-user areas such as HKCU and the current user's profile
    • Must not make changes to per-machine areas such as Program Files, HKLM, and/or the All Users profile
    • Not currently supported by Inno Setup.

Note that this means that administrative installs should not install Quick Launch icons, as they are per-user.

You might ask why the restriction on writing per-user data? It's because there is no guarantee that the user that the installer is running as (an admin) is the same user that requested the install be run (a standard user).

See also

Personal tools
Ads: