Thanks for the responses! That's a good thought and one we were considering. We do need to verify the version of Office mainly because the interop msi will raise a message to the users and fail if it is invoked on a machine w/o the proper version of office. That's easy to check though (this isn't final):
<util:FileSearch Path="[ProgramFilesFolder]Common Files\microsoft shared\OFFICE12\MSO.dll" Result="exists" Variable="Office12Installed"/> <util:FileSearch Path="[ProgramFilesFolder]Common Files\microsoft shared\OFFICE14\MSO.dll" Result="exists" Variable="Office14Installed"/> <util:FileSearch Path="[ProgramFiles64Folder]Common Files\microsoft shared\OFFICE12\MSO.dll" Result="exists" Variable="Office12Installed64"/> <util:FileSearch Path="[ProgramFiles64Folder]Common Files\microsoft shared\OFFICE14\MSO.dll" Result="exists" Variable="Office14Installed64"/> then <MsiPackage Name="Prerequisites\o2007pia.msi" SourceFile="$(var.Prerequisites)Office2007PIARedist\o2007pia.msi" DisplayInternalUI="yes" Permanent="yes" Visible="yes" InstallCondition="Office12Installed OR Office12Installed64" /> Karl -----Original Message----- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Tuesday, January 15, 2013 9:09 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Search GAC Just a thought but if you need them why not just install them it doesn't matter if they are already there and the GAC handles its own reference counting so removing your application wouldn't remove them if another application had installed them. Neil -----Original Message----- From: Karl Werner [mailto:karl.wer...@gmail.com <karl.wer...@gmail.com>] Sent: 15 January 2013 14:41 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Burn: Search GAC >From my Bundle, I need to determine if the Microsoft Office Interop assemblies are installed on the machine. I think the only way to do this is to search the gac for the assemblies. This is because the assemblies can be installed by various different packages and there may not be a product install for them on the machine, even if they are there. Ideally, I'd like to be able to search a directory tree from a root location, e.g. "[WindowsFolder]Assembly", with a wildcard "Microsoft.Office.Interop.*.dll" and have it tell me if files were found. -- I do understand that his may not be quite possible right now. Under the Product element when authoring Wix installers, the DirectorySeach element as a "Depth" attribute. Under Bundle, BAUtil's DirectorySearch does not have this attribute, so I'm at a loss on how to search the tree under a directory. How can this be accomplished under Bundle? Thanks! Karl ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users