Results 1 to 5 of 5

Thread: Installation Programs?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Ireland
    Posts
    15

    Post

    I have been using the package and deployment wizard in vb6 to create an install program for my package.

    Is there any way that I can get information from the user during the installation.
    It is required that the user has another piece of software (not a part of the project that I'm implementing, so I'm not going to make it a dependancy).
    I just want to have a message prompt the user on installation.
    "Input the path to your management software"
    Then get the user to browse through their harddisk and select the folder that contains the software. I could use that value in the code later on when i want to use those files.

    (This is nothing to do with App.path as I'm not the one who installs that software.)

  2. #2
    Addicted Member
    Join Date
    May 1999
    Location
    Californ-I- A
    Posts
    207

    Post

    The package and deployment wizard's source code is included with Visual Basic and is very well commented. There is just one Sub where you could place your code with msg boxes and so forth.

    Just backup the original Setup1 directory.

    How it works, is there is a folder in your visual studio folder ... something like

    ..\VB98\Wizards\PDWizard\

    That's where the setup1.exe file that the deployment wizard uses is located. Simply edit the Setup1.vpb file in the

    ..\VB98\Wizards\PDWizard\Setup1\

    folder, compile it, and copy it to

    ..\VB98\Wizards\PDWizard\

    The directory names may vary slightly onn your version of Visual Studio. Don't forget to backup!


    ------------------
    Micah Carrick
    http://micah.carrick.com
    [email protected]
    ICQ: 53480225


  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Ireland
    Posts
    15

    Post

    Thanks very much, that's great. just one more thing about that.

    If I do read in a string from the setup procedure, how do I get my code to use it. I think it's out of scope of my code. I could write it to a file when I get it from the user and read from that file each time the package is loaded but I'd prefer to read the string in at setup time and be able to use that string later in MY own code.

  4. #4
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    Save it in the registry, or in an ini file.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Ireland
    Posts
    15

    Post

    Yeah, looks like I'll have to go with the ini file, thanks, don't know enough about the registry to make entries in it from a VB application

    Thanks guys.

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