In your verbose log, what does Windows Installer think is the "Action" state 
for this component on uninstall? You're looking for a line that says something 
like this:

        MSI (s) (4C:88) [14:30:42:128]: Component: Site; Installed: Local;   
Request: Absent;   Action: Absent

It should say "Action: Absent" in the uninstall case - if not, there is 
something going on with your component GUID and/or authoring, unrelated to the 
custom action.

Also, when searching through the verbose log, did you try searching for 
"WriteMetabaseChanges:"? This should display any warnings / errors specific to 
the IIS's deferred custom action.

Finally, what version of WiX are you using? Quite a lot of things have been 
fixed in the IIS custom action in just the past couple of months - you may want 
to try again with the latest weekly build to see if the problem still occurs.

Thanks,
Mike Carlson

-----Original Message-----
From: Gang Cheng [mailto:gang.cheng...@gmail.com] 
Sent: Friday, April 03, 2009 11:13 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Unable to remove website during uninstall

I have this wxs file to install binarys and a website in IIS. The
installation works fine. But just during uninstall, only the binary folders
are removed. The IIS website remains there (though the status becomes
unknown). I tried the verbose log, but didn't see any error/warning there.

Can someone give me some help/hints? More generally, besides logging, is
there any debugger for wix? Thank you very much.





<?xml version="1.0"?>



<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="
http://schemas.microsoft.com/wix/UtilExtension"; xmlns:iis="
http://schemas.microsoft.com/wix/IIsExtension";>



<Product Name="Catalog Server" Id="*" Language="1033" Version="1.0.0.0"
Manufacturer="xxx" UpgradeCode="7000CDE6-66E3-4bdc-9494-E0B0CEC4EDD6">



<Package Description="applet catalog server." Comments="This is the Catalog
Site HttpHandlers at the IIS frontend." Manufacturer="xxx"
InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />



<Media Id="1" Cabinet="Server.cab" EmbedCab="yes" />



<Property Id="CATHOSTNAME" Value="xxx" />



<Property Id="CATSITENAME" Value="Catalog Site" />



<Property Id="CATAPPPOOLNAME" Value="Catalog App Pool" />





<Directory Id="TARGETDIR" Name="SourceDir">



<Directory Id="ProgramFilesFolder">



<Directory Id="ROOT" Name="Catalog Server">



<Component Id="WebConfig" Guid="C933197C-F987-45a1-AD09-ECDD3D95C54B">



<File Id="WebConfig" Source="..\Web\Web.config" />



<util:XmlFile Id="UpdateConnection" File="[ROOT]Web.config"
Action="setValue" ElementPath="/configuration/connectionStrings/add"
Name="connectionString" Value="[CATDBCONNECTION]" />



</Component>



<Directory Id="BIN" Name="bin">



<Component Id="Bin" Guid="1B1DC8A2-6F21-4ec8-A689-3179745EC916">



<File Id="FSharp.Core.dll" Source="$(env.ODIR)\Web\bin\FSharp.Core.dll"
DefaultLanguage="1033" />



...



</Component>



</Directory>



</Directory>



</Directory>



<Component Id="Site" Guid="F4331A78-E7F7-4ef6-A8F0-1764C8348E7C">



<util:User Id="AppPoolUser" CreateUser="no" Name="[CATUSERNAME]"
Password="[CATPASSWORD]" />



<iis:WebAppPool Id="AppPool" Name="[CATAPPPOOLNAME]" Identity="other"
User="AppPoolUser" />



<iis:WebSite Id="CatalogSite" Description="[CATSITENAME]" Directory="ROOT">



<iis:WebAddress Id="Address" Header="[CATHOSTNAME]" Port="80" />



<iis:WebApplication Id="CatalogApp" Name="Catalog App" WebAppPool="AppPool"
AllowSessions="no" ScriptTimeout="300" />



<iis:WebDirProperties Id="DirProps" Execute="yes" Script="yes" Read="yes" />



</iis:WebSite>



</Component>



<Component Id="EventSource" Guid="53753E70-B60E-49bc-81AD-E9E9598BD96F">



<util:EventSource Name="Catalog" Log="Application"
EventMessageFile="%SystemRoot%\Microsoft.NET\Framework\v2.0.5072\EventLogMessages.dll"
/>



</Component>



</Directory>



<Feature Id="Server" Title="Catalog Server" Level="1">



<ComponentRef Id="WebConfig" />



<ComponentRef Id="Bin" />



<ComponentRef Id="Site" />



<ComponentRef Id="EventSource" />



</Feature>



</Product>



</Wix>


-- 
Cheers,

Gang Cheng
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to