Results 1 to 4 of 4

Thread: Calling a VB dll function from Installscript

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    3

    Can anyone tell me if it is possible, and if so how to call a VB 6.0 dll function from Installshield Script? I keep getting a -1 on the return which is obviously a installshield error. I've tried various ways to get it work to no avail.

    Any help is greatly appreciated!!!

    Thanks,

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    Do you mean you want to run a function from your dll file during the installation process? Or maybe after the installation is over, you want to execute that code first?

    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    You can't!
    DLLs to be invoked during an InstalShield INstallation have to be written in C

    Can you use a vb exe instead?

    you can include it on the CD (with all the required VB runfiles) or put the exe and runfiles in the InstalShield "Temp Files" section which will be decompressed and copied to the hardrive before instalation proper commences

    and deleted afterwards.


    Mark
    -------------------

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    3
    Yea, after further research I've found you can call a VB DLL from installscript since its not exported. Thanks for the replys Have you guys had any experience with Installshield Pro 2000/ver 6.2 ? It looks like you can call COM objects from installscript which would allow you to access the functions of a VB dll ?

    If worst comes to worst I will make a EXE that invokes the dll's.. altho hopefully with 6.2 I can bypass doing this.

    Thanks,

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