Re: [WiX-users] 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 underselected site (IP, ports and host). If you then feed this information into you're WixIIS code it should be enough to get it to install correctly. Morten Date: Thu, 09 Nov 2006 22:06:46 + 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:23Til: John Watson; Lerudjordet, Morten MingeKopi: wix-users@lists.sourceforge.netEmne: 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 mustbe 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 PMTo: Lerudjordet, Morten MingeCc: 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 wasnot 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/DirectoryRefiis:WebDirProperties Id="DirProps" Read="yes" Script="ye
Re: [WiX-users] Need help to create a virtual directory
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 underselected site (IP, ports and host). If you then feed this information into you're WixIIS code it should be enough to get it to install correctly. Morten Date: Thu, 09 Nov 2006 22:06:46 + 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
Re: [WiX-users] Need help to create a virtual directory
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] From: Ravi Yellasiri (Aditi) [EMAIL PROTECTED] To: John Watson [EMAIL PROTECTED],Lerudjordet, Morten Minge [EMAIL PROTECTED] CC: wix-users@lists.sourceforge.net wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Need help to create a virtual directory Date: Thu, 9 Nov 2006 11:22:30 -0800 MIME-Version: 1.0 Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by bay0-mc2-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 9 Nov 2006 11:23:00 -0800 Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93])by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 37C6012691; Thu, 9 Nov 2006 11:22:59 -0800 (PST) Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43)id 1GiFUG-0007xM-Gbfor wix-users@lists.sourceforge.net; Thu, 09 Nov 2006 11:22:56 -0800 Received: from mail2.microsoft.com ([131.107.115.215] helo=smtp.microsoft.com)by mail.sourceforge.net with esmtps (TLSv1:RC4-MD5:128) (Exim 4.44)id 1GiFUD-Lv-EFfor wix-users@lists.sourceforge.net; Thu, 09 Nov 2006 11:22:56 -0800 Received: from mailout6.microsoft.com (157.54.69.150) byTK5-EXGWY-E802.partners.extranet.microsoft.com (10.251.56.168) withMicrosoft SMTP Server id 8.0.685.15; Thu, 9 Nov 2006 11:22:36 -0800 Received: from IGT-HUB-01.redmond.corp.microsoft.com ([157.54.69.148]) bymailout6.microsoft.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 9 Nov2006 11:22:34 -0800 Received: from TK5-EXHUB-C102.redmond.corp.microsoft.com ([157.54.70.72]) byIGT-HUB-01.redmond.corp.microsoft.com over TLS secured channel withMicrosoft SMTPSVC(6.0.3790.2786); Thu, 9 Nov 2006 11:22:33 -0800 Received: from NA-EXMSG-C132.redmond.corp.microsoft.com ([157.54.72.82]) byTK5-EXHUB-C102.redmond.corp.microsoft.com ([157.54.70.72]) with mapi;Thu, 9 Nov 2006 11:22:31 -0800 X-Message-Info: LsUYwwHHNt1eOjnWK209tC7u8zEs/+hgKqY8LQzhjUs= Thread-Topic: [WiX-users] Need help to create a virtual directory Thread-Index: AccDmty8EUumrCvuSauOBviGTJMTXQAldPOQ Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-OriginalArrivalTime: 09 Nov 2006 19:22:33.0457 (UTC)FILETIME=[68181E10:01C70434] X-Spam-Score: 0.2 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net.See http://spamassassin.org/tag/ for more details.Report problems tohttp://sf.net/tracker/?func=addgroup_id=1atid=210.2 HTML_60_70 BODY: Message is 60% to 70% HTML0.0 HTML_MESSAGE BODY: HTML included in message X-BeenThere: wix-users@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion for Windows Installer XML toolset.wix-users.lists.sourceforge.net List-Unsubscribe: https://lists.sourceforge.net/lists/listinfo/wix-users,mailto:[EMAIL PROTECTED] List-Archive: http://sourceforge.net/mailarchive/forum.php?forum=wix-users List-Post: mailto:wix-users@lists.sourceforge.net List-Help: mailto:[EMAIL PROTECTED] List-Subscribe: https://lists.sourceforge.net/lists/listinfo/wix-users,mailto:[EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] 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 http://www.aditistaffing.com/ Aditi Staffing at Microsoft http
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 wasnot 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=INSTALLPATHWebSite=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=MyServiceWebAppPool=DefaultAppPool //iis:WebVirtualDir/Component /DirectoryRefiis:WebDirProperties Id=DirProps Read=yes Script=yes /!-- I get all websites on local machine and based on selection populateproperty TARGET_WEB_SITE with it -- iis:WebSite Id=InstallSite Description=MySite !-- Most important ting is the Port of the site, this mustbe 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:WebSiteiis:WebAppPool Id=DefaultAppPool Name=[TARGET_APPPOOL] / Also remember to save the port number in registry or you will not beable to uninstall.MortenDate: Wed, 8 Nov 2006 09:47:58 -0800From: Ravi Yellasiri (Aditi) [EMAIL PROTECTED]Subject: [WiX-users] Need help to create a virtual directoryTo: wix-users@lists.sourceforge.net wix-users@lists.sourceforge.netMessage-ID:[EMAIL PROTECTED] rosoft.comContent-Type: text/plain; charset=us-asciiHi,I am new to the Wix development and trying to develop an MSI. Followingare the core functionalities of my MSI. Copy config files to destination directory (webroot)Copy a .dll files to the destinationCreate an app pool MyAppPoolCreate a (IIS 6.0) virtual directory under an existing web site's web directory and point it to the MyAppPoolHere 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 MyAppPoolCreate an virtual directory My Service under the preexisting web siteMySite = ServiceLibrary and set the app pool to MyAppPoolAfter I ran this MSI. It is copying the files into right directory (physical) , but creating the Web Directory ServiceLibrary under theDefault Web Site and creating Virtual Directory My Service underthat.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 wrapthis up ASAP. Please help me to create a virtual directory under rightweb site. Thanks Inadvance!!!Ravi.Ravi K Reddy Yellasirihttp://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 jobeasierDownload IBM WebSphere Application Server v.1.0.1 based on ApacheGeronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 --___WiX-users mailing listWiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-usersEnd 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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing listWiX-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users