We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

burnersk
Posts: 44
Joined: Mon Mar 25, 2019 12:26 pm

Launch Conditions for .NET Framework 4.8 OS

Hi, I would like to share my launch conditions for the operating systems that supports .NET Framework 4.8... the regular "Launch Conditions" were not sufficient.

Code: Select all

(MsiNTProductType = 1 AND (VersionNT = 601 OR VersionNT64 = 601) AND ServicePackLevel >= 1) OR (MsiNTProductType = 1 AND (VersionNT = 603 OR VersionNT64 = 603)) OR (MsiNTProductType = 1 AND (VersionNT = 1000 OR VersionNT64 = 1000) AND WindowsBuild >= 1607) OR (MsiNTProductType <> 1 AND VersionNT64 = 601 AND ServicePackLevel >= 1) OR (MsiNTProductType <> 1 AND VersionNT64 = 602) OR (MsiNTProductType <> 1 AND VersionNT64 = 603) OR (MsiNTProductType <> 1 AND VersionNT64 = 1000 AND WindowsBuild < 1809) OR (MsiNTProductType <> 1 AND VersionNT64 = 1000 AND WindowsBuild >= 1809) OR (VersionNT > 1000 OR VersionNT64 > 1000)
Lets break it down...
  • Windows 7 with Service Pack 1 (or higher Service Pack)

    Code: Select all

    (MsiNTProductType = 1 AND (VersionNT = 601 OR VersionNT64 = 601) AND ServicePackLevel >= 1)
  • Windows 8.1

    Code: Select all

    (MsiNTProductType = 1 AND (VersionNT = 603 OR VersionNT64 = 603))
  • Windows 10 with build 1607 (or higher build number)

    Code: Select all

    (MsiNTProductType = 1 AND (VersionNT = 1000 OR VersionNT64 = 1000) AND WindowsBuild >= 1607)
  • Windows Server 2008 R2 SP1

    Code: Select all

    (MsiNTProductType <> 1 AND VersionNT64 = 601 AND ServicePackLevel >= 1)
  • Windows Server 2012

    Code: Select all

    (MsiNTProductType <> 1 AND VersionNT64 = 602)
  • Windows Server 2012 R2

    Code: Select all

    (MsiNTProductType <> 1 AND VersionNT64 = 603)
  • Windows Server 2016

    Code: Select all

    (MsiNTProductType <> 1 AND VersionNT64 = 1000 AND WindowsBuild < 1809)
  • Windows Server 2019

    Code: Select all

    (MsiNTProductType <> 1 AND VersionNT64 = 1000 AND WindowsBuild >= 1809)
  • all further major Windows OS

    Code: Select all

    (VersionNT > 1000 OR VersionNT64 > 1000)
I had researched the .NET Framework requirements (minimal OS version), here is the compiled list.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch Conditions for .NET Framework 4.8 OS

Hello,

Thank you very much for sharing your solution with us.

I am sure this will be of help for further users facing a similar scenario to yours.

However, as you have mentioned, your conditions are related to the operating system. Our predefined Launch Condition for .NET Framework only checks for the version of .NET Framework (based on what version you select) and, if that version is not present on the machine, the setup will fail.
LC.png
LC.png (132.59 KiB) Viewed 4296 times
However, you can also make use of our predefined "System" launch conditions. For instance, in the "Supported Operating Systems" field you can select on which operating systems your setup should run. This is similar to using the conditions as you have mentioned above:
LCSystem.png
LCSystem.png (130.72 KiB) Viewed 4296 times
Hope this helps somehow.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
burnersk
Posts: 44
Joined: Mon Mar 25, 2019 12:26 pm

Re: Launch Conditions for .NET Framework 4.8 OS

Hi Catalin,

thank you for your hints :)

However, I interpret the "Supported Operating Systems" launch conditions as "exact", meaning that only the selected OSes will be allowed and no future (currently unknown/unconfigurable) OS is covered. Same with future build numbers with e.g. the Windows 10 selection.
Maybe a checkbox like "Future Windows versions (version > 1000)" and e.g. "Future Windows XYZ versions (build > 1909)" would be a nice addition to the list.

Btw... implementing the suggested checkboxes would render my workaround useless, and would help me (and users with similar use cases) alot.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch Conditions for .NET Framework 4.8 OS

Hello,

You are always welcome! :D

In what regards what you have said, it is indeed true. However, when, for instance, a new version of Windows comes out, we try our best to be as quick as possible with adding the launch condition, therefore all you need to do is to rebuild your project so the condition is automatically added in the MSI database.

However, indeed, as you have mentioned, if you, for instance, build your project with AI 16.6.1 (which has a launch condition for Windows 10 version 1909 x64) and try to install it on Windows 10 version 2000 (random number here) x64, it will indeed fail. In this case, you will need a newer version of Advanced Installer which will contain that Launch Condition, otherwise it will probably fail.

Unfortunately, although your idea is nice, I am afraid that the request can not really be implemented as we can not know an OS version or build number before it is released by Microsoft.

Thank you for your understanding.

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

Return to “Building Installers”