Making Self-Extracting Packages for Windows Vista compatible with UAC | |
Usually packages (especially Setup packages) made with Paquet Builder are designed to perform tasks only allowed by Windows if the end user has administrative privileges (like placing files into common folders, writing registry keys, registering shared files...). Windows Vista introduced a new security feature: User Account Control (UAC). UAC enables users to perform common tasks as non-administrators, called standard users in Windows Vista. By default, all users now are considered as standard users, even when they are logged on as administrators. If a task requires administrative privileges, a UAC prompt asks for the user's permission (or entering a password for instance if you are not an administrator) to continue.
Therefore some packages would not correctly work under Windows Vista because all users even administrators would run them as standard users. The solution is to mark your package with the correct requested execution level if it needs to perform tasks that require administrative privileges. Thus the package will require elevation to an administrator account. How to require elevationYour package .exe file must contain an application manifest, i.e. an XML file with special instructions. All UAC compliant applications should have a requested execution level added to the application manifest. Requested execution levels allow the system know the specific privileges required for a package.
If your package requires administrative access to the system, then marking the package with a requested execution level of "Require Administrator" will ensure that the system will identify this program as an administrative application and will perform the necessary elevation steps. Paquet Builder will then automatically add an UAC-compliant manifest to your packages. Paquet Builder Help - Copyright © G.D.G. Software. All rights reserved. |