[izpack-devel] Vista

Stefan Wachter stefan.wachter at gmx.de
Tue Mar 20 19:20:00 CET 2007


Hi Markus,

here is an application manifest that requires administrator privileges for an executable:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
   <assemblyIdentity version="1.0.0.0"
      processorArchitecture="X86"
      name="setup"
      type="win32"/>
   <description>Installiert das PolFHa</description>
   <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
     <security>
       <requestedPrivileges>
         <requestedExecutionLevel
           level="requireAdministrator"
           uiAccess="false"/>
         </requestedPrivileges>
        </security>
   </trustInfo>
</assembly>

It seems that the encoding must be UTF-8 because otherwise an error is reported. In addition, 
uiAccess="false" must be set (uiAccess="true" causes an error; the application is allowed to open a 
window even if uiAccess="false").

There seems to be a difference between the privileges an executable gets if it is named "setup.exe" 
and the privileges it gets with the above manifest!

In my case invoking the setup without the above manifest created shortcuts in 
"ProgramData\Microsoft\...\Start Menu\...", i.e. for all users whereas invoking the setup with the 
manifest created shortcuts in "\Users\swachter\AppData\...\Start Menu\..", i.e. for the current user 
only.

I am not using the IzPack shortcut mechanism but the OrangeVolt Ant tasks. However, maybe IzPack 
shortcuts show the same strange behaviour!

--Stefan




More information about the izpack-devel mailing list