pachwald
Posts: 11
Joined: Wed Oct 18, 2006 3:01 pm

Change bootstrapper's manifest

Hi!

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>
I use a bootstrapper called setup.exe to launch the installation. In the embedded manifest of setup.exe, only asInvoker is set.

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)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Alex,

Beginning with 4.7 version of Advanced Installer (released yesterday) the Execution Level for the Bootstrapper is configurable:
http://www.advancedinstaller.com/user-g ... apper.html

You can download Advanced Installer 4.7 here:
http://www.advancedinstaller.com/download.html

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
rpmala
Posts: 1
Joined: Fri Jul 24, 2009 9:16 pm

Re: Change bootstrapper's manifest

There is a new Windows 7 requirement to add a compatibility section in the Manifest file.
Please see article: http://msdn.microsoft.com/en-us/library ... S.85).aspx

....
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!--The ID below indicates application support for Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</application>
</compatibility>
....

Is there a new option to configure that in Advanced Installer?
Please advise.
Thanks.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Change bootstrapper's manifest

Hi,

This option already exists in Advanced Installer starting with version 7.0.

The manifest file of the Bootstrapper will contain the new manifest settings introduced in Windows 7 automatically. Older versions of Windows, XP for example, will ignore this part of the manifest file.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”