Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Compiled program icon has Windows Shield on it

Compiled program icon has Windows Shield on it

Compiled program icon has Windows Shield on it


I've had some issues recently with programs I compile where the program icon has the Windows shield overlaying it meaning the program needs to run with elevated permissions. In the programs 3it's happening on there is nothing radically different to other programs I've written.

Does anyone know why this is happening?



RE: Compiled program icon has Windows Shield on it

I suspect that your program is compiled as legacy code, i.e. it lacks a manifest that marks it "Vista aware." This is indicated in the manifest through the presence of a valid <trustInfo/> section.

If your program doesn't have this then Windows considers it legacy code and does a number of appcompat analyses on it when first run. In this case it has probably rolled the dice and decided your program is some legacy scripted setup that should run elevated. The heuristics look at the name of the file and several of the extended properties for keywords. If your program "smells like" a legacy setup then a rule for it gets added to the appcompat database marking it as "elevation required."

One way around this is to change the name of the file and the contents of the extended properties. Another is to apply a proper manifest, preferably one compiled in or wedged in after the fact as a resource.

That skips quite a few appcompat checks, making the program start quicker as well as eliminating elevation when not required. When it is required <trustInfo/> can request that too.

RE: Compiled program icon has Windows Shield on it

>If your program "smells like" a legacy setup ...
Which often means the exe has a name like or including strings like 'setup', 'update', 'upgrade', 'install' etc. e.g. SETUP.EXE
What exe file names are you using?

RE: Compiled program icon has Windows Shield on it


I can't believe it was something as simple as the name of the exe. The half dozen or so programs I've had this problem with have all got 'update' in the program name.

After changing the program names and re-compiling, they're all fine now.

Thanks for your help.

RE: Compiled program icon has Windows Shield on it

Don't you think this help deserves a star? Or two...

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close