I am building a simple installer for a web application using Wix. I wish to use an existing app pool. The following code works as I want when installing the application.
<iis:WebAppPool Id='MyAppPool' Name='CRMAppPool' />
This will set up the virtual directory using the existing CRMAppPool.
The problem is when, I uninstall the application, it deletes the app pool.
How can I prevent this?