This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Killing a process from installshield
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 09, 2013
01:12 PM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 11, 2013
04:28 AM
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.
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.