Old 8th February 2008, 04:08   #1
Kavita
Junior Member
 
Join Date: Feb 2008
Posts: 1
To Kill Process(Not a Window)

Hi

I have made a NSIS script in which i have fire two exe one after the other the code iam using to execute second exe is as:
Section "Export Application" SEC09

CreateDirectory "$INSTDIR\Sender"
SetOutPath "$INSTDIR\Sender"
SetOverwrite ifnewer

File "Sender\ExportFTMail.exe"
File "Sender\ExportFTMail.exe.config"
File "Sender\foodtrace16px.ico"
File "Sender\foodtrace32px16px.ico"
File "Sender\FoodTrace.Classes.dll"
File "Sender\ICSharpCode.SharpZipLib.dll"
File "Sender\Microsoft.Office.Interop.Excel.dll"
File "Sender\Microsoft.Office.Interop.Outlook.dll"
File "Sender\Microsoft.Vbe.Interop.dll"
File "Sender\MySql.Data.dll"
File "Sender\office.dll"
File "Sender\RestartSetup.exe"
File "Sender\stdole.dll"

Exec "$INSTDIR\Sender\ExportFTMail.exe"
SectionEnd

So when iam running my script an unhandled exception occurs.

(************** Exception Text **************
System.Exception: Recored Not Found
at ExportFTMail.ModExport.getConfigDetails()
at ExportFTMail.Form1.Form1_Activated(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnActivated(EventArgs e)
at System.Windows.Forms.Form.set_Active(Boolean value)
at System.Windows.Forms.Form.WmActivate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2407
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
ExportFTMail
Assembly Version: 1.0.2336.20015
Win32 Version: 1.0.2336.20015
CodeBase: file:///C:/Program%20Files/TraceAll%20FoodTrace/Sender/ExportFTMail.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2407
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
FoodTrace.Classes
Assembly Version: 1.0.2336.20012
Win32 Version: 1.0.2336.20012
CodeBase: file:///C:/Program%20Files/TraceAll%20FoodTrace/Sender/FoodTrace.Classes.DLL
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (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" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.)

If i uninstall the application the instance remains in the processes.

So please suggest me some solution!!!
Kavita is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump