Results 1 to 10 of 10

Thread: creating a set-up program

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    32

    creating a set-up program

    I want to create a setup program that willsave files and such to certain directories... i.e. font files, etc. but i need to know a few bits of information:

    how to create a new folder

    how to extract a file from inside a zip file

  2. #2
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    Use Inno Setup.
    Luke

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: creating a set-up program

    Originally posted by jmelmore
    I want to create a setup program that willsave files and such to certain directories... i.e. font files, etc. but i need to know a few bits of information:

    1. how to create a new folder

    2. how to extract a file from inside a zip file
    1. Use the mkdir() function

    2. Search on www.pscode.com for examples on how to do this. It's complicated.

    Also, you might want to try a commercial program, rather than making your own, unless you have a very good reason to.

    A setup program made in VB won't work on a machine without VB runtime files.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    MkDir "mydir"
    Although, as you may know VB is shipped with Setup1.vbp. Open it and if you want you can modify it. Take a good look at it.
    Roy

  5. #5
    Fanatic Member Armbruster's Avatar
    Join Date
    Sep 2002
    Location
    Maryland Heights, MO
    Posts
    857
    1.

    VB Code:
    1. Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal lpPath As String) As Long
    2. Private Sub Form_Load()
    3.     'make sure "c:\somepath\someotherpath" exists!
    4.     MakeSureDirectoryPathExists "c:\somepath\someotherpath"
    5. End Sub

    2. Click here (No, it's really not that hard - I got it to work easily although some of the advanced features can be a bit more complicated)
    "Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!

    Resistance is futile, you will be compiled . . . Please!

  6. #6
    Junior Member
    Join Date
    Oct 2002
    Posts
    27

    Extracting from Zip files

    the code related to LZW type compression, which is what ZIP uses as its basis (as I understand it), is proprietary and putting it in your code would involve either royalties or messy law suits.

    If you are doing this just for fun, the routine itself isn't actually all that tough, though I have no idea what the actual directory format that ZIP uses, and I am quite sure that they aren't too keen on telling everyone.

    The most common way to do this without getting into anythig messy is to get a free or freeish command line ZIP program (many exist) and call that from your VB program using a SHELL call.

    Anything involving DLLs and all that will usually involve paying someone money to make it work!

    Hope that helps.

    (Anyone interested in knowing the code should check out the local University Computing Science web pages for courses on file formats. Or search the web for LZ77 / LZ78 compression formats. These are free...LZW and several of its variations are preotected.)

  7. #7
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Use Visual Studio Installer 1.1
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Armbruster2
    No, it's really not that hard
    Nothing's hard when you're using someone else's project.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    I find innosetup to be useful to me
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  10. #10
    Fanatic Member Armbruster's Avatar
    Join Date
    Sep 2002
    Location
    Maryland Heights, MO
    Posts
    857
    Originally posted by The Hobo
    Nothing's hard when you're using someone else's project.
    I suppose that would be true if I was using someone else's project. I did use the vbunzip10.dll, but not the project.

    Again, it's not that hard.
    "Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!

    Resistance is futile, you will be compiled . . . Please!

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