I'm not sure I'd trust that.  I was on XP with IIS 5.1 and I updated the 
default website using the MMC snapin and I didn't see the registry value change.

I usually query the IIS metabase APIs to get configuration information.  It 
would be nice if there was a reliable RegLocator pattern to use but I'm not 
positive that the IIS team was so friendly.


--- On Fri, 9/18/09, Dominique Louis <dominique.lo...@amxeurope.com> wrote:

> From: Dominique Louis <dominique.lo...@amxeurope.com>
> Subject: Re: [WiX-users] Detecting Default Web Site Port
> To: "General discussion for Windows Installer XML toolset." 
> <wix-users@lists.sourceforge.net>
> Date: Friday, September 18, 2009, 9:48 AM
> Never mind, found it at
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceProvider\Serv
> iceType\W3SVC\TcpPort
> 
> Used the wrong search criteria in Google.
> 
> Dominique.
> 
> -----Original Message-----
> From: Dominique Louis [mailto:dominique.lo...@amxeurope.com]
> 
> Sent: 18 September 2009 15:42
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Detecting Default Web Site Port
> 
> Hi all,
>   I'm trying to create a Virtual Directory under the
> Default website,
> but I've noticed that if I don't  have the right Port
> specified the
> Virtual Directory is not created. Most companies have their
> port set to
> 80, but some have it set to something totally different,
> like say 9080.
> So this needs to be dynamic in the installer.
> 
> At <Product> level I have...
> 
> <iis:WebSite Id="DefaultWebSite" Description="Default
> Web Site"
> Directory="IISPATHWWWROOT">
>       <iis:WebAddress Id="AllUnassigned"
> Port="[DEFAULTWEBSITEPORT]"/>
>     </iis:WebSite>
> 
> And at <Component> level I have...
>   <iis:WebVirtualDir Id="ComposerWebVirtualDir"
> Alias="ComposerWeb"
> Directory="Web" WebSite="DefaultWebSite">
>           <iis:WebApplication
> Id="ComposerWebApplication"
> Name="ComposerWeb" />
>   </iis:WebVirtualDir>
> 
> I can work out the IISPATHWWWROOT fine, but I could not
> find a way to
> populate [DEFAULTWEBSITEPORT] at install time. Any ideas?
> The internet
> was not helpful either.
> 
> 
> Thanks,
> 
> 
> 
> DOMINIQUE LOUIS | IS DEVELOPER, AMX DIGITAL MEDIA GROUP 
> AMX UK| 6TH FLOOR SALISBURY HOUSE,| LONDON WALL | LONDON |
> EC2M 5QQ 
> www.amx.com
> 
> 
> 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-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-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
> 


      

------------------------------------------------------------------------------
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