Working great for me. I even nest WebVirtualDir three levels deep in my project and have not hit a problem yet and no reports from customers. We've had 5 major upgrades since our product shipped.
You don't mention what it does or doesn't do when you use that element. Does the MSI not launch? Does it throw an error during run-time? Boes it finish but the virtual directory is missing? You can imagine how "it doesn't work" isn't very descriptive of the problem you encounter. Here's a working code snippet. <Component Id="VirtualDir2003" Guid="183C7B2F-3898-4c07-95A7-CA205E8F958F" Permanent="no"> <Condition><![CDATA[(VersionNT = 502) OR (VersionNT >= 600)]]></Condition> <WebVirtualDir Id="E3Container1" Alias="E3Container" Directory="E3CONTAINERDIR" WebSite="Default" DirProperties="E3GLOBALPROPS"> <WebApplication Id="E3ContainerVirtualDir1" Name="E3Container" WebAppPool="E3"> </WebApplication> <WebVirtualDir Id="Documentation1" Alias="Documentation" Directory="DOCUMENTATIONDIR" DirProperties="GLOBALPROPS"> <WebApplication Id="DocumentationVirtualDir1" Name="Documentation"/> <WebVirtualDir Id="HelpSystemAdministration1" Alias="Help_System_Administration" Directory="directory63" DirProperties="GLOBALPROPS"> <WebApplication Id="HelpSystemAdministrationVirtualDir1" Name="Help_System_Administration"/> </WebVirtualDir> </WebVirtualDir> </WebVirtualDir> </Component> -----Original Message----- From: Pierre Lebel [mailto:ple...@rpath.com] Sent: Tuesday, May 11, 2010 12:13 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Upgrade no longer work when I use WebVirtualDir element I'm not sure if this is a bug if a desired behavior. There are plenty of reliable examples on how to implement upgrade with WIX. It worked until I started creating IIS virtual directory. I have been scratching my head for a while trying to resolve the problem, and it turned out that it works if I comment out the WebVirtualDir element, allowing the install to create a NORMAL directory instead. Is this a limitation of MSI or the WIX IISExtension, or simply a WIX bug? Is someone kind enough to shed a light on this for me? Thanks. Pierre Lebel Windows Platform Engineer rPath, Inc. ------------------------------------------------------------------------ ------ _______________________________________________ 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