Results 1 to 2 of 2

Thread: Installation woes =[

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Posts
    78

    Post

    What is the correc tway to call a program using the WinExec API?

    I have an install program that I want to run after a Self-extracting Zip file is executed.

    Unfortunately, I need to know the WinExec Command to run.

    Any ideas?

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Just like a command

    Code:
    Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long
    
    Private Sub Command1_Click()
        
        WinExec "C:\folder\app.exe", 1
        
    End Sub

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