Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i create CD menu with some exe file? such as sql server, crystal Report and .netfx. when i press the each button that time i will need particular setup.exe must be work.Now I checked below
System.Diagnostics.Process.Start(@"\..\NEWWAY SYSTEM\SQL SERVER\2008\setup.exe");
It is work in my computer. But doesn't work in CD(after burned)
Please help
Posted
Comments
[no name] 17-Mar-12 9:10am    
"But doesn't work" does not mean anything to anyone here but you. WHAT doesn't work? Are you getting an error? What error are you getting?

Checking your paths would be a real good place to start...
thileep2010 17-Mar-12 9:20am    
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
at MultiSetup.Form1.button21_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MultiSetup
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///G:/MultiSetup.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitdebugging="true">


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
thileep2010 17-Mar-12 9:22am    
The System cannot find the file specified.
[no name] 17-Mar-12 10:13am    
Just as I suspected.... maybe you should checked your paths. @"\..\NEWWAY SYSTEM\SQL SERVER\2008\setup.exe" is obviously wrong.
thileep2010 18-Mar-12 3:19am    
this path worked in my computer. not work for after cd burn. how to call many exe from cd?

Try CDInterfaceStudio library, available at http://cdinterface.sourceforge.net/static-pages/downloads.php/[^]
 
Share this answer
 
Comments
thileep2010 17-Mar-12 7:37am    
Thank you very much GanesanSenthilvel, for your immediate reply
thileep2010 17-Mar-12 7:42am    
I need source in c#. please help
Copy this code and paste into autorun.inf, and copy this file on root of the CD, after burning CD, right click on CD you will get following menu that was created you also need to add winopen.exe file in CD at the root
[autorun]
icon = youricon.ico
shell=8
shell\1\command=winopen \SQLServer.exe
shell\1=Install SQL Server
shell\2\command=winopen \framework.exe
shell\2=Install Framework 2.0
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900