Open File - Security Warning using Process.start...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing a VB.NET (VS2003) program that runs off a CD. One of the tasks
that this program must perform is to run some exe's (for example windows
updates and virus signature & engine updates) without ANY interaction from
the user. The problem that I am encountering is that WinXP is throwing up a
"Open File - Security Warning" when starting the processes using the
following code:

Dim oProcess As New System.Diagnostics.Process
Try
oProcess.StartInfo.FileName = ProcessPath 'ProcessPath declared
above...
oProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
oProcess.Start()
oProcess.WaitForExit() 'Wait until the process passes back an
exit code
oProcess.Close() 'Free resources associated with this process
Catch ex As Exception
Debug.WriteLine("Could not start process " & ProcessPath, "Error")
End Try

Are there any environment settings/flags that I can set (& then reset) so
that these processes can run unattended?


Thanks for your attention to this matter.

Charles
 
Have you considered creating a Deployment project using Custom Actions?
Custom Actions are compiled as a DLLs/EXEs and can be run at the end
of an install
 
Back
Top