Robertocp
Posts: 2
Joined: Wed Aug 19, 2015 2:33 pm

Uninstall failing to remove IIS site and app pool

Hello,

Have currently got two installers, they are both very similar and both set up IIS web sites and app pools.
On uninstall, one removes the web site and app pool correctly while the other doesn't.

The AI_IISUninstall action seems to be configured correctly "(VersionNT >= 500) AND (NOT Installed)"

If I run the uninstall with logging enabled I can see the AI_IISUninstall action being called and returning value 1:

Code: Select all

MSI (s) (14:90) [14:19:35:268]: Doing action: AI_IIsUninstall
Action 14:19:35: AI_IIsUninstall. Generating actions to configure Internet Information Services
Action start 14:19:35: AI_IIsUninstall.
MSI (s) (14:24) [14:19:35:268]: Invoking remote custom action. DLL: C:\Windows\Installer\MSID0AE.tmp, Entrypoint: OnIIsUninstall
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2205 2:  3: AI_IIsVirtualDirectory 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2228 2:  3: AI_IIsVirtualDirectory 4: SELECT * FROM `AI_IIsVirtualDirectory` 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2205 2:  3: AI_ISAPIFilter 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2228 2:  3: AI_ISAPIFilter 4: SELECT * FROM `AI_ISAPIFilter` 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2205 2:  3: AI_IIsApplicationMapping 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2228 2:  3: AI_IIsApplicationMapping 4: SELECT * FROM `AI_IIsApplicationMapping` 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2205 2:  3: AI_IIsHttpHeader 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2228 2:  3: AI_IIsHttpHeader 4: SELECT * FROM `AI_IIsHttpHeader` 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2205 2:  3: AI_IIsHttpError 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2228 2:  3: AI_IIsHttpError 4: SELECT * FROM `AI_IIsHttpError` 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2205 2:  3: AI_IIsCertificate 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2228 2:  3: AI_IIsCertificate 4: SELECT * FROM `AI_IIsCertificate` 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2205 2:  3: AI_IIsCertificate 
MSI (s) (14!14) [14:19:35:299]: Note: 1: 2228 2:  3: AI_IIsCertificate 4: SELECT * FROM `AI_IIsCertificate` 
MSI (s) (14!14) [14:19:35:299]: PROPERTY CHANGE: Adding AI_IIsRemove property. Its value is '0AAA112657v4.00-1-1-10-1-1-1-1-1-1-1-1-1-11C:\Program Files\AAA\AAA\149761513index.html, index.htm, default.htmDefault Web Site:80:02C:\Program Files\AAA\AAA\AAAAPI\149761513index.html, index.htm, default.htmAAAAAAAAAapi:81:00.jsonapplication/json11.woffapplication/x-woff1ProductNameAAAProductCode{63E2AA17-8D47-4002-9338-18D06A15F16C}IISOPENMMCIISBACKUPAFTERIISINSTALLPOLICYOVERWRITE'.
MSI (s) (14!14) [14:19:35:299]: Doing action: AI_IIsRemove
Action 14:19:35: AI_IIsRemove. Configuring Internet Information Services
Action start 14:19:35: AI_IIsRemove.
AI_IIsRemove: Removing "Configuring Internet Information Services"
Action ended 14:19:35: AI_IIsRemove. Return value 1.
MSI (s) (14!14) [14:19:35:299]: PROPERTY CHANGE: Deleting AI_IIsRemove property. Its current value is '0AAA112657v4.00-1-1-10-1-1-1-1-1-1-1-1-1-11C:\Program Files\AAA\AAA\149761513index.html, index.htm, default.htmDefault Web Site:80:02C:\Program Files\AAA\AAA\AAAAPI\149761513index.html, index.htm, default.htmAAAAAAAAAapi:81:00.jsonapplication/json11.woffapplication/x-woff1ProductNameAAAProductCode{63E2AA17-8D47-4002-9338-18D06A15F16C}IISOPENMMCIISBACKUPAFTERIISINSTALLPOLICYOVERWRITE'.
Action ended 14:19:35: AI_IIsUninstall. Return value 1.
Get the same behaviour with AI 10.3 and 12.3.1

It's looking like a problem on that installer but I can't think what else would be causing it?
Any ideas?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall failing to remove IIS site and app pool

Hello and welcome to Advanced Installer,

I'm not sure why you are encountering this. In order to get more details about what happens can you download the following debug DLL, replace the original one from the install folder of Advanced Installer 12.3.1 (e.g. C:\Program Files (x86)\Caphyon\Advanced Installer 12.3.1\custact\x86) on your machine and rebuild the package?

Just replace the original iis.dll from the install folder of Advanced Installer with this one, then restart the application and rebuild the package. This DLL should create a debug log (at install time) on the root of the OS partition (e.g. C:\AI_IIS.log), which can give us more details about the problem. So, can you send us the AI_IIS.log file, to support at advancedinstaller dot com, after you will build and test your installation package using the debug iis.dll?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Robertocp
Posts: 2
Joined: Wed Aug 19, 2015 2:33 pm

Re: Uninstall failing to remove IIS site and app pool

Hi Dan,

Thanks for your reply.

I have forwarded the logs onto that address.
This line seems to point at a web application within the site but there isn't one. Even if there was though I would expect it to be removed.

Code: Select all

# 2015-08-20 @09:57:44 [PID=2020|Thread=2352] [..\src\iis\IISCore2.cpp:705] -> IIS::IISCore2::RemoveWebSite()           | [ERR] WebSite has web applications; Skipping REMOVE.
Parimal Patel
Posts: 25
Joined: Wed Jun 01, 2016 3:16 am

Re: Uninstall failing to remove IIS site and app pool

i have same issue. is there any resolution for it?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall failing to remove IIS site and app pool

Hello,
i have same issue. is there any resolution for it?
Please let us know what version of Advanced Installer are you using so we can send you a debug .dll.

By the way, have you tried to use the latest version of Advanced Installer and see if the behaviour still persist?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Parimal Patel
Posts: 25
Joined: Wed Jun 01, 2016 3:16 am

Re: Uninstall failing to remove IIS site and app pool

Hi Dan

Company is in process to buy the licence and i have already created end product using Advanced installer 13.0. Currently installer is creating websites in IIS and Uninstall removes the IIS sites but left the folder on drive. Uninstall should clean everything including Website Folders.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall failing to remove IIS site and app pool

Hello,

Can you please send us the AIP (project file) to support at advancedinstaller dot com so we can investigate its settings? Please specify which one of the installed folders is not properly removed on uninstall.

Also, can you please let us know if the issue persists on multiple machines?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”