I'm looking for a way to catch installing progress and exit code of .Net Framework 4.5 installer from in my VB app.
I have found this answer which is code in pascal (Inno Setup). I'm looking for same thing doing in VB.net or C#.
Dim prInfo As New ProcessStartInfo
prInfo.FileName = dotNetExePath '.Net Installer Path
prInfo.Arguments = "/q /norestart"
prInfo.UseShellExecute = True
prInfo.WindowStyle = ProcessWindowStyle.Normal
Dim proc As Process = Process.Start(prInfo)
I also found this documentation in Microsoft Docs. the code written in C++ both of languages unfamiliar to me. Thanks in advance