|
-
Jun 19th, 2004, 03:31 AM
#1
Thread Starter
Hyperactive Member
Creating a CD Menu program
I am creating an app that will start when my program CD is inserted. It will give the user a menu, with a selection of programs to install.
I am using a label control for each link in the menu. Now what I need to do is execute a specific .exe file on the disk when a certain label is clicked...
I have tried
Private Sub Label1_Click(...) Handles Label1.Click
Shell("myexe.exe")
End Sub
But it says the file cannot be found, even though the .exe is sitting in the same folder as my CD menu .exe
What would be the correct way to call this .exe file?
-
Jun 19th, 2004, 03:46 AM
#2
Fanatic Member
-
Jun 19th, 2004, 07:44 AM
#3
Frenzied Member
To which you'd need to import System.Diagnostics, or qualify Process.Start with same.
-
Jun 19th, 2004, 01:15 PM
#4
Just so you know the autorun will be 100% useless unless the computer its running on has the .Net Framework
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jun 19th, 2004, 01:17 PM
#5
Thread Starter
Hyperactive Member
Eh, I disagree,
All one needs is an autorun.inf in their CD folder.
That is a windows api thing, and nothing to do with the framework
-
Jun 19th, 2004, 01:25 PM
#6
No, ABX means that the autorun will try to trigger a program that won't run without the framework. Not even if you put it on the CD (i think)
I don't live here any more.
-
Jun 19th, 2004, 01:28 PM
#7
Yes.... Thats what i meant....
You would need to have another program (writen in c++ or a language that does not require runtimes, check for the framework and if it exists launch the vb.net Autorun menu, if not launch the .Net Framework setup)
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jun 19th, 2004, 01:33 PM
#8
Thread Starter
Hyperactive Member
What about a small.exe made with Visual Studio.NET in VB.NET?
Surely for the .exe to work you don't need the .NET framework installed?
-
Jun 19th, 2004, 01:35 PM
#9
a Simple
WILL NOT WORK AT ALL
without the .Net Framework
nothing will.
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jun 19th, 2004, 07:00 PM
#10
Frenzied Member
If you develop in .Net, it will not run w/o the framework.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|