I would greatly appreciate some assistance modifying the code below so that my program will launch the process shown on line # 8, while keeping the path variables and all related material intact, and then monitor the process for its exit code.
Once the exit code is transmitted, the exit code should be stored in a variable and then the contents of that variable (which is the exit code) should be written to a process status log file located at ("\%SystemDrive%\Documents
and Settings\All Users\Documents\ProcessSta
Ideally, if someone could re-work/tweak/add-to the code below, and paste the revised code in their answer, I would greatly appreciate it.
Public Class MyProgram
Dim MyPathVariable As String
Private Sub MyApp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
MyPathVariable = My.Application.Info.DirectoryPath.ToString()
Shell(MyPathVariable & "\setup.exe /s /f1" & MyPathVariable & "\setup.iss")
Catch ex As Exception
Dim file As New System.IO.StreamWriter("\%SystemDrive%\Documents and Settings\All Users\Documents\MyProgramErrorLog.txt")