In this case you could do the following:
1. Create a
System.Diagnostic.Process
and set it to the file path of the msi you are going to execute.
2. Create a
while
loop that checks the
Process.HasExited
property to see if the installation is complete
3. Modify your registry entries once the
HasExited
== true
System.Diagnostics.Process msi_installer = System.Diagnostics.Process.Start ( @"C:\path\filename.msi" );
while ( !msi_installer.HasExited )
{
Application.DoEvents ();
System.Threading.Thread.Sleep ( 300 );
}