Hi All, I am creating virtual directory through WIX installer. The installer allows user to change the name of the virtual directory through a custom UI dialogue. The default virtual directory is PFWServiceApplication. If the user changes this to say PFWServiceApplication_Test then the correct virtual directory is created and installation works fine. But the uninstall removes the default virtual directory. For instance i had created the default virtual directory PFWServiceApplication manually for testing and then used the installer to create the PFWServiceApplication_Test virtual directory. On uninstalling the PFWServiceApplication gets fully removed and the for PFWServiceApplication_Test only the node is left under the default website. What i want is that on uninstall only that virtual directory that i installed through the installer should be removed. Below is my code.
<Fragment> <?include ConfigurationInitialize.wxi ?> <!-- Install to default web site --> <iis:WebSite Id="DefaultWebSite" Description='Default Web Site'> <iis:WebAddress Id="AllUnassigned" Port="80" /> </iis:WebSite> <DirectoryRef Id="MYWEBWEBSITE"> <!-- Configuring app pool --> <Component Id="MyWebAppPoolCmp" Guid="{9413B3CA-4CF1-4E3C-8F13-4E48291A8E22}" KeyPath="yes" Permanent="no"> <iis:WebAppPool Id="MyWebAppPool" Name="[WEB_APP_NAME]" ManagedRuntimeVersion="v4.0" ManagedPipelineMode="Integrated" /> </Component> <!-- Configure virtual dir --> <Component Id="MyWebVirtualDirCmp" Guid="{751DEB01-ECC1-48ff-869A-65BCEE9E0528}" KeyPath="yes" Permanent="no"> <iis:WebVirtualDir Id="MyWebVirtualDir" Alias="[VIRTUAL_DIR_VAL]" Directory="MYWEBWEBSITE" WebSite="DefaultWebSite"> <iis:WebDirProperties Id="MyWebVirtDirProperties" AnonymousAccess="yes" BasicAuthentication="yes" WindowsAuthentication="yes" /> <iis:WebApplication Id="MyWebWebApplication" Name="[VIRTUAL_DIR_VAL]" WebAppPool="MyWebAppPool" /> </iis:WebVirtualDir> </Component> </DirectoryRef> <ComponentGroup Id="MyWebIssConfiguration"> <ComponentRef Id="MyWebVirtualDirCmp" /> <ComponentRef Id="MyWebAppPoolCmp" /> </ComponentGroup> </Fragment> The include file ConfigurationInitialize.wxi has below code: <Property Id="VIRTUAL_DIR_VAL" Value="PFWServiceApplication" Secure="yes"/> <!-- +++++++++++++++++++ web app name properties initialize ++++++++++++++++++++ --> <Property Id="WEB_APP_NAME" Value="PFWServiceApplication" Secure="yes"/> Please provide some help on this. Regards, Suvra Jyoti ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users