I am working at a setup projct which will deploy a .net application. To speed up application startup, I use an attached custom action.
This .net executable, which calls ngen.exe, has the following lines embedded in the manifest:
Code: Select all
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
My custom action fails to execute when setup.exe is not started with administrator rights (right-click, execute as admin).
Can I change the embedded manifest in setup.exe or is there a way to elevate rights for my custom action?
Thanks for your help,
Alex
Edit: As you can imagine, I am wrestling with Vista UAC. I nearly forgot to mention that! ;o)