Bug in creating NAV ClickOnce on Server 2016 with mage.exe - Overwrites the 'publisher' field with the 'product' name

I have tried the described steps on both Server 2012R2 and Server 2016 and ONLY on Server 2016 it is an issue.

The bug happens on Server 2016 with both:

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\mage.exe
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\mage.exe

I'm running mage.exe to generate the ClickOnce installation from a batch file in my '\Customer\Deployment' directory:

cd ApplicationFiles
"c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\netfx 4.5.1 tools\mage.exe" -update Microsoft.Dynamics.Nav.Client.exe.manifest -FromDirectory .
cd ..
"c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\netfx 4.5.1 tools\mage.exe" -update Microsoft.Dynamics.Nav.Client.application -appmanifest ApplicationFiles\Microsoft.Dynamics.Nav.Client.exe.manifest -appcodebase "">mydomain.com/.../Microsoft.Dynamics.Nav.Client.exe.manifest"

Afterwards in the 4'th line of the ClickOnce Microsoft.Dynamics.Nav.Client.application file this is the result:

On Server 2012R2:
<description asmv2:publisher="Microsoft Corporation" asmv2:product="Microsoft Dynamics NAV 2018 for Customer"

On Server 2016:
<description asmv2:publisher="Microsoft Dynamics NAV 2018 for Customer" asmv2:product="Microsoft Dynamics NAV 2018 for Customer"

It happens even on a cleaninstalled Server 2016 with only the mage.exe and ClickOnce source files copied to it.

Can anyone cast some light on whey this happens?

Related
Recommended