Hello,
I have some problems with deleting IIS application pools during maintenance phase. Here is simplified configuration of my installation project:
- 2 features: Feature1 and Feature2
- For Feature1 is created Feature1Pool under Application Pools and two virtual directories
- For Feature2 is created Feature2Pool under Application Pools and one virtual directory
- These virtual directories are located under one site
- InstallExecuteSequence AI_IIsInstall is changed to: ((VersionNT >= 500) AND (NOT Installed)) OR (REMOVE<>"ALL")
Graphically it looks like this:
Application Pools
- Feature1Pool (Initial condition: ((&Feature1 = 3) AND NOT (!Feature1 = 3)), Action if duplication: Skip item installation)
- Feature2Pool (Initial condition: ((&Feature2 = 3) AND NOT (!Feature2 = 3)), Action if duplication: Skip item installation)
Sites
- MyWebSite (Initial condition: ((&Feature1 = 3) AND NOT (!Feature1 = 3)) OR ((&Feature2 = 3) AND NOT (!Feature2 = 3)), Action if duplication: Skip item installation)
- Feature1Folder1 (Initial condition: ((&Feature1 = 3) AND NOT (!Feature1 = 3)), Action if duplication: Skip item installation)
- Feature1Folder2 (Initial condition: ((&Feature1 = 3) AND NOT (!Feature1 = 3)), Action if duplication: Skip item installation)
- Feature2Folder (Initial condition: ((&Feature2 = 3) AND NOT (!Feature2 = 3)), Action if duplication: Skip item installation)
Now, after configuration have been described I describe problematic use cases:
1. Install and repair
1.1 Run installator and install 2 features
1.2 Run installator and repair
1.3 Run intallator and uninstall
Expected:
Feature1Pool is deleted, Feature2Pool is deleted, MyWebSite and all its children are deleted
Actual:
All pools exist, MyWebSite exists (children are deleted).
2. Install 1 feature and modify it
2.1 Run installator and install 1 feature (for example Feature1)
2.2 Run installator and modify something in Feature1
2.3 Run installator and uninstall
Expected:
Feature1Pool is deleted, MyWebSite and all its children are deleted
Actual:
Feature1Pool exists, MyWebSite exists (children are deleted)
3. Install 1 feature and modify different feature
3.1 Run installator and install 1 feature (Feature1)
3.2 Run installator and go to modify
3.2.1 Turn off Feature1
3.2.2 Turn on Feature2
Expected:
Feature1Pool is deleted,
Feature2Pool exists,
MyWebSite exists,
MyWebSite\Feature1Folder1 and MyWebSite\Feature1Folder2 are deleted
MyWebSite\Feature2Folder exists
Actual:
All pools and folders exist
4. Install 1 feature and modify different and uninstall
4.1 Run installator and install 1 feature (Feature1)
4.2 Run installator and go to modify
4.2.1 Turn off Feature1
4.2.2 Turn on Feature2
4.3 Run installator and uninstall
Expected:
All pools are deleted, MyWebSite and all its children are deleted
Actual:
All pools exist, MyWebSite exists (children are deleted)
For checking pool existing I use IIS manager.
It's not clear for me how can I configure my installator to achieve expected behaviors, why pools and folders are not deleted during uninstall ? Any ideas?
Thank you.
FOLLOW US
Get the latest news in Application Packaging