[WiX-users] Stop IIS on uninstall

2006-08-24 Thread John Hidey (The C# Junkie)
All
 
How to I ensure that IIS gets stopped on and uninstall.  I'm installing a site (web service) and also a windows service.  The windows service uses the web service that I installed and the windows service is started on install.  When uninstalling, the web services bin directory and its contents are left behind.  If I manually stop IIS and then uninstall everything is fine.  Can I have the uninstall process stop IIS during uninstalled and if so how do I go about this.  

 
Thanks in advance everyone.
 
John
-
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


[WiX-users] Feature detection

2006-08-23 Thread John Hidey (The C# Junkie)
How can I tell what features are being installed.  I need to display a form if a certain feature is installed and not display it when its not installed.  
 
I have the following feature structure
complete level 1
    feature1 level 1
    feature2 level 1
    feature3 level 1
    feature4 level 1
By doing this I believe this sets up my typical install to install everything and this works.  If i remvoed any of the features it works.  So all is well up to this point, but now i want to know for example if feature2 is being installed.  How can i determine this?

 
Along the same note, is there a way to use a modified MONDO UI Set with a custom dialog in it that show the dialog when feature2 is installed without having to put conditions in the dialog wxs files.  Doing this will break all the other UI install sets.

 
Any help would be greatly appreacited.
 
Thanks Guys & Gals
John
 
-
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


Re: [WiX-users] GAC and call Custom Action

2006-07-29 Thread John Hidey (The C# Junkie)
Sorry about that everyone.  These messages where posted two days ago when we were having problems with mail server at work.  Hope not too many more come across.  I dont want anyone thinking I'm flooding the mailing list.

 
Thanks
John 
On 7/26/06, John Hidey <[EMAIL PROTECTED]> wrote:




Here is my problem everyone.  I have a msi that installs several files into the gac.  I DO NOT create a shadow copy of these files on the file system until my property called CREATESHADOW has a value of 1.  These assemblies have installers in them that I need to call.  (I know managed installers in not recommended but have to get done quickly)  When I put my custom action in and call InstallUtilLib the file isn't actually on the file system.  Is there a way to have InstallUtilLib refer the file via its temporary location that is used by the installer?  Thoughts?

 
Thanks everyone in advance.
 
John
 
 -Take Surveys. Earn Cash. Influence the Future of ITJoin 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
WiX-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users
-- John Hidey[EMAIL PROTECTED] 
-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] GAC and call Custom Action

2006-07-29 Thread John Hidey








This was not my decision.  This
is how the Microsoft enterprise library 2.0 does it.  We have signed the
msentlib 2.0 and are putting in the gac and want to get all the instrumentation
installed for it also with the installer.

 

 





From: John Vottero
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 1:03 PM
To: John Hidey; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] GAC and call Custom Action





 

I don't think it's a good idea to put Installer classes in the same
assembly that they're installing for.  This is one of the reasons.



 







From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Hidey
Sent: Wednesday, July 26, 2006 1:51 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] GAC and call Custom Action

Here is my problem everyone.  I have a msi that
installs several files into the gac.  I DO NOT create a shadow copy of
these files on the file system until my property called CREATESHADOW has a
value of 1.  These assemblies have installers in them that I need to
call.  (I know managed installers in not recommended but have to get done
quickly)  When I put my custom action in and call InstallUtilLib the file
isn’t actually on the file system.  Is there a way to have InstallUtilLib
refer the file via its temporary location that is used by the installer? 
Thoughts?

 

Thanks everyone in advance.

 

John

 

 








-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [WiX-devs] GAC and call Custom Action

2006-07-29 Thread John Hidey
My custom action in install the Microsoft Enterprise Library into the gac and 
register all their Instrumentation classes.  This is Microsoft code and they 
have the installers in the code so I assumed it would be easiest to just call 
them.  

Let me ask you this.  I am not a c++ developer by any means.  Can you point me 
to or give me some guidance on how to do this the right way.  I would love to 
get this done right one time instead of wrong several times.

Thanks
John


-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 11:01 AM
To: John Hidey; wix-users@lists.sourceforge.net; wix-devs@lists.sourceforge.net
Subject: RE: [WiX-devs] GAC and call Custom Action

