Re: [WiX-users] Common virtual directory for multiple products

2007-11-04 Thread Rob Mensching

This behavior is supported today.  Right now when a virtual directory is 
deleted, all of the children are deleted as well.  This is a bit 
different than the Directory behavior in the Windows Installer where 
child folders remain if they are not explicitly deleted.  The only two 
options that I can think of:

1.  Make sure the parent virtual directory always has a reference 
count.  This means that the Component containing the vdir must be in the 
Feature with all the Components that depend on the parent vdir.

2.  Modify the custom action code to behave more like the Directory 
behavior in the Windows Installer.

Obviously, 1 is far easier than 2.

Kelly Leahy wrote:

 It doesn't look to me like there's a way to do this, but I don't know 
 anything about WiX's support for IIS.

 Hopefully somebody else will recommend.

 Kelly



 *Rolando [EMAIL PROTECTED]*

 Sent by: [EMAIL PROTECTED]

 11/01/2007 04:00 PM

   
 To
   Kelly Leahy [EMAIL PROTECTED]
 cc
   [EMAIL PROTECTED], wix-users@lists.sourceforge.net
 Subject
   Re: [WiX-users] Common virtual directory for multiple products



   





 Thank you for your reply,
 I've tried this before but it doesn't work, because is not possible to 
 add a reference from the children web directories to the common web 
 directory.

 Is there any way to add a reference to an existing web directory?

 Kelly Leahy wrote:

 I don't know anything about using MSI to install virtual directories, 
 but I think the solution is to put your 'shared' parent directory in a 
 component that is used by all of your applications, using the same 
 ComponentGuid.  Then, only the 'first' application installed will add 
 the directory, and only the 'last' application removed will remove it.

 However, I'm not sure how to do this.

 good luck.

 Kelly


 *Rolando **_[EMAIL PROTECTED]_* 
 mailto:[EMAIL PROTECTED]

 Sent by: [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]

 11/01/2007 11:57 AM

   
 To
   [EMAIL PROTECTED] 
 mailto:wix-users@lists.sourceforge.net
 cc
   
 Subject
   [WiX-users] Common virtual directory for multiple products




   






 Hi, I have five products, each one of them creates one or more virtual
 directories. I need to put all this virtual directories inside a common
 virtual directory.

 ie.
  Default Web Site
 |-[My product line]
  |-ProductOne
  |-ProductTwo
  ...
  |-Product N

 the code I'm using to create each virtual directory looks like this

  Component Id='MyID' Guid='MyComponentGUID'
  CreateFolder/
   _iis:WebVirtualDir_ Id=ProductLineVD Alias=[My product
 line] Directory=[My product line directory] WebSite=[My default Web
 Site]
  _iis:WebVirtualDir_ Id=ProductXVD Alias=[My Product X
 alias] Directory=[My Product X directory]
  _iis:WebApplication ... _ iis:WebApplication...
   ...
  /_iis:WebApplication_
  /_iis:WebVirtualDir_
  /_iis:WebVirtualDir_
  /Component

 When I install the products everything works as desired, but if I
 uninstall one product, the common virtual directory is removed and the
 other products virtual directories can not be accessed (Obviously)

 Do you have any suggestion?
 Thanks,
 Rolando


 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  _http://get.splunk.com/_
 ___
 WiX-users mailing list_
 [EMAIL PROTECTED] 
 mailto:WiX-users@lists.sourceforge.net_
 __https://lists.sourceforge.net/lists/listinfo/wix-users_



 **
 This communication is intended solely for the addressee and is
 confidential. If you are not the intended recipient, any disclosure,
 copying, distribution or any action taken or omitted to be taken in
 reliance on it, is prohibited and may be unlawful.  Unless indicated
 to the contrary: it does not constitute professional advice or
 opinions upon which reliance may be made by the addressee or any
 other party, and it should be considered to be a work in progress.
 Unless stated otherwise, this communication does not form a prescribed
 statement of actuarial opinion under American Academy of Actuaries
 guidelines.
 **
  

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  
 http://get.splunk.com

