You have to turn on IIS6 Metabase Compatibility, and rollback is not
supported - because in their infinite wisdom the IIS team didn't implement
all the IIS metabase API, specifically not including the backup and restore
APIs, which the WiX custom actions use to implement rollback. (Reference:
http://www.iis.net/articles/view.aspx/IIS7/Use-IIS7-Administration-Tools/Usi
ng-XML-Configuration/Metabase-Compatibility-with-IIS7, "Features like
history files, backup/restore and import/export work differently because
they rely on the new configuration system. ABO calls to backup configuration
will therefore be ignored."
If you prefer you could detect IIS 7.0 (Vista, Server 2008) and use the
XmlConfig actions to directly edit the local XML config files rather than
going via the metabase custom actions, but of course you'll lose the nice
syntax.
For context - IIS 7.0 has moved many settings from the core metabase to
per-application configuration files, in order to better support ASP.NET
hosting simply by dropping files into the appropriate folders. For
reference, see
http://www.iis.net/articles/view.aspx/IIS7/Use-IIS7-Administration-Tools/Usi
ng-XML-Configuration/Introduction-to-ApplicationHost-config.
I'm not honestly sure which mechanism we should be looking at for IIS 7.0
support. Editing XML files seems very flaky, to be honest. Knowing our luck
WMI will get broken next time (and it's not terribly easy to use from C++).
Launching a command line EXE is seriously flawed. PowerHell cmdlets are
right out (managed custom actions are bad). It really seems like installing
websites from an MSI installer wasn't even considered.
--
Mike Dimmick
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michal Peled
Sent: 30 December 2007 16:09
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wix 3.0 and IIS 7.0
Hi all,
Quite new to Wix, but already done some great things with it.
I'm using the WixIIsExtension external and the <iis:XXX> elements
(iis:website, iis:WebVirtualDir etc.) to allow the user to configure IIS for
use with web UI we supply in our software (by creating a web site or virtual
directory).
That works like a charm with IIS 5 and 6.
Now we have a few customers asking about our compatibility with Vista.
Without testing it (that'll take some time and effort), and I couldn't find
the answer in any search:
Does Wix 3.0 support IIS 7 for those actions?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users