Here are some gotchas to be aware of when using XmlConfig/XmlFile to modify IIS 
7's applicationHost.config file :

- You have to be elevated in order to *read* in the file. In my case, I was 
parsing the file from the UI sequence in order to present a list of web sites 
to the user. The simplest (!) way I found to elevate the UI sequence was to 
write a launcher exe.

- If you are installing on a 64-bit machine, you need a 64-bit installer even 
if your app isn't 64-bit. This is because IIS is 64-bit and its 
applicationHost.config is located under the 64-bit system32 directory, which 
isn't accessible from a 32-bit installer.

Hope this helps,

Paul Lalonde

Le 2010-06-02 à 13:25, Blair a écrit :

> //
> // MessageId: ERROR_OPEN_FAILED
> //
> // MessageText:
> //
> // The system cannot open the device or file specified.
> //
> 
> Sequence issue? What CA are you using to access the .config file?
> 
> -----Original Message-----
> From: Velu [mailto:velusa...@syncfusion.com] 
> Sent: Wednesday, June 02, 2010 6:50 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Failed to open XM === applicationHost.config
> 
> 
> I have created the MSI setuop and then while installing the MSI in Windows
> Server 2008 in Adminsitrator rights. I got the following error.
> 
> Failed to open XML file
> c:\windows\system32\inetsrv\config\applicationHost.config, system error:
> -2147024786
> 
> Could please help on this ?
> 
> Regards
> Velusamy
> -- 
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Failed-to-open
> -XM-applicationHost-config-tp5130858p5130858.html
> Sent from the wix-users mailing list archive at Nabble.com.
> 
> ----------------------------------------------------------------------------
> --
> 
> _______________________________________________
> 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


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to