[WiX-users] Common virtual directory for multiple products

2007-11-01 Thread Rolando
Hi, I have five products, each one of them creates one or more virtual 
directories. I need to put all this virtual directories inside a common 
virtual directory.

ie.
   Default Web Site
  |-[My product line]
   |-ProductOne
   |-ProductTwo
   ...
   |-Product N

the code I'm using to create each virtual directory looks like this

   Component Id='MyID' Guid='MyComponentGUID'
   CreateFolder/
iis:WebVirtualDir Id=ProductLineVD Alias=[My product 
line] Directory=[My product line directory] WebSite=[My default Web 
Site]
   iis:WebVirtualDir Id=ProductXVD Alias=[My Product X 
alias] Directory=[My Product X directory]
   iis:WebApplication ... 
...
   /iis:WebApplication
   /iis:WebVirtualDir
   /iis:WebVirtualDir
   /Component

When I install the products everything works as desired, but if I 
uninstall one product, the common virtual directory is removed and the 
other products virtual directories can not be accessed (Obviously)

Do you have any suggestion?
Thanks,
Rolando


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Common virtual directory for multiple products

2007-11-01 Thread Kelly Leahy
I don't know anything about using MSI to install virtual directories, but 
I think the solution is to put your 'shared' parent directory in a 
component that is used by all of your applications, using the same 
ComponentGuid.  Then, only the 'first' application installed will add the 
directory, and only the 'last' application removed will remove it.

However, I'm not sure how to do this.

good luck.

Kelly




Rolando [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
11/01/2007 11:57 AM

To
wix-users@lists.sourceforge.net
cc

Subject
[WiX-users] Common virtual directory for multiple products






Hi, I have five products, each one of them creates one or more virtual 
directories. I need to put all this virtual directories inside a common 
virtual directory.

ie.
   Default Web Site
  |-[My product line]
   |-ProductOne
   |-ProductTwo
   ...
   |-Product N

the code I'm using to create each virtual directory looks like this

   Component Id='MyID' Guid='MyComponentGUID'
   CreateFolder/
iis:WebVirtualDir Id=ProductLineVD Alias=[My product 
line] Directory=[My product line directory] WebSite=[My default Web 
Site]
   iis:WebVirtualDir Id=ProductXVD Alias=[My Product X 
alias] Directory=[My Product X directory]
   iis:WebApplication ... 
...
   /iis:WebApplication
   /iis:WebVirtualDir
   /iis:WebVirtualDir
   /Component

When I install the products everything works as desired, but if I 
uninstall one product, the common virtual directory is removed and the 
other products virtual directories can not be accessed (Obviously)

Do you have any suggestion?
Thanks,
Rolando


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




**
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful.  Unless indicated
to the contrary: it does not constitute professional advice or 
opinions upon which reliance may be made by the addressee or any 
other party, and it should be considered to be a work in progress.
Unless stated otherwise, this communication does not form a prescribed
statement of actuarial opinion under American Academy of Actuaries 
guidelines.
**-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Common virtual directory for multiple products

2007-11-01 Thread Rolando

Thank you for your reply,
I've tried this before but it doesn't work, because is not possible to 
add a reference from the children web directories to the common web 
directory.


Is there any way to add a reference to an existing web directory?

Kelly Leahy wrote:


I don't know anything about using MSI to install virtual directories, 
but I think the solution is to put your 'shared' parent directory in a 
component that is used by all of your applications, using the same 
ComponentGuid.  Then, only the 'first' application installed will add 
the directory, and only the 'last' application removed will remove it.


However, I'm not sure how to do this.

good luck.

Kelly



*Rolando [EMAIL PROTECTED]*

Sent by: [EMAIL PROTECTED]

11/01/2007 11:57 AM


To
wix-users@lists.sourceforge.net
cc

Subject
[WiX-users] Common virtual directory for multiple products









Hi, I have five products, each one of them creates one or more virtual
directories. I need to put all this virtual directories inside a common
virtual directory.

ie.
  Default Web Site
 |-[My product line]
  |-ProductOne
  |-ProductTwo
  ...
  |-Product N

the code I'm using to create each virtual directory looks like this

  Component Id='MyID' Guid='MyComponentGUID'
  CreateFolder/
   iis:WebVirtualDir Id=ProductLineVD Alias=[My product
line] Directory=[My product line directory] WebSite=[My default Web
Site]
  iis:WebVirtualDir Id=ProductXVD Alias=[My Product X
alias] Directory=[My Product X directory]
  iis:WebApplication ... 
   ...
  /iis:WebApplication
  /iis:WebVirtualDir
  /iis:WebVirtualDir
  /Component

When I install the products everything works as desired, but if I
uninstall one product, the common virtual directory is removed and the
other products virtual directories can not be accessed (Obviously)

Do you have any suggestion?
Thanks,
Rolando


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



**
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful.  Unless indicated
to the contrary: it does not constitute professional advice or
opinions upon which reliance may be made by the addressee or any
other party, and it should be considered to be a work in progress.
Unless stated otherwise, this communication does not form a prescribed
statement of actuarial opinion under American Academy of Actuaries
guidelines.
** 



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Common virtual directory for multiple products

2007-11-01 Thread Kelly Leahy
It doesn't look to me like there's a way to do this, but I don't know 
anything about WiX's support for IIS.

Hopefully somebody else will recommend.

Kelly




Rolando [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
11/01/2007 04:00 PM

To
Kelly Leahy [EMAIL PROTECTED]
cc
[EMAIL PROTECTED], wix-users@lists.sourceforge.net
Subject
Re: [WiX-users] Common virtual directory for multiple products






Thank you for your reply,
I've tried this before but it doesn't work, because is not possible to add 
a reference from the children web directories to the common web directory.

Is there any way to add a reference to an existing web directory?

Kelly Leahy wrote: 

I don't know anything about using MSI to install virtual directories, but 
I think the solution is to put your 'shared' parent directory in a 
component that is used by all of your applications, using the same 
ComponentGuid.  Then, only the 'first' application installed will add the 
directory, and only the 'last' application removed will remove it. 

However, I'm not sure how to do this. 

good luck. 

Kelly 



Rolando [EMAIL PROTECTED] 

Sent by: [EMAIL PROTECTED] 
11/01/2007 11:57 AM 


To
wix-users@lists.sourceforge.net 
cc

Subject
[WiX-users] Common virtual directory for multiple products








Hi, I have five products, each one of them creates one or more virtual 
directories. I need to put all this virtual directories inside a common 
virtual directory.

ie.
  Default Web Site
 |-[My product line]
  |-ProductOne
  |-ProductTwo
  ...
  |-Product N

the code I'm using to create each virtual directory looks like this

  Component Id='MyID' Guid='MyComponentGUID'
  CreateFolder/
   iis:WebVirtualDir Id=ProductLineVD Alias=[My product 
line] Directory=[My product line directory] WebSite=[My default Web 
Site]
  iis:WebVirtualDir Id=ProductXVD Alias=[My Product X 
alias] Directory=[My Product X directory]
  iis:WebApplication ... 
   ...
  /iis:WebApplication
  /iis:WebVirtualDir
  /iis:WebVirtualDir
  /Component

When I install the products everything works as desired, but if I 
uninstall one product, the common virtual directory is removed and the 
other products virtual directories can not be accessed (Obviously)

Do you have any suggestion?
Thanks,
Rolando


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



**
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful.  Unless indicated
to the contrary: it does not constitute professional advice or 
opinions upon which reliance may be made by the addressee or any 
other party, and it should be considered to be a work in progress.
Unless stated otherwise, this communication does not form a prescribed
statement of actuarial opinion under American Academy of Actuaries 
guidelines.
**
 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




**
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful.  Unless indicated
to the contrary: it does not constitute professional advice or 
opinions upon which reliance may be made by the addressee or any 
other party, and it should be considered to be a work in progress.
Unless stated otherwise, this communication does not form a prescribed
statement of actuarial opinion under American Academy of Actuaries 
guidelines