Yeah, that scenario just doesn't work right.  The problem is that Assemblies 
going to the GAC aren't committed until the very end of the install.  That 
means your InstallUtil calls (assuming InstallUtil can reach into the GAC, I've 
never tried) have to come after InstallFinalize.  That means that your 
InstallUtil CustomActions can't be part of the installation transaction so when 
they fail, the install succeeds but is broken.

This is just one more example of why using InstallUtil is a "bad thing".

My suggestion (which is rarely popular ) is to just do the right thing 
the first time and save yourself the time you'll spend later trying to manage 
the InstallUtil hack.

What is the CustomAction you're trying to do anyway?


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Hidey
Sent: Wednesday, July 26, 2006 1:36 PM
To: wix-users@lists.sourceforge.net; wix-devs@lists.sourceforge.net
Subject: [WiX-devs] GAC and call Custom Action

Here is my problem everyone.  I have a msi that installs several files into the 
gac.  I DO NOT create a shadow copy of these files on the file system until my 
property called CREATESHADOW has a value of 1.  These assemblies have 
installers in them that I need to call.  (I know managed installers in not 
recommended but have to get done quickly)  When I put my custom action in and 
call InstallUtilLib the file isn't actually on the file system.  Is there a way 
to have InstallUtilLib refer the file via its temporary location that is used 
by the installer?  Thoughts?

Thanks everyone in advance.

John




-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] GAC and call Custom Action

2006-07-28 Thread John Hidey








Is there a way to do what I want
to do.  I would think that this can be done.  Many installers do this, but
maybe they use a C++ custom action which does the registry for them.  Any
thoughts?

 

John

 





From: Bob Arnson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 3:50 AM
To: John Hidey
Cc: wix-users@lists.sourceforge.net; wix-devs@lists.sourceforge.net
Subject: Re: [WiX-users] GAC and call Custom Action





 

John Hidey wrote: 

Here is my problem everyone.  I have a msi that
installs several files into the gac.  I DO NOT create a shadow copy of these
files on the file system until my property called CREATESHADOW has a value of
1.  These assemblies have installers in them that I need to call.  (I
know managed installers in not recommended but have to get done quickly) 
When I put my custom action in and call InstallUtilLib the file isn’t actually
on the file system.  Is there a way to have InstallUtilLib refer the file
via its temporary location that is used by the installer?  Thoughts?

There
is no temporary location. Files to be installed into the GAC aren't put down
until the install is being committed. 



-- sig://boBhttp://bobs.org




-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] GAC and call Custom Action

2006-07-28 Thread John Hidey








Here is my problem everyone.  I have a msi that
installs several files into the gac.  I DO NOT create a shadow copy of
these files on the file system until my property called CREATESHADOW has a
value of 1.  These assemblies have installers in them that I need to
call.  (I know managed installers in not recommended but have to get done
quickly)  When I put my custom action in and call InstallUtilLib the file
isn’t actually on the file system.  Is there a way to have InstallUtilLib
refer the file via its temporary location that is used by the installer? 
Thoughts?

 

Thanks everyone in advance.

 

John

 

 






-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] [WiX-devs] GAC and call Custom Action

