Announcement

Collapse
No announcement yet.

NET Framework

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NET Framework

    Hello,
    how do I determine which NET Framework version exists and if not then this should be installed first!

    Must be or should be NET Framework v2.0.50727 / v4.0.30319!
    Windows 7,8, 8,1 and 10

    Oh, where can I get the 2er?

    Thank you in advance for your Support

  • #2
    Use the dependencies, just copy the file inside the respective folder in AMS and use the return var to check the version.
    Attached Files

    Comment


    • #3
      Hi,
      the "det" file can not be opened and do not co-invest in dependency! How should I proceed here? Did not understand that unfortunately!

      Comment


      • #4
        -- This script returns the version of the highest .NET Framework installed

        function getDotNet()
        local strVersion = "0.0.0.0";
        local DotNet_Key;

        -- retrieve keys from the registry
        tNETVersions = Registry.GetKeyNames(3, "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP");

        Table.Sort(tNETVersions);

        for i, key in pairs(tNETVersions) do
        DotNet_Key = "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\" .. key;
        if (Registry.GetValue(HKEY_LOCAL_MACHINE, DotNet_Key, "Install", true) ~= "") then
        if (Registry.GetValue(HKEY_LOCAL_MACHINE, DotNet_Key, "Version", true) ~= "") then
        strVersion = Registry.GetValue(HKEY_LOCAL_MACHINE, DotNet_Key, "Version", true);
        else
        -- get the ver from the key name
        strVersion = String.Mid(key, 2, -1);
        end
        end
        end

        -- return last value (highest .NET Framework)
        return strVersion;
        end

        Comment


        • #5
          The code presented above does not work for .NET Framework 4.x. Also, *.det files cannot be used with Setup Factory, they are for AutoPlay Media Studio.

          The proper way to determine which .NET Framework is installed on the target computer is outlined in the Microsoft product documentation: https://docs.microsoft.com/en-us/dot...-are-installed

          If you need to install support for the old .NET Framework 2.0 or 3.5, install 3.5 SP1 first, then, if required, add support for the latest .NET 4 Framework, as they are backward compatible. At this time, this would mean installing 4.7.2.

          Ulrich

          Comment


          • #6
            Hello Ulrich,

            I realized this now via resources >> dependencies >> .NET 4 since Windows 7 3.5 (2.0 + 3.0) already exists if I interpret that correctly!

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