0

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

GSerg
  • 73,524
  • 17
  • 153
  • 317
samgi
  • 123
  • 8
  • 1
    How are you going to run your vb.net app if you haven't installed the framework yet? – GSerg Jan 16 '20 at 08:34
  • @GSerg the main purpose of my vb app is allowing user to upgrade there .net version from 3.5 to 4.5 (or to higher) my app target .net framework is 3.5 (created for windows 7 users) – samgi Jan 16 '20 at 08:47

0 Answers0