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