2006-07-28 Thread John Hidey (The C# Junkie)

Rob,We're having issues with our mail server at work here so I don't know if you received this or not so I'm going to send to you again.  I moved my email off my work account and only my personal mail so i know the messages get through. 
Sorry if you received it twice.  Below is my answer to your question and also additional questions for you. 
Thanks for all your help
John-Original Message-From: John HideySent: Thursday, July 27, 2006 11:06 AMTo: '
[EMAIL PROTECTED] '; wix-users@lists.sourceforge.net
; wix-devs@lists.sourceforge.netSubject: RE: [WiX-devs] GAC and call Custom Action 
My custom action in install the Microsoft Enterprise Library into the gac and register all their Instrumentation classes.  This is Microsoft code and they have the installers in the code so I assumed it would be easiest to just call them. 
Let me ask you this.  I am not a c++ developer by any means.  Can you point me to or give me some guidance on how to do this the right way.  I would love to get this done right one time instead of wrong several times. 
ThanksJohn-Original Message-From: Rob Mensching [mailto:
[EMAIL PROTECTED]]Sent: Thursday, July 27, 2006 11:01 AMTo: John Hidey; 
wix-users@lists.sourceforge.net; wix-devs@lists.sourceforge.net
Subject: RE: [WiX-devs] GAC and call Custom Action Yeah, that scenario just doesn't work right.  The problem is that Assemblies going to the GAC aren't committed until the very end of the install.  That means your InstallUtil calls (assuming InstallUtil can reach into the GAC, I've never tried) have to come after InstallFinalize.  That means that your InstallUtil CustomActions can't be part of the installation transaction so when they fail, the install succeeds but is broken. 
This is just one more example of why using InstallUtil is a "bad thing".My suggestion (which is rarely popular ) is to just do the right thing the first time and save yourself the time you'll spend later trying to manage the InstallUtil hack. 
What is the CustomAction you're trying to do anyway?From: 
[EMAIL PROTECTED][mailto:
 [EMAIL PROTECTED]] On Behalf Of John HideySent: Wednesday, July 26, 2006 1:36 PMTo: 
wix-users@lists.sourceforge.net; wix-devs@lists.sourceforge.net
Subject: [WiX-devs] GAC and call Custom ActionHere is my problem everyone. I have a msi that installs several files into the gac. I DO NOT create a shadow copy of these files on the file system until my property called CREATESHADOW has a value of 1. These assemblies have installers in them that I need to call. (I know managed installers in not recommended but have to get done quickly) When I put my custom action in and call InstallUtilLib the file isn't actually on the file system. Is there a way to have InstallUtilLib refer the file via its temporary location that is used by the installer? Thoughts? 
Thanks everyone in advance.John
-- John Hidey[EMAIL PROTECTED]
 -- John Hidey[EMAIL PROTECTED] 
-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Fwd: FW: [WiX-devs] GAC and call Custom Action

2006-07-28 Thread John Hidey (The C# Junkie)
Rob,We're having issues with our mail server at work here so I don't know if you received this or not so I'm going to send to you again.  I moved my email off my work account and only my personal mail so i know the messages get through.
Sorry if you received it twice.  Below is my answer to your question and also additional questions for you. 
Thanks for all your helpJohn-Original Message-From: John HideySent: Thursday, July 27, 2006 11:06 AMTo: '[EMAIL PROTECTED]
'; wix-users@lists.sourceforge.net; wix-devs@lists.sourceforge.netSubject: RE: [WiX-devs] GAC and call Custom Action
My custom action in install the Microsoft Enterprise Library into the gac and register all their Instrumentation classes.  This is Microsoft code and they have the installers in the code so I assumed it would be easiest to just call them.
Let me ask you this.  I am not a c++ developer by any means.  Can you point me to or give me some guidance on how to do this the right way.  I would love to get this done right one time instead of wrong several times.
ThanksJohn-Original Message-From: Rob Mensching [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 27, 2006 11:01 AMTo: John Hidey; 
wix-users@lists.sourceforge.net; wix-devs@lists.sourceforge.netSubject: RE: [WiX-devs] GAC and call Custom Action
Yeah, that scenario just doesn't work right.  The problem is that Assemblies going to the GAC aren't committed until the very end of the install.  That means your InstallUtil calls (assuming InstallUtil can reach into the GAC, I've never tried) have to come after InstallFinalize.  That means that your InstallUtil CustomActions can't be part of the installation transaction so when they fail, the install succeeds but is broken.
This is just one more example of why using InstallUtil is a "bad thing".My suggestion (which is rarely popular ) is to just do the right thing the first time and save yourself the time you'll spend later trying to manage the InstallUtil hack.
What is the CustomAction you're trying to do anyway?From: [EMAIL PROTECTED][mailto:
[EMAIL PROTECTED]] On Behalf Of John HideySent: Wednesday, July 26, 2006 1:36 PMTo: wix-users@lists.sourceforge.net; 
wix-devs@lists.sourceforge.netSubject: [WiX-devs] GAC and call Custom ActionHere is my problem everyone. I have a msi that installs several files into the gac. I DO NOT create a shadow copy of these files on the file system until my property called CREATESHADOW has a value of 1. These assemblies have installers in them that I need to call. (I know managed installers in not recommended but have to get done quickly) When I put my custom action in and call InstallUtilLib the file isn't actually on the file system. Is there a way to have InstallUtilLib refer the file via its temporary location that is used by the installer? Thoughts?
Thanks everyone in advance.John-- John Hidey[EMAIL PROTECTED] 
-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] change email for wix-users/wix-devs

2006-07-27 Thread John Hidey








How do I go about changing the email that is allowed to post
messages to wix-users and wix-devs mailing lists.  I have this setup presently
with my work email and would like to move it to my personal account.  

 

John

 






-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Should WiX add support forinstallingWindowsinstrumentation features?

2006-07-27 Thread John Hidey
Sorry about the double post everyone.  We have been having problems with
our mail server so I sent it three time not knowing.  You may see
another one come across.  Sorry for flooding the group that was not my
intension.

John

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joe Kaplan
Sent: Wednesday, July 26, 2006 3:56 PM
To: wix-users@lists.sourceforge.net
Cc: 'John Vottero'
Subject: Re: [WiX-users] Should WiX add support
forinstallingWindowsinstrumentation features?

That's good to know.  It sounds like this would be easy to do in WiX
with explicit Registry tags and would be not that much work to add
explicit schema support for WiX as well (like event log stuff).  No CA
needed or even any custom tables.

I suggest someone (John? :)) adds a feature request for this to go along
with my feature requests for event log, perf counter and WMI support.

Joe K.
- Original Message -
From: "John Vottero" <[EMAIL PROTECTED]>
To: "Bob Arnson" <[EMAIL PROTECTED]>
Cc: ; <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2006 7:32 AM
Subject: Re: [WiX-users] Should WiX add support for
installingWindowsinstrumentation features?


>
> I posted this exchange and a number of questions on the PowerShell 
> newsgroup and here's the response:
>
> Posting on behalf of the feature developer.
>
>> Does the PowerShell team feel that PSSnapin is suitable for
> professional
>> Cmdlet installers? Or, is it intended to be a tool for developers to
> use
>> to quickly get a Cmdlet working?
>
> This is mostly tool for developer to get the cmdlet working. Release 
> setup should set the registry keys explicitly.
>
>>
>> Does the PSSnapin do anything other than creating registry entries?
>
> No.
>
>>
>> Will the inner workings of PSSnapin be documented?
>
> It just sets series of registry keys. We need to document the keys 
> which
>
> vendors need to set for registering snapins. I will open a bug for
this.
>
>>
>> Will the PowerShell team create a WiX extension?
>
> There is no plan for V1.
>
>



-
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=DEVDE
V
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] GAC and call Custom Action

2006-07-27 Thread John Hidey








Here is my problem everyone.  I have a msi that installs several
files into the gac.  I DO NOT create a shadow copy of these files on the file
system until my property called CREATESHADOW has a value of 1.  These
assemblies have installers in them that I need to call.  (I know managed
installers in not recommended but have to get done quickly)  When I put my
custom action in and call InstallUtilLib the file isn’t actually on the
file system.  Is there a way to have InstallUtilLib refer the file via its
temporary location that is used by the installer?  Thoughts?

 

Thanks everyone in advance.

 

John

 

 






-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] GAC and call Custom Action

