Results 1 to 8 of 8

Thread: Unattended Install VB6 Setup Program

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Posts
    68

    Unattended Install VB6 Setup Program

    Hi,

    In visual basic 6 is it possible to create an unattended install.

    Currently i have a program where by for example if i want to install Adobe Reader, i click install and the installer .exe file runs and i install it.

    Is it possible to create a script that would answer the questions presented by the installer and allow it to be unattended?

    Thanks in advance
    Ian

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Unattended Install VB6 Setup Program

    First you'd need an agreement, see https://www.adobe.com/cfusion/mmform...on_form&pv=rdr

    The terms will explain that you cannot hide the install, it must be run by the user, even if started by clicking somewhere on one of your product screens. Silent installs aren't permitted.
    In all cases the Software is to be distributed in complete form and only for purposes of complete installation and use by the end user. The Software shall not be configured or distributed for use without installation.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Posts
    68

    Re: Unattended Install VB6 Setup Program

    Adobe reader was just an example. The user would be clicking to install it but rather then getting asked any questions that may confuse them, it simply it's a default settings.

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Unattended Install VB6 Setup Program

    Many installation packages have a way to run them unattended, but the details vary package by package. Some allow an "answer file" to be supplied via a command line parameter.

    I'm not sure why you're talking about "scripts" here. This forum is for VB6, which is used to create compiled programs.

    If you really want to take the approach you suggested you can mess around with SendKeys or sending window messages to the setup while it runs, but this can be unreliable and why do things the hard way? Look for the options each installer package offers for unattended installation on a case by case basis.

  5. #5
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: Unattended Install VB6 Setup Program

    You can automate many operations with the SendKeys statement, which means you programmatically send key presses to the installation program. It's error prone and timing would be difficult to figure out, but it's at least an option if it's allowed by the software. If your use for this is for some sort of sysadmin work, that might be a good option.

    Another idea is for you to tell the user precisely what they should press. You could open the installation program and simultaneously provide a bar on the side of the screen with step-by-step directions for them to follow. Make them large and red so they read them.


    In my experience users just hit "Next" again and again when running installers anyway.


    Some installers respect some command line arguments, though that's installer-specific.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

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

    Re: Unattended Install VB6 Setup Program

    @therealianc, what you are asking is possible, but as the others have posted, this ability differs from tool to tool. So it would depend on which tool you are using to distribute your application. The default for VB6 usually is the package and deployment wizard which ships with VB6. Then there are free and paid installers such as InstallShield, InnoSetup, Wise setup (dunno if this is still available) and many others. Go through the features of each and you will find out if and how these installers support an unattended installation.

    .
    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!

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Unattended Install VB6 Setup Program

    I just found this which, I had forgotten about.

    Silent install

    VB6 Deployment and Packaging Wizard's resulting setup.exe has a command line switch that allows for a silent install. This feature is virtually undocumented except in the source code for Setup1.exe. The default path for the project file of Setup1 is:

    C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1\Setup1.vbp

    To do a silent install, the following syntax is required:

    setup.exe /s c:\anylogfilename.log
    The filename that follows the /s parameter must include the full path name.

    The silent install is only interupted (that I could see) when the install encounters the "Setup is attempting to copy a file that is older than the one currently..." dialog. This interruption doesn't occur if the setup contains the latest versions of the files being installed.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  8. #8
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: Unattended Install VB6 Setup Program

    If you're making your own setup that you want to run unattended, Inno Setup offers /silent and /verysilent command line switches. Inno is much, much more advanced than the P&D wizard and is free (even commercially). Many programs use Inno as well, so you could try these switches on them to see if they happen to work.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

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