I have a general task: install .NET Framework 3.5 during the setup of my product.
I do the following:
- I have created a custom action X
- Custom action X starts an executable Y via Process.Start()
- Executable Y kills the msiexec process and run .NET Framework setup package
Here appear some problems: .NET Framework setup says that Windows Installer Service is not accessible and asks to terminate all another installations!
I think, the cause of it is that Process.Kill() method terminate the process incorrect. When I kill the msiexec process via Kill() the msiserver service is NOT STOPPABLE, but if I finish setup by clicking Cancel button, msiserver service becomes STOPPABLE.
How can I solve the problem?