Using the boxed File Id's helped a lot. It appears Default.aspx is a lost cause and I'll need to craft a CA to do some substitutions in the file. Anyone have something like this? As advertised, web.config seems to work fine.
-- John M. Cooper Volt at Microsoft -----Original Message----- From: Matt Johnson [mailto:ma...@timeamerica.com] Sent: Thursday, May 06, 2010 3:01 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] XMLFile not Finding file to Edit Even Though File is Verified There Also, you should make sure the file you're editing is parsable as XML. My guess is that an aspx file is not. You would be better off moving the item you're trying to change to a setting in the web.config. You can definately edit the web.config as xml. Matt Johnson MCPD, MCTS, MCSD, MCDBA Director of Application Development Time America, Inc. ma...@timeamerica.com | www.timeamerica.com -----Original Message----- From: Matt Johnson Sent: Thursday, May 06, 2010 2:57 PM To: General discussion for Windows Installer XML toolset. Subject: RE: [WiX-users] XMLFile not Finding file to Edit Even Though File is Verified There Where you have: File="[INSTALLLOCATION][ProductName]\Default.aspx" Try this instead: File="[#FDEFAULTASPX]" The [#filekey] syntax will resolve to the correct location. Matt Johnson MCPD, MCTS, MCSD, MCDBA Director of Application Development Time America, Inc. ma...@timeamerica.com | www.timeamerica.com -----Original Message----- From: John Cooper (Volt) [mailto:a-jc...@microsoft.com] Sent: Thursday, May 06, 2010 2:32 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] XMLFile not Finding file to Edit Even Though File is Verified There Yes, it is definitely possible. The Default.aspx file in an ASP.NET configuration file. The two Web.config files are both for IIS7. I'll check. -- John M. Cooper Volt at Microsoft -----Original Message----- From: Mike Carlson (DEV DIV) [mailto:mica...@microsoft.com] Sent: Thursday, May 06, 2010 2:15 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] XMLFile not Finding file to Edit Even Though File is Verified There Is it possible your XML file has an inaccurate header? I've seen people before with an XML header like this: <?xml version="1.0" encoding="UTF-8"?> But their file isn't actually saved in UTF-8 format. This mismatch will cause MSXML (which XmlFile uses) to fail on that file, everytime - I don't remember with what error code. Another possibility - is it possible the permissions on a parent directory of this file are extremely restrictive? Thanks, Mike Carlson -----Original Message----- From: John Cooper (Volt) [mailto:a-jc...@microsoft.com] Sent: Thursday, May 06, 2010 12:02 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] XMLFile not Finding file to Edit Even Though File is Verified There Here's the portion of the WiX: <Component Id="CDEFAULTASPX" Guid="579C6861-0A71-4018-9307-DFECEA33C362"> <File Id="FDEFAULTASPX" Name="Default.aspx" DiskId="1" Source="$(var.WebPath)\Default.aspx" /> <util:XmlFile Id="DEFAULTASPXEDIT" Action="setValue" ElementPath="//object/param[...@init='initParams'[\]]/@value" File="[INSTALLLOCATION][ProductName]\Default.aspx" SelectionLanguage="XPath" Value='<asp:Literal id="InitParam" runat="server"/>,ServicesServer=$(var.SQLServer)' /> </Component> Here's a portion of the error log: Action start 11:42:22: SchedXmlFile. Action start 11:42:22: ExecXmlFile. Action ended 11:42:22: ExecXmlFile. Return value 1. Action ended 11:42:22: SchedXmlFile. Return value 1. Action start 11:42:22: RegisterUser. Action ended 11:42:22: RegisterUser. Return value 1. Action start 11:42:22: RegisterProduct. Action ended 11:42:22: RegisterProduct. Return value 1. Action start 11:42:22: PublishFeatures. Action ended 11:42:22: PublishFeatures. Return value 1. Action start 11:42:22: PublishProduct. Action ended 11:42:22: PublishProduct. Return value 1. Action start 11:42:22: InstallFinalize. ExecXmlFile: Error 0x8007006e: failed to load XML file: F:\LookingGlass_Web\Loo kingGlass\Default.aspx Error 25531. Failed to open XML file F:\LookingGlass_Web\LookingGlass\Default.as px, system error: -2147024786 MSI (s) (74!94) [11:42:32:250]: Product: LookingGlass -- Error 25531. Failed to open XML file F:\LookingGlass_Web\LookingGlass\Default.aspx, system error: -2147 024786 Action ended 11:42:32: InstallFinalize. Return value 3. Action ended 11:42:33: INSTALL. Return value 3. I've checked and Default.aspx is indeed at F:\LookingGlass_Web\LookingGlass\Default.aspx. Any ideas for me to pursue? John M. Cooper Volt at Microsoft ------------------------------------------------------------------------------ _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users