2006-07-26 Thread John Hidey








Here is my problem everyone.  I have a msi that
installs several files into the gac.  I DO NOT create a shadow copy of
these files on the file system until my property called CREATESHADOW has a
value of 1.  These assemblies have installers in them that I need to
call.  (I know managed installers in not recommended but have to get done
quickly)  When I put my custom action in and call InstallUtilLib the file
isn’t actually on the file system.  Is there a way to have InstallUtilLib
refer the file via its temporary location that is used by the installer? 
Thoughts?

 

Thanks everyone in advance.

 

John

 

 






-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WebSites in ComboBox dynamically

2006-07-12 Thread John Hidey
Thanks much.  I'll give it a try Alexei

John


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexei
Boukirev
Sent: Wednesday, July 12, 2006 10:13 AM
To: WiX-users
Subject: Re: [WiX-users] WebSites in ComboBox dynamically

Hello John,

Here's the code I use (assuming that you used the script that populates
site number into combobox value field).  I actually install up to 2
virtual directories on one or two sites per setup (CLIENT and ADMIN
below).  The series of properties is set as a result of these actions.
See below on how I use properties.

ia - internet address, ip - internet port, hn - host name.

-
Option Explicit

Const ERROR_SUCCESS = 0
Const ERROR_INSTALL_FAILURE = 1603
Const ERROR_FUNCTION_FAILED = 1627

