Catch the install progress and exit code of .net framework 4.5 (or higher) installer from vb.net app

  • Thread starter Thread starter radly8
  • Start date Start date
R

radly8

Guest
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 found this documentation in Microsoft Docs. the code written in C++ I'm looking for same thing doing in VB.net or C#.


documentation Link: How to: Get Progress from the .NET Framework 4.5 Installer


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)



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)

Thanks in advance

Continue reading...
 
Back
Top