Re: [WiX-users] Populating a ListBox At Runtime - VB.NET Custom Action Project...

2011-08-10 Thread Matt Walker
New test code. Dim iisRoot As DirectoryEntry = New DirectoryEntry("IIS://localhost/W3SVC") For Each webSite As DirectoryEntry In iisRoot.Children MsgBox("HI") Next Produces the following exception with detail. System.Runtime.InteropServices.COMException was unhandled by user c

Re: [WiX-users] Populating a ListBox At Runtime - VB.NET Custom Action

2011-08-09 Thread Roy Chastain
Matt: I just posted some code to do what you currently want to do. It also has code to do what you are wanting to do next. :-) I have just posted the custom action code (C# - not VB sorry). I also have dialogs and a complete WiX based UI to go with it, should you want to use it. This code chec

Re: [WiX-users] Populating a ListBox At Runtime - VB.NET Custom Action Project...

2011-08-09 Thread Matt Walker
Trying to code the site name grab now, but whatever I try I receive an "Unknown error (0x80005000). Here's the most recent code I've tried.. Try Dim deIIS As New DirectoryEntry("IIS://localhost/W3SVC") deIIS = New DirectoryEntry("IIS://localhost/W3SVC") For Each site As Direc

Re: [WiX-users] Populating a ListBox At Runtime - VB.NET Custom Action Project...

2011-08-09 Thread Matt Walker
One more thing I noticed, session.log statements are not reflected when I generate a log from the command line. Where should I be seeing these log status messages? From: Matt Walker [mailto:mawa...@rcn.com] Sent: Tuesday, August 09, 2011 11:44 AM To: 'wix-users@lists.sourceforge.net' Subject:

Re: [WiX-users] Populating a ListBox At Runtime - VB.NET Custom Action Project...

2011-08-09 Thread Matt Walker
I think I may have found some of my problem. I didn't have _ above the function I send earlier. Also, in my query I had 'ListBox' instead of `ListBox`. So, after making the above changes I can see my array element values in the list box. Now it's off to cycling through the web sites t

Re: [WiX-users] Populating a ListBox At Runtime - VB.NET Custom Action Project...

2011-08-09 Thread Matt Walker
Thanks for the replies so far as they've been helpful (I think). Here's my VB.Net Code, but its blowing up with a 1723 Error. The action is schedule as Immediate Execution. Public Shared Function GetSites(ByVal session As Session) As ActionResult Dim recListBox As Record

Re: [WiX-users] Populating a ListBox At Runtime - VB.NET Custom Action Project...

2011-08-08 Thread John Robbins
I showed how to fill in a WiX UI combo box with the websites in a C# custom action. Feel free to steal my code. http://www.wintellect.com/CS/blogs/jrobbins/archive/2011/02/23/web-application-installer-in-wix.aspx John Wintellect http://www.wintellect.com +1-877-968-5528 -Original Message

Re: [WiX-users] Populating a ListBox At Runtime - VB.NET Custom Action Project...

2011-08-08 Thread Castro, Edwin G. (Hillsboro)
This blog post has a C# example: http://blog.torresdal.net/2008/10/24/WiXAndDTFUsingACustomActionToListAvailableWebSitesOnIIS.aspx Here are the relevant pieces: The ListBox table has these four columns: * Property * Order * Value * Text private static void StoreWebSiteDataInListBoxTable