Function ParseClient()
  ParseClient = ParseSite("CLIENT")
End Function

Function ParseAdmin()
  ParseAdmin = ParseSite("ADMIN")
End Function

Function ParseSite(prefix)
  Dim objIIS
  Dim sSite, sBinding, sURL
  Dim aBinding
  Dim one, two, ia, ip, hn

  sSite = Session.Property(prefix & "SITE")
  Set objIIS = GetObject("IIS://localhost/W3SVC/" & sSite)
  If Err.Number <> 0 Then
ParseSite = ERROR_INSTALL_FAILURE
Exit Function
  End If
  aBinding = objIIS.ServerBindings
  If IsArray(aBinding) Then
sBinding = aBinding(0)
  Else
sBinding = aBinding
  End If
  Set objIIS = Nothing

  one = Instr(sBinding, ":")
  two = Instr((one + 1), sBinding, ":")

  ia = Mid(sBinding, 1, (one - 1))
  ip = Mid(sBinding, (one + 1), ((two - one) - 1))
  hn = Mid(sBinding, (two + 1))

  If ia = "" Then
 ia = "*"
  End If

  Session.Property(prefix & "IA") = ia
  Session.Property(prefix & "IP") = ip
  Session.Property(prefix & "HN") = hn

  ParseSite = ERROR_SUCCESS
End Function


Using properties:


  
  

  


and

 




Thus the proper port and IP are substituted based on selection.
I schedule the custom action(s) as immediate on Next push button click
in UI.

You can also try using ("http://"; & hn) to set some property and then
use it in Header attribute of WebAddress to differentiate site 2 in your
example.

Hope this helps.

Wednesday, July 12, 2006, 8:00:10 AM, you wrote:

> -All-

>  

> First I would like to thank everyone for the great help and support I 
> got through this mailing list.  The help was great and I got the combo

> box populating with the sites.  Now I have a different problem related

> to websites.

>  

> Let's say I have three sites on my box.  The default site running on 
> port 80 with no host header,  site 1 running on port 81 with no host 
> header and finally site 2 running on port 80 with a host header value 
> of SITE2.

>  

> When I select a site from my combo box and set the values Website 
> element it appears that it is always installing under the default
site.
> How do I handle this properly.  More importantly, how do I handle this

> in  a generic way so that no knowledge of the destination machine is 
> required to do the install.



--
Best regards,
 Alexei Boukirev





-
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


Re: [WiX-users] Creating a virtual directory under a web site (other than the default) (by Mark Jones)

2006-07-07 Thread John Hidey
-All-

I'm kinda new to WiX and can't seem to figure out how the script
GetSites is actually being called.  Do I need to create a custom action
for the script and set it to execute immediately.  Any help or more
complete sample would be great. 

Thanks for everyone's help in advance.  I really appreciate it.

John

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Diego
Cadenas
Sent: Friday, July 01, 2005 5:35 PM
To: Valery Drotenko; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Re: Creating a virtual directory under a web
site (other than the default) (by Mark Jones)

Hi Valery,

I'm having the same problem as Mark Jones.  I'm trying to create a
virtual directory on a windows 2003 server.  I want to be able to create
this virtual directory in any of the existing websites and if necessary
create my own website.  I am using a script posted in this mailing list.
It populates my combo box with the existing websites but for some reason
when I select them, the property is not set for that selection and it
installs the virtual directory in the default website. Hopefully this
makes sense:


This is the script


'===

