# Application Manifest options

**URL:** <https://clarionhub.com/t/application-manifest-options/4554>\
**Category:** questions\
**Tags:** windows\
**Created:** [October 22, 2021, 7:35am UTC](https://clarionhub.com/t/application-manifest-options/4554 "2021-10-22T07:35:29Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnM](https://clarionhub.com/user_avatar/clarionhub.com/johnm/32/6203_2.png) [@JohnM](https://clarionhub.com/u/JohnM)\
**Post date:** [October 22, 2021, 7:35am UTC](https://clarionhub.com/t/application-manifest-options/4554/1 "2021-10-22T07:35:29Z")

</div>

The Application Manifest tab has some options for which there is not much in the way of explanation;  
...

 ![image](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/f/f8dc671269a834d4ceb868567815c415a7091d98.png)

Why would we check/tick (or not) the following settings:

- **Do not use Themed Controls ?**  
-- is this, perhaps, an old XP setting ?

- **Set dpiAware to true ?**  
-- Dots-per-inch, presumably ??

- **Controls inside TAB**  
-- These settings (TRN versus COLOR) are mutually exclusive  
-- Why/when would one choose one over the other ?

- **SHEET controls do not use the OS Theme color**  
-- Is this related in any way with the first option (above) ?

_A follow-up question_: How do most developers configure their apps for basic user access (AsInvoker, presumably) ?

Regards, John M

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [October 22, 2021, 8:06am UTC](https://clarionhub.com/t/application-manifest-options/4554/2 "2021-10-22T08:06:50Z")

</div>

Haven’t you tried press F1 while on this page?

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [October 22, 2021, 9:09pm UTC](https://clarionhub.com/t/application-manifest-options/4554/3 "2021-10-22T21:09:33Z")

</div>

By the way, the generated manifest file contains incorrect or missing settings related to dpi (dpiAware, dpiAwareness), I’ve posted in newsgroups a template that fixes the issue.

---

<div class="post-metadata">

**Author:** ![JohnM](https://clarionhub.com/user_avatar/clarionhub.com/johnm/32/6203_2.png) [@JohnM](https://clarionhub.com/u/JohnM)\
**Post date:** [October 23, 2021, 6:30am UTC](https://clarionhub.com/t/application-manifest-options/4554/4 "2021-10-23T06:30:49Z")

</div>

> [@Mike\_Duglas](#):
>
> Haven’t you tried press F1

Yes, I have, Mike … that’s why I say there is not much in the way of explanation for any of the options that I list above. They’re mostly a complete mystery (other than what I might guess at).

For just one example (of the 4 I listed); what is “dpiAwareness” ?

John

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [October 23, 2021, 6:51am UTC](https://clarionhub.com/t/application-manifest-options/4554/5 "2021-10-23T06:51:04Z")

</div>

You can’t get there from the index. My machine’s off, but I think if you search for Application Manifest, you can find a hyperlink in the text of one of the choices, which opens a whole page of what you’re looking for.

---

<div class="post-metadata">

**Author:** ![JohnM](https://clarionhub.com/user_avatar/clarionhub.com/johnm/32/6203_2.png) [@JohnM](https://clarionhub.com/u/JohnM)\
**Post date:** [October 23, 2021, 7:23am UTC](https://clarionhub.com/t/application-manifest-options/4554/6 "2021-10-23T07:23:48Z")

</div>

> [@jslarve](#):
>
> I think if you search for Application Manifest, you can find a hyperlink in the text of one of the choices, which opens a whole page of what you’re looking for.

Thanks, Jeff - Unfortunately, tho, both methods take us to the same help-page, headed “Manifest Support”, where there’s no explanation for any of the options I’ve listed above.

I’m quite sure, tho, that they’re “non-mysterious” to many readers on this site … ?? ??

John

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [October 23, 2021, 9:31am UTC](https://clarionhub.com/t/application-manifest-options/4554/7 "2021-10-23T09:31:07Z")

</div>

About [dpiAwareness](https://docs.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process).

Generated manifest has following options:

```
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
  <dpiAware>true</dpiAware>
</asmv3:windowsSettings>

```

Correct manifest should look like this:

```
<asmv3:windowsSettings>
  <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True/PM</dpiAware>
  <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</asmv3:windowsSettings>

```

---

<div class="post-metadata">

**Author:** ![RexCalifornia](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@RexCalifornia](https://clarionhub.com/u/RexCalifornia)\
**Post date:** [December 25, 2021, 10:43pm UTC](https://clarionhub.com/t/application-manifest-options/4554/8 "2021-12-25T22:43:05Z")

</div>

re: **Set dpiAware to true**

I have been trying to get this setting to Work and have never been able to make this work via App + Manifest file generated by Clarion v10 or v11.

Per Mike suggestion, I made corrections to manifest to allow **dpiAware** setting to work, however this does not have any effect. Just recently, I noticed that CW generated manifest has this entry:

CW generated:

`<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">`

Correct Entry:

`<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">`

With above change, now I can see the effect of dpiAware.

[demo.zip](https://clarionhub.com/uploads/short-url/h4mnU0to6086okgdoHrPLlLK5WV.zip) (30.1 KB)

 ![cw_manifest_process_detail](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/5/5e4d012e4a1e1a381926cb77e36ed07a9a6aa103.png) ![win10_corrected_process_detail](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/7/79252275c8290362009923dff9b012a650491ec0.png)

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [December 26, 2021, 8:28am UTC](https://clarionhub.com/t/application-manifest-options/4554/9 "2021-12-26T08:28:27Z")

</div>

Attached is the template to fix manifest issue.  
[dpiAwareFix.tpl](https://clarionhub.com/uploads/short-url/hPZVPlIgJqMAGacaEVumQI8UQYE.tpl) (4.3 КБ)

---

<div class="post-metadata">

**Author:** ![RexCalifornia](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@RexCalifornia](https://clarionhub.com/u/RexCalifornia)\
**Post date:** [December 26, 2021, 7:48pm UTC](https://clarionhub.com/t/application-manifest-options/4554/11 "2021-12-26T19:48:11Z")

</div>

Thank you, Mike. This is really helpful and works perfect!!!

---

<div class="post-metadata">

**Author:** ![JaviTinfe](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e495f1/32.png) [@JaviTinfe](https://clarionhub.com/u/JaviTinfe)\
**Post date:** [January 5, 2022, 11:40pm UTC](https://clarionhub.com/t/application-manifest-options/4554/12 "2022-01-05T23:40:19Z")

</div>

Hi,

This JohnM said:  
A follow-up question: How do most developers configure their apps for basic user access (AsInvoker, presumably)?

How do they use it?  
What are the differences ?  
It could be that it is related for example to doing a RUN (‘notepad.exe’) and that the Notepad runs as Administrator?

I honestly do not understand what it is and what it is for and whether or not to include a manifesto.

---

<div class="post-metadata">

**Author:** ![JohnM](https://clarionhub.com/user_avatar/clarionhub.com/johnm/32/6203_2.png) [@JohnM](https://clarionhub.com/u/JohnM)\
**Post date:** [January 7, 2022, 12:12am UTC](https://clarionhub.com/t/application-manifest-options/4554/13 "2022-01-07T00:12:54Z")

</div>

My _very basic understanding_ is this, Javi;

Without a manifest, Windows assumes the worst (that the app. is capable of executing with extended permissions) and, therefore, each time is is invoked, it seeks OK from the user to allow it to proceed.

Providing a manifest allows the developer to define a specific level of capability for the app. For example, configuring it “AsInvoker” ensures the application will run with no more than the the same permissions as the process that started it … and, therefore, the user is not bothered by the UAC seeking OK-to-proceed.

The aim of my original question was to confirm my understanding, and to find out how most others configure their application manifests … but I didn’t receive much feedback along those lines.

Regards, John M

---

<div class="post-metadata">

**Author:** ![JaviTinfe](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e495f1/32.png) [@JaviTinfe](https://clarionhub.com/u/JaviTinfe)\
**Post date:** [January 7, 2022, 1:36am UTC](https://clarionhub.com/t/application-manifest-options/4554/14 "2022-01-07T01:36:35Z")

</div>

Too bad nothing was said about how they have configured the manifest.

John, I understand that according to the first image you attached, the best option is to set it the same: the first check mark is unchecked, and the next 3 checked. Correct ?

---

<div class="post-metadata">

**Author:** ![Jane](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@Jane](https://clarionhub.com/u/Jane)\
**Post date:** [January 7, 2022, 4:21am UTC](https://clarionhub.com/t/application-manifest-options/4554/15 "2022-01-07T04:21:35Z")

</div>

Javi,  
If you develop software, you NEED to understand the basics of manifests.  
Part of the confusion is that there is the basic Windows manifest which your app NEEDS. And you can configure the manifest to tweak certain things (such as DPI-awareness). And Clarion uses that tab for other things not directly related to the Windows manifest, such as tab coloration.

Without a manifest your program is subject to virtualization and other weird stuff.

For the basics of Windows manifests, you might read articles I wrote 15 years ago for clarionmag:

[https://clarionmag.jira.com/wiki/download/attachments/399450/cmag-2007-04.pdf?api=v2](https://clarionmag.jira.com/wiki/download/attachments/399450/cmag-2007-04.pdf?api=v2)  
[https://clarionmag.jira.com/wiki/download/attachments/399450/cmag-2007-05.pdf?api=v2](https://clarionmag.jira.com/wiki/download/attachments/399450/cmag-2007-05.pdf?api=v2)

jf

---

<div class="post-metadata">

**Author:** ![JohnM](https://clarionhub.com/user_avatar/clarionhub.com/johnm/32/6203_2.png) [@JohnM](https://clarionhub.com/u/JohnM)\
**Post date:** [January 7, 2022, 5:05am UTC](https://clarionhub.com/t/application-manifest-options/4554/16 "2022-01-07T05:05:17Z")

</div>

> [@Jane](#):
>
> For the basics of Windows manifests, you might read articles I wrote 15 years ago for clarionmag:

I remember reading your articles, all those years ago, Jane ! … They are the basis for my setting of Execution Level to: `asInvoker`

> [@JaviTinfe](#):
>
> John, I understand that according to the first image you attached, the best option is to set it the same: the first check mark is unchecked, and the next 3 checked. Correct ?

That’s how I have been setting the App. Manifest options, Javi - but, I’m not absolutely sure if that’s the best/correct way of doing so. That’s why I asked my original questions.

@Jane ; Might you be able to help us out here, with some explanation of the options offered in the Application Manifest (template) UI … See my OP, above.

Regards, John M
