Hi, I never got sent the email I sent to wix-users so couldn't see how to reply to my previous email, so forced to re-post. Below is my previous email.
>Hi, >there is something I am obviously doing seriously wrong with a particular >installer I have, but I am clueless as to what. > >Installing, works great, however then when I come to uninstall, or update, a >majority of the time it simply executes custom actions and leaves it at that >(on uninstall it removes it from add remove programs, but all files are still >there!?). > >The installer is pretty basic. It is for a website and upgrades are always >major upgrades. I have it set as one file per-component and there are >approximately 3200 files (I have been wondering if this is maybe the cause? >Since I am using major upgrades only and have everything removed first then >reinstalled would it be worth changing so I have maybe a component per >directory?), there are a couple XmlFile actions for the web.config in a >component and I use a custom action (before anyone starts telling me its a bad >idea, this is beyond my control :-) ) for register and unregister some COM+. >Currently, that's it. In the future I would like to reintroduce IIS >configuration, but need this fixed first obviously. > >I have some service installers that are for the most part the same, except >they include a service, and they work consistently. > >I don't have the files on me now but I have attached a dirty hack file that >should accurately represent the file, any suggestions welcome. Any files in >there are stored in separate files and reference back using DirectoryRef, they >are just super basic, component with guid and file set to keypath. Then another >file that has some XmlFile in a couple components, > >When creating, the only warnings I get are there are some font files in the web >directory so it makes some comment about them and the fact having over 800ish >components wont go down well in win9x (not an issue though). > >Thanks, >Adam Well, it seems I didn't attach the file, although my send items says otherwise, but this time I hopefully have a better example since this is straight from the original file instead of a guess off the top of my head. As before the files are just basic component+file(with keypath) in separate files/fragments so I not bothered posting them. Here is the main bit. <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util=" http://schemas.microsoft.com/wix/UtilExtension"> <Product Id="*" Name="Website" Language="2057" Version="$(var.AppVersion)" Manufacturer="BlaBla" UpgradeCode="{MYGUID}"> <Package InstallerVersion="200" Compressed="yes" /> <Property Id="RUNAS_USER" Value=" "/> <Property Id="RUNAS_PASSWORD" Value=" "/> <Media Id="1" Cabinet="Media.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="INSTALLLOCATION" Name="Website"> <Directory Id="WebFolder" Name="Web"/> <Directory Id="ComFolder" Name="COM"/> <Directory Id="DBConnsFolder" Name="DBConns"/> </Directory> </Directory> <Property Id="ComPlusInstallPath" Value="C:\Website\COM\ComPlusInstaller"/> <Feature Id="ProductFeature" Title="Everything" Level="1"> <ComponentGroupRef Id="WebComponents"/> <ComponentGroupRef Id="ComComponents"/> <ComponentGroupRef Id="DBConnComponents"/> <ComponentGroupRef Id="FileConfig"/> </Feature> <InstallExecuteSequence> <RemoveExistingProducts Before="InstallInitialize"><![CDATA[FOUNDOLD]]></RemoveExistingProducts> <Custom Action="InstallComPlusPath" Before="InstallComPlus"/> <Custom Action="UninstallComPlusPath" Before="UninstallComPlus"/> <Custom Action="UninstallComPlus" Before="RemoveFiles"><![CDATA[Installed]]></Custom> <Custom Action="InstallComPlus" After="InstallFinalize"><![CDATA[NOT REMOVE = "ALL"]]></Custom> </InstallExecuteSequence> <CustomAction Id="InstallComPlusPath" Property="ComPlusInstallPath" Value="[ComFolder]ComPlusInstaller\" /> <CustomAction Id="UninstallComPlusPath" Property="ComPlusInstallPath" Value="[ComFolder]ComPlusInstaller\" /> <CustomAction Id="InstallComPlus" Script="vbscript"> <![CDATA[ Dim WshShell Set WshShell = CreateObject("WScript.Shell") WshShell.CurrentDirectory = Session.Property("ComPlusInstallPath") Call WshShell.Run ("ComPlusInstaller-nopause.bat",8,true) Set WshShell = Nothing ]]> </CustomAction> <CustomAction Id="UninstallComPlus" Script="vbscript"> <![CDATA[ Dim WshShell Set WshShell = CreateObject("WScript.Shell") WshShell.CurrentDirectory = Session.Property("ComPlusInstallPath") Call WshShell.Run ("ComPlusUninstaller-nopause.bat",8,true) Set WshShell = Nothing ]]> </CustomAction> <CustomAction Id="PreventDowngrading" Error="The same or newer version is already installed. To downgrade uninstall the existing version or to reinstall the same version perform a resintall not an install." /> <Upgrade Id="{MYGUID}"> <UpgradeVersion MigrateFeatures="yes" Language="2057" IncludeMaximum="no" Maximum="$(var.AppVersion)" Property="FOUNDOLD"/> <UpgradeVersion OnlyDetect="yes" Language="2057" IncludeMinimum="yes" Minimum="$(var.AppVersion)" Property="FOUNDNEW"/> </Upgrade> </Product> </Wix> All help is appreciated, Adam ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users