Hi wix users,

Here's a summary of what I've found about uninstall and removing
websites:

Assuming all is setup correctly with components and such, the
uninstaller removes the website for whatever value WebsitePort property
is set to.  For example, if you have your website on the same port as
WebsitePort property in wix file, all works fine.  But, if you have
default website on port 80 and WebsitePort property is set to 80, but
create another website on another port (say port 81) using the wix
installer.  Then, when you uninstall, the default website will be
removed instead.  This is because default value of WebsitePort is 80 so
that's the what will be removed.

Here's another post that suggests storing the port in registry and
reading that on uninstall.  
http://n2.nabble.com/Default-website-gets-removed-on-Uninstall-td731259.
html

I'm going this route for now, but if anyone has any other ideas or
suggestions, or knows if this is a known bug, I'm all ears.  I'm using
wix 3.0.5217.0, but have seen posts with the same issues running
3.0.5419.0. But, I will also give that a try.

Thx, Craig


-----Original Message-----
From: Chad Petersen [mailto:chad.peter...@harlandfs.com] 
Sent: Tuesday, September 22, 2009 5:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] remove website on uninstall

How about having it write a verbose log during the uninstall and then
look to see if it indicates in the log why it likes that Component so
much? It's helped me over similar hurdles in the past.

-----Original Message-----
From: Scharp, Craig [mailto:craig.sch...@zytax.com] 
Sent: Tuesday, September 22, 2009 3:25 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] remove website on uninstall

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:dominique.lo...@amxeurope.com] 
Sent: Tuesday, September 22, 2009 4:53 PM
To: General discussion for Windows Installer XML toolset.;
WiX-users@lists.sourceforge.net
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:craig.sch...@zytax.com]
Sent: Tue 9/22/2009 7:49 PM
To: WiX-users@lists.sourceforge.net
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&reg; 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
WiX-users@lists.sourceforge.net
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&reg; 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&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------
------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to