I am trying to copy my exe from resources to the temp folder and execute the new copy from there however my "Load Calculator.exe" is copying without a problem but not executing it (by that I mean Process.Start
)
Dim FileName As String = IO.Path.Combine(IO.Path.GetTempPath, "Load Calculator INTL.exe")
Dim BytesToWrite() As Byte = My.Resources.Load_Calculator_INTL
Dim FileStream As New System.IO.FileStream(FileName, System.IO.FileMode.OpenOrCreate)
Dim BinaryWriter As New System.IO.BinaryWriter(FileStream)
BinaryWriter.Write(BytesToWrite)
BinaryWriter.Close()
FileStream.Close()
Process.Start(FileName)
'keepInvisible = False
'Me.Visible = True
Me.Close()