Added the ManifestLongPathAware attribute

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7111 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2019-08-16 19:07:02 +00:00
parent f9fac78173
commit c0f3179285
11 changed files with 56 additions and 6 deletions

View file

@ -96,6 +96,7 @@ string generate(comctl comctl_selection, exec_level exec_level_selection, const
flags featureflags = spec.Flags;
dpiaware dpia = spec.DPIA;
const TCHAR *dpia2 = spec.DPIA2;
longpathaware lpa = spec.lpaware;
SupportedOSList& sosl = spec.SOSL;
const TCHAR *mvt = spec.MaxVersionTested;
@ -186,6 +187,12 @@ string generate(comctl comctl_selection, exec_level exec_level_selection, const
xml_aws += TtoCString(dpia2);
xml_aws += "</dpiAwareness>";
}
if (lpaware_notset != lpa)
{
xml_aws += "<longPathAware xmlns=\"http://schemas.microsoft.com/SMI/2016/WindowsSettings\">";
xml_aws += lpaware_false != lpa ? "true" : "false";
xml_aws += "</longPathAware>";
}
if (!xml_aws.empty())
{
xml += "<application xmlns=\"urn:schemas-microsoft-com:asm.v3\"><windowsSettings>";