0

I added DetectCondition to "~.wxs" as below. <ExePackage Id="NET480_INSTALL" ...

DetectCondition="(Netfx4FullVersion="4.8.04115") AND (NOT VersionNT64 OR (Netfx4x64FullVersion="4.8.04115"))"

But, I'm wondering if the 4.8.04115 is proper version for comparison input because the below .net framework 4.8 has different versions like both "File version" (4.8.4115.0) and "Product version" (4.8.04115.00) in properties as the below picture.

Would you please let me know which version info is proper one to be input with "Netfx4FullVersion=" ?

ndp48-x86-x64-allos-enu.exe

1 Answers1

0

I'm not sure that Netfx4FullVersion supports .net framework 4.8 - for example it will not work with .net 5. And it's a big problem.

Easiest way is to write custom action that will check version via registry and write result to variable. But you'll get only 4.8. This key will not work with .net 5. So I'll recommend to check both via custom action, because, for example, if .net 5 is installed you don't need to install 4.8 additionally. Here you can find my answer how to do it for .net core. It's the same as .net 5.

As option you can check this key using wix. Also not valid for .net 5.

ba-a-aton
  • 574
  • 1
  • 4
  • 14