-
Shell function
I'm trying to run an .msi file using the Shell function, but I guess it doesn't like it.
Shell("C:\mySetup.msi", AppWinStyle.NormalFocus, True)
It gives me the following error:
------------------------------------
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in microsoft.visualbasic.dll
Additional information: File not found.
------------------------------------
Is there a way I can execute an .msi file with code?
Thanks!
-
Use Process.Start(pFilename) instead...
make sure that the file exists and the path is correct
-
it seems that the file is not there at that path
may be the file name is wrong
may be the path is wrong