MSFN Forum: [VB] Launching Programs - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

[VB] Launching Programs help Rate Topic: -----

#1 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 15 September 2003 - 01:34 PM

Does anyone no a way in which i can add a link to a program to setup it up from the ok button on a graphic interface which i made in Visual Studios 6.0 as i dont no how to ad fuction to buttons yet.

Please help me.

:)


#2 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 15 September 2003 - 07:09 PM

Double click the button on your GUI, and it'll take you to the code for that button.

This bit is from VB.NET but try it, see if it works anyways.
Shell("C:\programdir\setup.exe")

#3 User is offline   Doggie 

  • I'm very inactive :(
  • Group: Patrons
  • Posts: 2,676
  • Joined: 13-October 02

Posted 15 September 2003 - 08:27 PM

yep bored thats rite
under the command buttons name event after double clicking the button thats in the runtime u should get the following event
Private Sub commandbuttoname_Click()

End Sub

should look like this:
Private Sub commandbuttoname_Click()
Shell ("C:\programdir\setup.exe")
End Sub


#4 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 16 September 2003 - 02:25 AM

Thanks Guys

:)

#5 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 16 September 2003 - 06:19 AM

No problammo!
Just gimme a little 'inside info' on what you're programming :)

#6 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 16 September 2003 - 10:59 AM

b0r3d, on Sep 16 2003, 01:19 PM, said:

No problammo!
Just gimme a little 'inside info' on what you're programming :)

well if i can get it to work i am new to this programming business i want a small program with has tick boxes on it and then when i tick the ones i want and the click ok i want it to create a cmd file in the folder install and then run that cmd file which has just create and then it will be used to install the application i want as i change my mind alot with this Unattended CD business.

and that basic it.

:rolleyes:

#7 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 16 September 2003 - 06:18 PM

You'll find that Nephilim is already creating a program of this nature. Its called XPES (XP Enhanced Setup). Might be worth while for you to check it out.

#8 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 17 September 2003 - 01:13 AM

b0r3d, on Sep 17 2003, 01:18 AM, said:

You'll find that Nephilim is already creating a program of this nature. Its called XPES (XP Enhanced Setup). Might be worth while for you to check it out.

:) i did not know thats interesting

EDIT: No you miss understand my idea this is not to do what Nephilim will do its will run that the end of the first CD setup and display options like install office etc...and you will be able to check the box for which ones and then in creates a batch file with them options and runs the batch file. Or if you do not choose your options then 5 minutes or so after it appears it contines with a default setting of all my programs to be installed.

#9 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 17 September 2003 - 03:19 AM

That is exactly what Nephilim's program does.

#10 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 17 September 2003 - 10:03 AM

b0r3d, on Sep 17 2003, 10:19 AM, said:

That is exactly what Nephilim's program does.

but i thought this program create the batch files and thw winnt.sif before setup runs?

#11 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 17 September 2003 - 03:23 PM

Nope.
My program creates the winnt.sif

Nephilim's program is run after windows has been installed (executed at the guirunonce stage) and allows you to select programs to install. After a certain amount of time (currently 12 hrs 10 mins, which is a very stupid amount of time which im trying to get him to change) it will install the defaults automatcially if no buttons are pressed.

The program is exactly what you're looking for :)

#12 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 17 September 2003 - 03:28 PM

b0r3d, on Sep 17 2003, 10:23 PM, said:

Nope.
My program creates the winnt.sif

Nephilim's program is run after windows has been installed (executed at the guirunonce stage) and allows you to select programs to install. After a certain amount of time (currently 12 hrs 10 mins, which is a very stupid amount of time which im trying to get him to change) it will install the defaults automatcially if no buttons are pressed.

The program is exactly what you're looking for :)

i see so he save me the bother of setuping up a program for my self and learning all that code and stuff.... :D

Kind of a long time mind.... :rolleyes:

#13 User is offline   Doggie 

  • I'm very inactive :(
  • Group: Patrons
  • Posts: 2,676
  • Joined: 13-October 02

Posted 17 September 2003 - 06:35 PM

as you two are talking about other stuff now, talk about this in PM :)
topic closed

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy