Loading
InstallShield prerequisite "Microsoft ASP.NET Core 8.0 Runtime win-x64"

Can someone share the "Microsoft ASP.NET Core 8.0 Runtime win-x64" prerequisite? We have InstallShield 2016 and it doesn't include such a prerequisite.

Thanks.


  • You want to look under the registry keys:

     

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.AspNetCore.App

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x86\sharedfx\Microsoft.AspNetCore.App

     

    Then construct your .prq something like this: (This is for desktop runtime), but it will give you the idea.

     

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

    <SetupPrereq>

    <properties/>

    <conditions>

    <condition Type="2" Comparison="32" Path="HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.WindowsDesktop.App" FileName="8.0.6" ReturnValue="1" Bits="2"/>

    </conditions>

    <operatingsystemconditions>

    <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="4" ServicePackMajorMin="1"/>

    <operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" Bits="4"/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4"/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" ProductType="2|3"/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" BuildNumber="17763" PlatformId="2" CSDVersion="" ProductType="2|3"/>

    </operatingsystemconditions>

    <files>

    <file LocalFile="&lt;ISProductFolder&gt;\SetupPrerequisites\Microsoft .net Core\8.0.6\windowsdesktop-runtime-8.0.6-win-x64.exe" URL="https://download.visualstudio.microsoft.com/download/pr/76e5dbb2-6ae3-4629-9a84-527f8feb709c/09002599b32d5d01dc3aa5dcdffcc984/windowsdesktop-runtime-8.0.6-win-x64.exe" CheckSum="D9175CFD252F03FC2BAD1CED274D81BC" FileSize="0,58663408"/>

    </files>

    <execute file="windowsdesktop-runtime-8.0.6-win-x64.exe" cmdline="/q /norestart" cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010"/>

    <properties Id="{1C64EFB6-B503-4780-8758-EB7B973D4F35}" Description="This prerequisite installs the Microsoft .NET 8.0 Desktop Runtime (v8.0.6) - Windows x64 Installer!" AltPrqURL="http://saturn.installshield.com/is/prerequisites/Microsoft .NET 8.0 Desktop Runtime 8.0.6 (x64).prq"/>

    </SetupPrereq>

    Expand Post
    Selected as Best
  • You want to look under the registry keys:

     

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.AspNetCore.App

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x86\sharedfx\Microsoft.AspNetCore.App

     

    Then construct your .prq something like this: (This is for desktop runtime), but it will give you the idea.

     

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

    <SetupPrereq>

    <properties/>

    <conditions>

    <condition Type="2" Comparison="32" Path="HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.WindowsDesktop.App" FileName="8.0.6" ReturnValue="1" Bits="2"/>

    </conditions>

    <operatingsystemconditions>

    <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="4" ServicePackMajorMin="1"/>

    <operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" Bits="4"/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4"/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" ProductType="2|3"/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" BuildNumber="17763" PlatformId="2" CSDVersion="" ProductType="2|3"/>

    </operatingsystemconditions>

    <files>

    <file LocalFile="&lt;ISProductFolder&gt;\SetupPrerequisites\Microsoft .net Core\8.0.6\windowsdesktop-runtime-8.0.6-win-x64.exe" URL="https://download.visualstudio.microsoft.com/download/pr/76e5dbb2-6ae3-4629-9a84-527f8feb709c/09002599b32d5d01dc3aa5dcdffcc984/windowsdesktop-runtime-8.0.6-win-x64.exe" CheckSum="D9175CFD252F03FC2BAD1CED274D81BC" FileSize="0,58663408"/>

    </files>

    <execute file="windowsdesktop-runtime-8.0.6-win-x64.exe" cmdline="/q /norestart" cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010"/>

    <properties Id="{1C64EFB6-B503-4780-8758-EB7B973D4F35}" Description="This prerequisite installs the Microsoft .NET 8.0 Desktop Runtime (v8.0.6) - Windows x64 Installer!" AltPrqURL="http://saturn.installshield.com/is/prerequisites/Microsoft .NET 8.0 Desktop Runtime 8.0.6 (x64).prq"/>

    </SetupPrereq>

    Expand Post
    Selected as Best
  • Thank you a lot.

    Yes, I know I can create a prerequisite myself. I just didn't want to "invent a bicycle" as users with the latest InstallShield already have it ready for use.

    • This is always the problem with installshield. And the forum is mostly dead I think :(.

  • Here is what IS 2024 has for ASP.NET:

     

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

    <SetupPrereq>

    <properties/>

    <conditions>

    <condition Type="1" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET Core\Shared Framework\v8.0\8.0.8" FileName="" ReturnValue="" Bits="1"/>

    </conditions>

    <operatingsystemconditions>

    <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" ServicePackMajorMin="1"/>

    <operatingsystemcondition MajorVersion="6" MinorVersion="3" PlatformId="2" CSDVersion=""/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" ProductType="2|3"/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion=""/>

    <operatingsystemcondition MajorVersion="10" MinorVersion="0" BuildNumber="17763" PlatformId="2" CSDVersion="" ProductType="2|3"/>

    </operatingsystemconditions>

    <files>

    <file LocalFile=".\Microsoft .net Core\8.0.8\dotnet-hosting-8.0.8-win.exe" URL="https://download.visualstudio.microsoft.com/download/pr/ef1366bd-3111-468b-93da-17e6ccb057e1/1fac364775c1accb09b9ac5314179004/dotnet-hosting-8.0.8-win.exe" CheckSum="566CA9507194E4977246671998037530" FileSize="0,111950640"/>

    </files>

    <execute file="dotnet-hosting-8.0.8-win.exe" cmdline="/q /norestart" cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010"/>

    <properties Id="{344C5EE5-B34F-4E52-AB68-C01C08C619FF}" Description="This prerequisite installs the Microsoft ASP.NET Core Runtime (v8.0.8) - Windows Hosting Bundle Installer." AltPrqURL="http://saturn.installshield.com/is/prerequisites/Microsoft ASP.NET Core Runtime 8.0.8 - Windows Hosting Bundle.prq"/>

    </SetupPrereq>

    Expand Post

Loading
InstallShield prerequisite "Microsoft ASP.NET Core 8.0 Runtime win-x64"