' This Script Populates a ComboBox in the Windows Installer with the '
available IIS Websites in the local computer
'===

 Const ERROR_SUCCESS = 0
 Const ERROR_INSTALL_FAILURE = 1603
 Const msiViewModifyInsertTemporary = 7

 Function GetSites()
 Dim objIIS, oView, oSite, oServer, oReccombo
 Dim r

 On Error Resume Next
 Set objIIS = GetObject("IIS://localhost/W3SVC")

 If Err.Number <> 0 Then
 MsgBox "Unable to open IIS W3SVC Root object - " & _
 "please ensure that IIS is running" & vbCrLf & _
 "- Error Details: " & Err.Description & " [Number:" & _
 Hex(Err.Number) & "]", vbCritical, "Error"
 GetSites = ERROR_INSTALL_FAILURE
 Exit Function
 Else
 'open and execute a view to the ListBox table
 Set oView = Session.Database.OpenView("SELECT * FROM
`ComboBox`")
 Set oPropertyView = Session.Database.OpenView("SELECT * FROM
`Property` WHERE [Property] ='TARGETWEBCOMBO'")
 oView.Execute
 oPropertyView.Execute
 oPropertyView.Fetch
 r = 0

 For Each oSite in objIIS
 If oSite.Class = "IIsWebServer" Then
r = r + 1
Set oServer=GetObject(oSite.ADsPath)
'if r = 1 Then

Session.Property("TARGETWEBCOMBO")= oSite.Name

Session.Property("SERVERCOMMENT") = oServer.Get("ServerComment")
'End if
'
'   ComboBox record fields are Property, Order,
Value, Text
'
 Set oReccombo = Session.Installer.CreateRecord(4)
 oReccombo.StringData(1)  = "TARGETWEBCOMBO"
 oReccombo.IntegerData(2) = r
 oReccombo.StringData(3)  = oSite.Name
' oReccombo.StringData(3)  =
oServer.Get("ServerComment")
 oReccombo.StringData(4)  = oServer.Get("ServerComment")
 oView.Modify msiViewModifyInsertTemporary, oReccombo

 End If
 Next

 oView.Close
 'return success to MSI
 GetSites = ERROR_SUCCESS
 End If
 'clean up
 Set objIIS = Nothing
 Set oView = Nothing
 End Function



This is my code in my main.wxs file:

















This is the code in my UI.wxs fragment:


ProductWeb


 






 ... 

  Website to install
to:



  


  

   AND NOT VersionNT = 502 




   AND VersionNT = 502 


  Virtual
directory:

 


  
  
  

  


I am sorry this message is so long, hopefully someone can help me out
Thanks

Diego Cadenas































-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Valery
Drotenko
Sent: Tuesday, June 21, 2005 6:58 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Re: Creating a virtual directory under a web site
(other than the default) (by Mark Jones)


Hi!

It seems, WebSites are mapped to by their wwwroot paths.
Try the following (make sure to adapt this to your namings):

QUOTE




UNQUOTE

Pay attention to the presence of "Directory" attribute - this does the
linkage.

Good luck!

Valery Drotenko

mailto:[EMAIL PROTECTED]



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straig

Re: [WiX-users] Customizing dialog sets

2006-06-22 Thread John Hidey








After doing this, does anything need to be recompiled?

 





From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson
Sent: Thursday, June 22, 2006 12:13 PM
To: Neil Sleightholm
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Customizing dialog sets





 

Neil Sleightholm wrote: 



In
the online help there is this paragraph: "You
can most easily add and remove dialogs from the stock dialog sets by copying
one of the existing sets and modifying it. For an example, see the project in
the doc/examples/wixui/custom directory."





 





This
example doesn't seem to exist, is it missing from the downloads? Is the example
available somewhere?



It's currently broken, which is why it hasn't been added.
It's on my bug list but hasn't come up the priority list yet.





All
I want to do is remove the License dialog as it is not appropriate for internal
releases. Is there an easy way to remove it?



What the example shows is copying one of the "set"
fragments (e.g., WixUI_InstallDir.wxs) and modifying the properties and
adding/removing DialogRefs to point to different dialogs. 



-- sig://boBhttp://bobs.org




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