Hi Dominique,
Thanks for the feedback! I think I already have it in a component (see
snippet below). Please let me know if this is what you mean, or if you
have any other suggestions.
Thanks in advance for any ideas or suggestions!
<Directory Id="TARGETDIR" Name="SourceDir">
<Component Id="NewWebsiteConfigASP" Guid="MYGUID">
<iis:WebSite Id="IISWebsite" Description="[WEBSITEDESCRIPTION]"
Directory="TARGETDIR" AutoStart="yes" ConfigureIfExists="yes"
StartOnInstall="yes">
<iis:WebAddress Id="IISWebAddress" Port="[WEBSITEPORT]"
IP="[WEBSITEIP]" Header="[WEBSITEHOSTHEADER]" />
<iis:WebDirProperties Id="IISWebDirProperties" Execute="yes"
Read="yes"
DefaultDocuments="default.aspx,index.aspx,index.htm,index.html,default.h
tm,default.html" />
<iis:WebDir Id="IISAppDataWebDir" Path="App_Data">
<iis:WebDirProperties Id="IISAppDataWebDirProperties"
Write="yes" Read="yes"
DefaultDocuments="default.aspx,index.aspx,index.htm,index.html,default.h
tm,default.html" />
</iis:WebDir>
<iis:WebApplication Id="WebApplication"
Name="[WEBAPPLICATIONNAME]" WebAppPool="WebAppPool">
</iis:WebApplication>
</iis:WebSite>
<iis:WebAppPool Id="WebAppPool" Name="[WEBAPPLICATIONPOOLNAME]"
Identity="networkService" />
<Condition>TARGETMODE = "NewWebsite" AND SCRIPTLANGUAGE =
"ASP"</Condition>
</Component>
<Component Id="ExistingWebsiteConfigASP" Guid="MYGUID">
<iis:WebSite Id="IISWebsiteExisting"
Description="[WEBSITEDESCRIPTION]" ConfigureIfExists="no"
Directory="TARGETDIR">
<iis:WebAddress Id="IISWebAddressExisting"
Port="[WEBSITEPORT]" IP="[WEBSITEIP]" Header="[WEBSITEHOSTHEADER]" />
<iis:WebVirtualDir Id="WebVirtualDirectory"
Alias="[VIRTUALDIRECTORYNAME]" Directory="TARGETDIR">
<iis:WebDirProperties
Id="IISWebVirtualDirPropertiesExisting" Execute="yes" Read="yes"
DefaultDocuments="default.aspx,index.aspx,index.htm,index.html,default.h
tm,default.html" />
<iis:WebApplication Id="WebApplicationExisting"
Name="[WEBAPPLICATIONNAME]" WebAppPool="WebAppPoolExisting">
</iis:WebApplication>
</iis:WebVirtualDir>
</iis:WebSite>
<Condition>TARGETMODE = "ExistingWebsite" AND SCRIPTLANGUAGE =
"ASP"</Condition>
<iis:WebAppPool Id="WebAppPoolExisting"
Name="[WEBAPPLICATIONPOOLNAME]" Identity="networkService" />
</Component>
-----Original Message-----
From: Dominique Louis [mailto:[email protected]]
Sent: Tuesday, September 22, 2009 4:53 PM
To: General discussion for Windows Installer XML toolset.;
[email protected]
Subject: Re: [WiX-users] remove website on uninstall
If you move the WebSite declaration inside a Component it should delete
it on uninstall.
Be aware though that if your WebSite somehow maps to "Default Web Site"
then it will delete that as well.
Dominique.
-----Original Message-----
From: Scharp, Craig [mailto:[email protected]]
Sent: Tue 9/22/2009 7:49 PM
To: [email protected]
Subject: [WiX-users] remove website on uninstall
Hi,
I created an msi install for website and database using wix 3.0.5217.0.
All works great for install. But, I'm having trouble trying to figure
out how to delete the website on uninstall. Has anyone done that? If
so, any suggestions would be greatly appreciated.
Thanks, Craig
------------------------------------------------------------------------
------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
AMX
AMX UK
Auster Road
Clifton Moor
York, North Yorkshire
United Kingdom
YO30 4GD
+44 (0) 1904 343100 office
+44 (0) 1904 343101 fax
AMX South
6th Floor Salisbury House
London Wall
London
United Kingdom
EC2M 5QQ
+44 (0) 2076 529450 office
+44 (0) 8701 991661 fax
AMX Belgium
Boerenkrijglaan, 96a
B-2260
Westerlo
Belgium
+ 32 (0) 1454 2763 office
+ 32 (0) 1454 2766 fax
######################################################################
Attention:
This e-mail message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions presented are solely those of the author.
This email was scanned and cleared by NetIQ MailMarshal.
######################################################################
------------------------------------------------------------------------
------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9-12, 2009. Register
now!
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users