Looks like you got it all wrong. I don't need to kill visual studio. I need to customise custom actions in or something in the setup project so the MSI that I create and install, wouldn't check launched processes, as they are stopped by custom action later during uninstall process.