cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
shreeni17
Level 2

Killing a process from installshield

Hi all,

i want to know if we can kill a process from installshied created setup.exe.

the requirement is to detect if a customer app is running, and if so kill the app process , proceed with the installation, and then start back the apps again.

its a driver installation using installshield.

any inputs an this would be really helpful ..

thanks,
shreenivasa
Labels (1)
0 Kudos
(1) Reply
CHANDINATHREDDY
Level 7

Hi ,
You Can use an coustom action to complete the task.
here is an sample VBScript

Const strComputer = "."
Dim objWMIService, colProcessList
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'Process.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
you can call this at the point when you want to terminate the process.
0 Kudos