Written by D. G. Schneider ContactEZ.net

ContactEZ.net

How to create a Setup EXE or BootStrapper to run in elevated mode on VISTA

Create a Manifest file specifying the required level of execution for the setup package and embeded the Manifest file into the bootstrapper exe.

***********************************Example Manifest file***********************************
Executable: IsUserAdmin.exe
Manifest:IsUserAdmin.exe.manifest
Sample application manifest file:

<?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="IsUserAdmin"
type="win32"/>

<description>Description of your application</description>

<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="requireAdministrator"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
*********************************************end************************************

See the following links:

http://www.microsoft.com/downloads/details.aspx?FamilyID=ba73b169-a648-49af-bc5e-a2eebb74c16b&displaylang=en
Windows Vista Application Development Requirements for User Account Control Compatibility

You can also look at http://msdn2.microsoft.com/en-us/library/aa730839(VS.80).aspx
Authoring a Custom Bootstrapper Package for Visual Studio 2005

You can also look at the mt.exe file - http://msdn2.microsoft.com/en-us/library/aa375649.aspx

Related topics: MSI Automation, MSI Tables Overview, MSI Command Line, Create MSI Tables, MSI UAC VISTA, MSI Error Table, MSP VISTA, Install MSI SDK Tools V3.1.4Create CAB File, Build MSPs

Return Home - Index