Results 1 to 2 of 2

Thread: Extracting Files from CABs with code

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Cary, NC, USA
    Posts
    17

    Post

    I would like to be able to extract files from a cab file within a program. I have the API Function, but am having trouble with it giving memory errors and exiting VB. Here is the function call, can anyone help?

    Public Declare Function ExtractFileFromCab Lib "vb6stkit.dll" (ByVal Cab As String, ByVal File As String, ByVal Dest As String, ByVal iCab As Long, ByVal sSrc As String) As Long



  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Checkout the Setup1 Project in ..\VB98\Wizards\PDWizard\Setup1

    It uses the ExtractFileFromCab API, (This is the program used by the Package and Deployment Wizard to Distribute your Applications).

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Certified AllExperts Expert

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