That property definition is setting WebSitePort to the string 
"[PUBLICSITEPORT]" not the value stored in the Property PUBLICSITEPORT.  So the 
CustomAction fails because it doesn't find a number.

Why don't you do:

<iis:WebAddress  Id="SitePort" Port="[PUBLICSITEPORT]"/>

Or you could use a Type 51 Customaction to set the WebSitePort Property to the 
value of the PUBLICSITEPORT Property.

From: Ravikumar Gopinath [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 14, 2007 3:51 PM
To: Rob Mensching; [email protected]
Subject: RE: [WiX-users] Setting Port value through property...

It doesn't appear to work. I am trying to do the following:

<Property id="WebSitePort" value="[PUBLICSITEPORT]" />

And this property is used in the IIS:Website table as this value can be set by 
other setup packages too whcih include this wxs file.

<iis:WebSite
        Id="MyWebServer"
        Directory="C:\MyApp"
        Description="[SITENAMEPROPERTY]">
        <iis:WebAddress Id="SitePort" Port="[WebSitePort]" />
    </iis:WebSite>


When i do this, i get the following error:

ConfigureIIs:  Error 0x8007000d: invalid port provided for web site:
ConfigureIIs:  Error 0x8007000d: failed to read IIsWebSite table
MSI (s) (74!00) [09:56:20:798]: Product: Test Web Server -- Error 26002. Failed 
to read IIsWebSite table.   (-2147024883         )


Thanks
Ravi



________________________________
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [email protected]
Date: Sun, 14 Jan 2007 13:22:16 -0800
Subject: RE: [WiX-users] Setting Port value through property...

That should work.  However, only upper-case Properties can be specified from 
the command-line.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ravikumar 
Gopinath
Sent: Sunday, January 14, 2007 11:11 AM
To: [email protected]
Subject: [WiX-users] Setting Port value through property...



I need to set the "Port" and "description" value of a website based on user's 
input. I am trying to use a property, but the install fails. If I was using a 
CustomTable, I could have used "session.FormatString" method. However, since 
this is a wix defined table, I am not sure how to tell it to format it. Is 
there any other way of achieving the same result?

    <iis:WebSite
        Id="MyWebServer"
        Directory="C:\MyApp"
        Description="[SITENAMEPROPERTY]">
        <iis:WebAddress Id="SitePort" Port="[WebSitePort]" />
    </iis:WebSite>

Thanks
Ravi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to