DaveXP Posted September 15, 2003 Share Posted September 15, 2003 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. Link to comment Share on other sites More sharing options...
b0r3d Posted September 16, 2003 Share Posted September 16, 2003 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") Link to comment Share on other sites More sharing options...
Doggie Posted September 16, 2003 Share Posted September 16, 2003 yep bored thats riteunder the command buttons name event after double clicking the button thats in the runtime u should get the following eventPrivate Sub commandbuttoname_Click()End Subshould look like this:Private Sub commandbuttoname_Click()Shell ("C:\programdir\setup.exe")End Sub Link to comment Share on other sites More sharing options...
DaveXP Posted September 16, 2003 Author Share Posted September 16, 2003 Thanks Guys Link to comment Share on other sites More sharing options...
b0r3d Posted September 16, 2003 Share Posted September 16, 2003 No problammo!Just gimme a little 'inside info' on what you're programming Link to comment Share on other sites More sharing options...
DaveXP Posted September 16, 2003 Author Share Posted September 16, 2003 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. Link to comment Share on other sites More sharing options...
b0r3d Posted September 17, 2003 Share Posted September 17, 2003 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. Link to comment Share on other sites More sharing options...
DaveXP Posted September 17, 2003 Author Share Posted September 17, 2003 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 interestingEDIT: 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. Link to comment Share on other sites More sharing options...
b0r3d Posted September 17, 2003 Share Posted September 17, 2003 That is exactly what Nephilim's program does. Link to comment Share on other sites More sharing options...
DaveXP Posted September 17, 2003 Author Share Posted September 17, 2003 That is exactly what Nephilim's program does.but i thought this program create the batch files and thw winnt.sif before setup runs? Link to comment Share on other sites More sharing options...
b0r3d Posted September 17, 2003 Share Posted September 17, 2003 Nope.My program creates the winnt.sifNephilim'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 Link to comment Share on other sites More sharing options...
DaveXP Posted September 17, 2003 Author Share Posted September 17, 2003 Nope.My program creates the winnt.sifNephilim'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.... Kind of a long time mind.... Link to comment Share on other sites More sharing options...
Doggie Posted September 18, 2003 Share Posted September 18, 2003 as you two are talking about other stuff now, talk about this in PM topic closed Link to comment Share on other sites More sharing options...
Recommended Posts