Hi all,
I created a web site using wix2.x. The installer can create a web site with the 
name specified by user and the installer will remove the whole web site on 
uninstall. If we specify a web site name which is already existing, the install 
will create virtual dir under the existing web site, but it will remove the 
whole web site on uninstall. How can I create a web site which will only remove 
the virtual dir created by itself under existing web .

Here is the wix for you reference
...
<Component Id="WebVirtualDirComponent" 
Guid="FCBB4F57-6C7E-4b50-BF3A-F06F9544B8B6">
<WebSite Id="WEBSITE" Description="[WEBSITENAME]" Directory="RootPath" 
AutoStart="yes" ConfigureIfExists="yes" DirProperties="WebSiteDirProperty" 
StartOnInstall="yes">
      <WebAddress Id="WebAddress" Port="[VPORT]" IP="[VIP]" />
      </WebSite>
      ...
</Component>
...

Thank you,
Liangqin Sun

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to