elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Issue by recognizing DOTNET 4.7.2

Hello,
I have a Setup made from scrash with just one prerequisit (Dotnet 4.7.2) and the Framework will not be correctly detected.
On my Windows Server 2016, the registry Entry for DotNet contains 394802

Code: Select all

PS C:\Users\Administrator> Get-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" -Name Release


Release      : 394802
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
               Setup\NDP\v4\Full
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4
PSChildName  : Full
PSProvider   : Microsoft.PowerShell.Core\Registry

While Installation the AI_DETECTED_DOTNET_VERSION property will be correctly set:

Code: Select all

MSI (c) (14!E8) [16:52:40:037]: PROPERTY CHANGE: Adding AI_DETECTED_DOTNET_VERSION property. Its value is '4.6.2'.
Aktion beendet um 16:52:40: AI_DetectSoftware. Rückgabewert 1.
MSI (c) (14:4C) [16:52:40:037]: Doing action: AI_AppSearchEx
Aktion 16:52:40: AI_AppSearchEx. 
Aktion gestartet um 16:52:40: AI_AppSearchEx.
MSI (c) (14:A0) [16:52:40:037]: Invoking remote custom action. DLL: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSIA244.tmp, Entrypoint: DoAppSearchEx
Aktion 16:52:40: AI_AppSearchEx. Installierte Anwendungsprogramme werden gesucht
MSI (c) (14!D4) [16:52:40:037]: Note: 1: 2262 2: AI_AppSearchEx 3: -2147287038 
Aktion 16:52:40: . 
:  
MSI (c) (14!D4) [16:52:40:037]: Note: 1: 2262 2: AI_PreRequisite 3: -2147287038 
MSI (c) (14!D4) [16:52:40:037]: PROPERTY CHANGE: Adding AI_PrereqsFulfilled property. Its value is '1'.
but the prerequisit will not be installed.

It seams to me that this is an issue for Advanced Installer.

Regards, Éric.
Attachments
Install DotNet 4.7.2.aip
(17.95 KiB) Downloaded 427 times
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Issue by recognizing DOTNET 4.7.2

Hello Éric,

To be fully honest with you, since we are talking about a Windows Server machine here, I would believe that the issue is related to the fact that the setup can not download the resources.

From what I could see, the prerequisite is added as a web-installer, meaning that it needs to download the .NET Framework setup.

Usually, the Windows Server machines have an increased level of security, therefore some additional steps might be taken in order to allow the setup to download the required resources.

A way of testing this is by including the .NET Framework setup in your package (basically embed it in the setup, instead of adding it as a web-based installer). After doing so, please rebuild the project and retest this scenario. If .NET Framework is launched into execution, I'd say that this problem is related to the machine rather than the setup itself.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Issue by recognizing DOTNET 4.7.2

Hello Catalin,
thanks for your investigation.
No, that's not a problem with the web-installer. By including the runtime I got the same error.
Please give the aip, I send you, a try on Windows Server 2016. I'm nearly sure that AI do not correktly detect the version of OS (Windows-Server 2016) and so do not detect the missing prerequisit.

Regards, Éric,
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Issue by recognizing DOTNET 4.7.2

Hello Éric,
I'm nearly sure that AI do not correktly detect the version of OS (Windows-Server 2016) and so do not detect the missing prerequisit.
By this, do you mean that your .NET 4.7.2 launch condition is displayed before your prerequisite is installed?

If so, please note that this happens due to the "Check launch conditions before checking for prerequisites" option from "Prerequisites" page --> "Packages".

After unchecking that option, I have run a new test (on WinServer2016) and everything worked as expected:
first.png
first.png (216.79 KiB) Viewed 6468 times
second.png
second.png (82.15 KiB) Viewed 6468 times
third.png
third.png (257.04 KiB) Viewed 6468 times
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”