Vista Shield Icon - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Vista Shield Icon

Hi
After installing the app with AA5 on a Vista machine, the desktop icon of the app will have Vista Shield Icon displayed. I know this is the Vista UAC. What can be done from the installer to set permission so that this will not be displayed? The current execution level is set to highest available.

Thanks

-Yishai
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Vista Shield Icon

Hi,

This happens because the application needs Administrator privileges to run. If you want to make the application run per-user (and not show the Vista shield) you can embed a manifest in main EXE of the application. The manifest file (which is basically an XML file) needs to be added as a resource to your EXE before compiling and building it.

If the EXE is already built you can use the Mt.exe tool to add the manifest. Note that you can find a manifest example in the MSDN.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Re: Vista Shield Icon

Thanks.

I am using AA6.1. It is a Java product and AA generates the EXE bootstrapper for the java app. The execution level is set to "highest available", and the documentation states that "When using an EXE bootstrapper or a Java product, Advanced Installer embeds an application manifest file with the selected execution level.". So:

1. is there a way inspect the exe to see maybe the manifist is not embedded?
2. If AA puts the right manifest, what else can cause Vista to put the shield icon?
3. If the user does not have administrator privileges, will that cause the shield to show in this settings?
4. Will changing it to "As invoker" help, and what are the disadvantage of "as invoker" vs. highest available?

Thanks

-Yishai
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Vista Shield Icon

Hi,
1. is there a way inspect the exe to see maybe the manifist is not embedded?
I'm afraid that you cannot inspect the Java launcher created by Advanced Installer. However, a manifest is always embedded in it according to the setting you used for the Java Product. Therefore, you don't need to add a manifest to the application.
2. If AA puts the right manifest, what else can cause Vista to put the shield icon?
The Vista shield is added because you are using the "Highest available" execution level. Since this level covers the Administrator users which have more privileges (a normal user can be elevated), the Vista shield will be shown. If you want to not show the Vista shield you need to use the "As invoker" execution level (the application will be executed with the privileges of the current user).
3. If the user does not have administrator privileges, will that cause the shield to show in this settings?
Please note that the "Highest Available" execution level will show the Vista icon for both normal and Administrator users.
what are the disadvantage of "as invoker" vs. highest available?
A full explanation for the execution level can be found in the MSDN.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”