Ahh! Thanks for that. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: 29 July 2008 02:31 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] WIX and VS2008 Merge Modules
Ahh, okay then I know what the problem is. The Merge Module is *supposed* to include all the base actions necessary to install itself. In your case, the Merge Module must not have the InstallFiles/RemoveFiles actions. If you just add those to actions (no Sequence necessary) to your InstallExecuteSequenceElement, the WiX toolset will ensure your MSI ends up with those actions and the files will get installed/uninstalled. This happens very rarely since most Products have Files in addition to Merge elements so the WiX toolset added the action for you. Maybe one day, we'll be able to detect when Merge Modules are poorly authored and automatically detect the missing actions... not quite there yet. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Adams Sent: Monday, July 28, 2008 00:30 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] WIX and VS2008 Merge Modules I've found a resolution to this problem now, although it's a bit of a hack. NOTE: I'm now on WIX 3.0.4325.0 When the WIX project only contains registry keys and references to merge modules it doesn't seem to put any files down. The moment that I added a Component and a (blank text) file down just above the merge reference in the folder I wanted for the merge module all files seemed to install correctly. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Adams Sent: 25 July 2008 17:30 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] WIX and VS2008 Merge Modules Yeah, the files are definitely included - I can see them in orca and running FILEMON when the MSI in installing I can see msiexec trying to locate each file in turn (which it fails to). I'm currently trying to upgrade to the latest weekly release of WIX to see if that helps (but am getting error "unable to load mergemod.dll" :() -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: 25 July 2008 17:20 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] WIX and VS2008 Merge Modules Can you pop the final MSI open in Orca and see if the Merge Module contents are actually in there? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Adams Sent: Friday, July 25, 2008 04:48 To: 'wix-users@lists.sourceforge.net' Subject: [WiX-users] WIX and VS2008 Merge Modules Hi, I have a very puzzling situation, and am hoping someone can shed some light on it. I have a Visual Studio 2008 Merge Module (containing Content Files and Project Output, and a couple of directories). If I reference this merge module from a normal VS 2008 Setup Project all files are installed as expected, however if I reference this merge module from a WIX (3) installer no files are output. I've run FILEMON while the install is taking place and it is looking in the correct location (c:\inetpub\wwwroot\ISV\...) to add the files, but FILEMON returns FILENOTFOUND errors. It seems like the Merge Module should be creating the directories, but is not. This only occurs when the main setup project is WIX - normal VS setup projects are fine. <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"> <Product Id="fb7b5480-3723-4b32-93bf-d2f28dc59ef3" Name="Agresso CRM for Education" Language="1033" Version="1.0.1" Manufacturer="Agresso Ltd" UpgradeCode="9bfa8877-676c-48d4-878b-6eb75e5ed341"> <Package InstallerVersion="200" Compressed="yes" Description="Agresso CRM for Education" /> <Media Id="1" Cabinet="AgressoCRM.cab" EmbedCab="yes" /> <Property Id="CRMWWWROOT_PATH"> <RegistrySearch Id="MSCRM_WebSitePath" Root="HKLM" Type="raw" Key="SOFTWARE\Microsoft\MSCRM" Name="WebSitePath"></RegistrySearch> </Property> <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/> <UIRef Id="WixUI_Mondo" /> <UIRef Id="WixUI_ErrorProgressText" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="INSTALLDIR" Name="Agresso Ltd"> <Directory Id="dir_AgressoLtd_AgressoCrm" Name="Agresso CRM"> </Directory> </Directory> </Directory> <Directory Id="CRMWWWROOT_PATH"> <Directory Id="ISV" Name="ISV"> <Merge Id="merge_AgressoCRMBase" Language="1033" DiskId="1" SourceFile="C:\Development\Main\Sources\Agresso CRM\Sources\AgressoCRMBase\Base_MM\Debug\Base_MM.msm"></Merge> </Directory> </Directory> </Directory> <CustomAction Id='AlreadyUpdated' Error='[ProductName] is already installed.' /> <CustomAction Id='NoDowngrade' Error='A later version of [ProductName] is already installed.' /> <InstallExecuteSequence> <Custom Action='AlreadyUpdated' After='FindRelatedProducts'>PATCHFOUND</Custom> <Custom Action='NoDowngrade' After='FindRelatedProducts'>NEWERFOUND</Custom> <RemoveExistingProducts After='InstallFinalize' /> <MsiPublishAssemblies Sequence='4000' /> <MsiUnpublishAssemblies Sequence='4001' /> </InstallExecuteSequence> <AdvertiseExecuteSequence> <MsiPublishAssemblies Sequence='4002'/> </AdvertiseExecuteSequence> <Feature Id="AgressoCRM_feat" Title="Agresso CRM for Education" Level="1" Description="The Agresso CRM for Education Product. This should only be installed on the CRM Server."> <MergeRef Id="merge_AgressoCRMBase" /> </Feature> </Product> </Wix> ------------------------------------------------------------------------------------ This email is from Agresso Limited. Its contents, including any attachments, are confidential to the person or business to which it is addressed. If you are not the intended recipient you may not read, copy, or make any other use of this email or its contents. If received in error, please tell the sender immediately and then delete it from your system. Thank you. Any opinions expressed in this email are not necessarily those of Agresso Limited. Although we have taken steps to ensure that this email and any attachments are virus free, neither Agresso Limited or the sender accepts any responsibility for viruses, it is your responsibility to scan the email and attachments to ensure they are actually virus free. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------------ This email is from Agresso Limited. Its contents, including any attachments, are confidential to the person or business to which it is addressed. If you are not the intended recipient you may not read, copy, or make any other use of this email or its contents. If received in error, please tell the sender immediately and then delete it from your system. Thank you. Any opinions expressed in this email are not necessarily those of Agresso Limited. Although we have taken steps to ensure that this email and any attachments are virus free, neither Agresso Limited or the sender accepts any responsibility for viruses, it is your responsibility to scan the email and attachments to ensure they are actually virus free. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------------ This email is from Agresso Limited. Its contents, including any attachments, are confidential to the person or business to which it is addressed. If you are not the intended recipient you may not read, copy, or make any other use of this email or its contents. If received in error, please tell the sender immediately and then delete it from your system. Thank you. Any opinions expressed in this email are not necessarily those of Agresso Limited. Although we have taken steps to ensure that this email and any attachments are virus free, neither Agresso Limited or the sender accepts any responsibility for viruses, it is your responsibility to scan the email and attachments to ensure they are actually virus free. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------------ This email is from Agresso Limited. Its contents, including any attachments, are confidential to the person or business to which it is addressed. If you are not the intended recipient you may not read, copy, or make any other use of this email or its contents. If received in error, please tell the sender immediately and then delete it from your system. Thank you. Any opinions expressed in this email are not necessarily those of Agresso Limited. Although we have taken steps to ensure that this email and any attachments are virus free, neither Agresso Limited or the sender accepts any responsibility for viruses, it is your responsibility to scan the email and attachments to ensure they are actually virus free. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users