Results 1 to 12 of 12

Thread: making an installer?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Upstate NY
    Posts
    210

    making an installer?

    You know when you download programs off the internet you run an installation program that extracts all the files and saves 'em to your hard drive. Is it possible to make something like that in VB? How would you go about doing that?

    -George
    < o >

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    no you cant make an installer with VB. You would have to install the installer since it would require the VB runtime..and that is juts dumb.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    It is possible.

    The easiest way (although not using VB for the installer), is to have winzip create an exe. This would auto-extract all the files.

    Another easy way is to use the package & deployment wizard (included with VB).

    You could also write your own program (you would need to have the vb runtimes in the programs folder or in the system folder). You would either have to reasearch ways to compress the files, not compress the files, or search the web for predisgined compressing rotuines. Then, use the rotines to compress the files togather, and include them with the exe. This would create a completely custom installer (and would require a lot of work).
    Involved in: Sentience

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    compressing/decomprssing the files is not the issue and you seasily add files to a cab file. The issue is you would have to have all the vb runtime stuff installed ebfore someone could use the setup.exe program you make...just doesnt make sense to do that..install an installer so that someone can install your app..
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    You can also have the files located in the same folder as the installer (I have done this before with sucess).
    Involved in: Sentience

  6. #6
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    Or as I said, you could also ue the package and deployment wizard (which creates a VB-based installer with the runtimes taken care of by microsoft). The wizard's file will work on any computer running win 95+/nt 4+, aslong as it is a P1 75MHZ. It wouldn't need the runtimes to work.
    Involved in: Sentience

  7. #7
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Myth:
    Package & Deployment Wizard is a Vb based installer.

    That a big no no. Package And Deployment Wizard is just a wizard that creates a cab file with required files and the setup.lst file. The actual setup.exe file is a precompiled exe written in c
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  8. #8
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    Then how come you can modify the look of the installer though vb?
    Involved in: Sentience

  9. #9
    Fanatic Member 007shahid's Avatar
    Join Date
    Feb 2001
    Posts
    562
    by modifying the setup1 project and setup.lst file.
    But make a duplicate of it first

    "C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1\Setup1.vbp"
    Last edited by 007shahid; Apr 19th, 2002 at 11:08 AM.
    THE TIME/WEATHER IS
    Don't know how to use APIs or have problem with them,
    Download API-Guide & API-Viewer from http://www.allapi.net

  10. #10
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    You must have missed the Come in my last post:

    Then how come you can modify the look of the installer though vb?
    Involved in: Sentience

  11. #11
    Fanatic Member 007shahid's Avatar
    Join Date
    Feb 2001
    Posts
    562
    oops
    THE TIME/WEATHER IS
    Don't know how to use APIs or have problem with them,
    Download API-Guide & API-Viewer from http://www.allapi.net

  12. #12
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    lol, a minor mis-read.
    Involved in: Sentience

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