cancel
Showing results for 
Search instead for 
Did you mean: 

Kill add-on process when add-on stop

Former Member
0 Kudos

hi,

Anyone know how to kill add-on process when the add-on is stop.

thanks.

regards,

sohch

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

you add this code under you apllication event

Dim myProcesses As Process() = Process.GetProcessesByName("acrobat")

Dim myProcess As Process

For Each myProcess In myProcesses

If myProcess.MainWindowTitle = "" Then myProcess.Kill()

Next myProcess

hope it helps

Regards

Vishnu

Former Member
0 Kudos

hi Vishnu,

As i know application event is trigger when the application is terminate. But i want the process killed when you click 'Stop' button at Add-On Manager.

regards,

sohch

Former Member
0 Kudos

Hi sohch

When Your Add on is stopped aplication event will fire.If you add this code under Application event it will kill the process (Replace acrobat with your process name)

Regards

Vishnu

Former Member
0 Kudos

hi Vishnu,

Thanks, it solved my problem.

regards,

sohch

Answers (0)