Results 1 to 3 of 3

Thread: Shell function

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Posts
    74

    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!

  2. #2
    Member
    Join Date
    May 2003
    Posts
    58
    Use Process.Start(pFilename) instead...

    make sure that the file exists and the path is correct

  3. #3
    Hyperactive Member sw_is_great's Avatar
    Join Date
    Nov 2003
    Posts
    330
    it seems that the file is not there at that path

    may be the file name is wrong
    may be the path is wrong
    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width