6 Replies - 617 Views - Last Post: 23 July 2012 - 06:02 PM Rate Topic: -----

#1 Faustian_Echoes  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-July 12

Dropdown question

Posted 20 July 2012 - 02:24 PM

Hi,

I am a fresh newbie and started playing around with VB. I was interested in an all-in-one application. It ended up being a front-end application to executables. That application works to how I want it too. However, I wanted to create one with two drop-down boxes and two buttons that say "install".

What I would like to do is to click on the drop-down box, click on something, and then click the install button and have it install whatever I have linked to it. I have looked around and haven't found much since I am in no way a veteran, I may have over looked something.

Any help would be appreciated.

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Dropdown question

#2 jared.deckard  Icon User is offline

  • New D.I.C Head

Reputation: 18
  • View blog
  • Posts: 46
  • Joined: 11-July 12

Re: Dropdown question

Posted 20 July 2012 - 03:23 PM

You are making Windows form application. You want 2 ComboBoxes and 2 Buttons.

In your button's Click event you need to pass the Text property from your ComboBox to the Shell function.

Learn more about the controls you want to use:
VB ComboBox Tutorial
VB Button Tutorial

Learn how to use the Shell function to execute files:
VB Shell Tutorial
Was This Post Helpful? 1
  • +
  • -

#3 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: Dropdown question

Posted 20 July 2012 - 05:54 PM

This assumes that your install files are executables.
Was This Post Helpful? 0
  • +
  • -

#4 jared.deckard  Icon User is offline

  • New D.I.C Head

Reputation: 18
  • View blog
  • Posts: 46
  • Joined: 11-July 12

Re: Dropdown question

Posted 20 July 2012 - 11:37 PM

@BobRodes

Quote

a front-end application to executables


Pretty sure Shell() is going to do the trick.
Was This Post Helpful? 1
  • +
  • -

#5 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: Dropdown question

Posted 23 July 2012 - 11:57 AM

I hear ya, but the OP isn't saying that his install files are executables. He's saying that his application runs executables. He's also saying that he wants to automate the installation of those executables, and doesn't say anything about the nature of his install process.

For example, his install files could all be msi files and that wouldn't contradict the information given.
Was This Post Helpful? 1
  • +
  • -

#6 Faustian_Echoes  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-July 12

Re: Dropdown question

Posted 23 July 2012 - 05:26 PM

View PostBobRodes, on 23 July 2012 - 11:57 AM, said:

I hear ya, but the OP isn't saying that his install files are executables. He's saying that his application runs executables. He's also saying that he wants to automate the installation of those executables, and doesn't say anything about the nature of his install process.

For example, his install files could all be msi files and that wouldn't contradict the information given.


Sorry for the late response guys. Thanks for some insight thus far. My install files are indeed executables. I'm not sure how "automated" the process is/will be. I have a list of a few things I have in the list. Mostly drivers and such. I want to click the drop down box, click on a specific driver and then click the install button to install it.

Thanks again for the help.
Was This Post Helpful? 0
  • +
  • -

#7 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: Dropdown question

Posted 23 July 2012 - 06:02 PM

Shell will work fine, then. By the way, Jared mentions that Shell will run msi files as well.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1