Hi All,

Excellent information!!!

Now I am clear with the issues. I did not find this information in Wix help. Does it make sense to add this info in the help file? This info may be helpful to the learning devs. Thanks a lot for you time and info.

 

Ravi.

From rainy Redmond.

 

Ravi K Reddy Yellasiri

Aditi Staffing at Microsoft

MSN

(425) 421-2219


From: Lerudjordet, Morten Minge [mailto:[EMAIL PROTECTED]
Sent: Friday, November 10, 2006 12:59 AM
To: Ravi Yellasiri (Aditi)
Cc: wix-users@lists.sourceforge.net
Subject: SV: Need help to create a virtual directory

 

So if you still want to have sites on the same port you have to give them unique combination (port, IP, host), and probably use a custom action combined with c++ dll or (_vbscript_) to retrieve information from the IIS metadata base at install time.

 

If you know the site / port / IP structure is looked you can hard code the information into the wix code, but this is not very flexible.

 

I use a _vbscript_ (sorry, I know this is kinda outlawed but it works) that retrieves Site names, and based on the selection made during installation, another method retrieves all information under selected site (IP, ports and host). If you then feed this information into you're Wix IIS code it should be enough to get it to install correctly.

 

Morten

 

 

 


Date: Thu, 09 Nov 2006 22:06:46 +0000

From: "david adams" <[EMAIL PROTECTED]>

Subject: Re: [WiX-users] Need help to create a virtual directory

To: wix-users@lists.sourceforge.net

Message-ID: <[EMAIL PROTECTED]>

Content-Type: text/plain; format=flowed

Ravi:

I think that this is more of an IIS issue than one of WiX or the Windows Installer.

IIS references websites in its meta-table by <IP address | Port | Host-Header(if you have one)>.

By rule, you can have only one running web site under a specific combination at a time. They are referenced by an positional array (0, 1, 2, 3, etc.).

On a IIS 6 server in its "default" configuration, Default Website is at address "All Unassigned" (which is the first IP address on the box) at Port 80 with no host header.

The reason that it worked when you changed all port numbers is because to IIS (& the joined constraint that the IP / Port / <Host Header> creates), you created unique entries. Before that change, your actions would be getting done onto the already existing website.

David Adams

MSN MessengerID: [EMAIL PROTECTED]

 


Fra: Ravi Yellasiri (Aditi) [mailto:[EMAIL PROTECTED]
Sendt: 9. november 2006 20:23
Til: John Watson; Lerudjordet, Morten Minge
Kopi: wix-users@lists.sourceforge.net
Emne: RE: [WiX-users] Need help to create a virtual directory

Hi All,

 

Thanks for the quick response. I really appreciate it. Sorry, I forgot to append attachment. Please find one. I am using Wix 2.0 to develop the MSI. Looks the sample that Morten Minge Lerudjordet sent is Wix 3.0. One of the comments “<!--
               Most important ting is the Port of the site, this must
be uniqe to get a hasselfree install
               I have no duplicate portnumbers, all mye sites are
defined on different ports
       -->”  sounded me interesting. I have different sites that are installed on port 80. That means only one site is going to run at anytime. I changed the port numbers of all the sites and then my MSI worked fine. Does it mean that Wix works only based on the port number rather than Web Site name? Please find the attached file for code. I scrubbed it little. So there might be some typos.

 

Thanks a lot for your time.

 

Ravi.

 

Ravi K Reddy Yellasiri

Aditi Staffing at Microsoft

MSN

(425) 421-2219


From: John Watson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 08, 2006 5:03 PM
To: Lerudjordet, Morten Minge
Cc: wix-users@lists.sourceforge.net; Ravi Yellasiri (Aditi)
Subject: Re: [WiX-users] Need help to create a virtual directory

 

I would add one more thing to Morten's post. The WebSite tag acts differently when it's nested under a Component and when it's not. If it's under a Component, WiX will cause it to create a new website. If it's not under a Component but under a Product, Fragment, or Module then the WebSite tag acts as a "locator" meaning it will locate an existing web site. For example, if you put it under Product or Fragment and then use "Default Web Site" it'll find the default IIS web site and add your virtual under it instead of creating a new website on a new port. See the docs here for more info.

 

Regards,

John

 

On 11/8/06, Lerudjordet, Morten Minge <[EMAIL PROTECTED]> wrote:

If you do a search in the mailing list you will find the answers. I was
not able to get you'r attached file, so I can't see where the problem
is. Here is a sample of how you do it:


<!-- Targedir is base dir in file structure -->
<DirectoryRef Id="TARGETDIR">

<!-- Creates a virual dir -->
<iis:WebVirtualDir Id="VirtualDir" Alias="ServiceLibary/MyService"
                                  Directory="INSTALLPATH"
WebSite="InstallSite" DirProperties="DirProps">

<!-- INSTALLPATH is the root path of where you'r site is i.e Default Web
Site = c:\inetpub\wwwroot -->
<iis:WebApplication Id="WebApplication" Name="MyService"
WebAppPool="DefaultAppPool" />
</iis:WebVirtualDir>
</Component>

</DirectoryRef>

<iis:WebDirProperties Id="DirProps" Read="yes" Script="yes" />

<!-- I get all websites on local machine and based on selection populate
property TARGET_WEB_SITE with it -->
<iis:WebSite Id="InstallSite" Description="MySite" >
       <!--
               Most important ting is the Port of the site, this must
be uniqe to get a hasselfree install
               I have no duplicate portnumbers, all mye sites are
defined on different ports
       -->
   <iis:WebAddress Id="InstallPort" Port="[TARGET_PORT]" />
</iis:WebSite>
<iis:WebAppPool Id="DefaultAppPool" Name="[TARGET_APPPOOL]" />

Also remember to save the port number in registry or you will not be
able to uninstall.

Morten

Date: Wed, 8 Nov 2006 09:47:58 -0800
From: "Ravi Yellasiri (Aditi)" < [EMAIL PROTECTED]>
Subject: [WiX-users] Need help to create a virtual directory
To: "wix-users@lists.sourceforge.net"
       < wix-users@lists.sourceforge.net>
Message-ID:

<[EMAIL PROTECTED]
rosoft.com>

Content-Type: text/plain; charset="us-ascii"

Hi,

I am new to the Wix development and trying to develop an MSI. Following
are the core functionalities of my MSI.

Copy config files to destination directory (webroot)
Copy a .dll files to the destination
Create an app pool "MyAppPool"
Create a (IIS 6.0) virtual directory under an existing web site's web
directory and point it to the "MyAppPool"

Here is a brief structure of IIS Manager.

Application Pools
     | AppPool1 (App Pool)
     | AppPool2 (App Pool)
     | MyAppPool
     :
     :
Web Sites
     | Default Website (Web Site)
     | MySite (Web Site)
           | ServiceLibrary (Web Dir)
                 | My Service (Virtual Directory)


After I run my MSI, It is supposed to create an Application pool with
the name "MyAppPool"
Create an virtual directory "My Service" under the preexisting web site
"MySite => ServiceLibrary" and set the app pool to "MyAppPool"

After I ran this MSI. It is copying the files into right directory
(physical) , but creating the Web Directory "ServiceLibrary" under the
"Default Web Site" and creating Virtual Directory "My Service" under
that.

Lets say If I delete the "Default Web Site" and Install it again, It is
installing it under another different web site.

Please find the attached .xml file for my wxs content. I need to wrap
this up ASAP. Please help me to create a virtual directory under right
web site.

Thanks Inadvance!!!

Ravi.

Ravi K Reddy Yellasiri
<http://www.aditistaffing.com/>
Aditi Staffing at Microsoft
< http://www.aditistaffing.com/>
MSN
(425) 421-2219

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://sourceforge.net/mailarchive/forum.php?forum=wix-users/attachments
/20061108/38f06b07/attachment.html

------------------------------

------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


End of WiX-users Digest, Vol 6, Issue 39
****************************************

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to