Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Detecting .NET 8 desktop runtime is installed in Inno Setup

$
0
0

I use the following code in Inno Setup to install .NET 8 Desktop runtime:

function InitializeSetup: Boolean;var               dotNetDownloaderPath: string;  dotNetDownloaderArgs: string;  downloadResultCode: Integer;begin  Result := True;      dotNetDownloaderPath := ExpandConstant('{tmp}\windowsdesktop-runtime-8.0.3-win-x64.exe');  dotNetDownloaderArgs := '';  ExtractTemporaryFile('windowsdesktop-runtime-8.0.3-win-x64.exe');  // Run the downloader to fetch the .NET 8 runtime installers  Exec(dotNetDownloaderPath, dotNetDownloaderArgs, '', SW_HIDE, ewWaitUntilTerminated, downloadResultCode);    end;

It works but I need to skip installation in case .NET 8 Desktop runtime is already installed on the machine.Is it a registry key with which I can detect .NET 8 Desktop runtime is installed?Or please suggest some other way.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>