Hello all,
I'm trying to do two things with a couple of custom actions created using the DTF. Firstly, I'm populating a listbox with SQL Servers on the network. This seems to work fine. However, I'm now trying to populate the ComboBox table with a list of IIS sites. This part is failing. My csharp code looks like this: [CustomAction] public static ActionResult GetWebSites(Session session) { session.Log("Begin GetWebSites"); // clear any existing rows session.Database.Execute("DELETE FROM `ComboBox` WHERE `Property` = 'IIS_WEBSITE_LIST'"); // insert rows into the MSI database @ runtime View vw = session.Database.OpenView("SELECT * FROM `ComboBox` WHERE `Property` = 'IIS_WEBSITE_LIST'"); vw.Execute(); for (int i = 0; i < 5; i++) { Record rc = new Record(4); rc.SetString(1, "IIS_WEBSITE_LIST"); rc.SetInteger(2, i); rc.SetString(3, "test" + i.ToString()); rc.SetString(4, rc.GetString(3)); vw.Modify(ViewModifyMode.InsertTemporary, rc); rc.Dispose(); } //for (int i = 0; i < sites.Count; i++) //{ // Record rc = new Record(4); // rc[1] = "IIS_WEBSITE_LIST"; // rc[2] = i; // rc[3] = sites[i]; // rc[4] = rc[3]; // vw.InsertTemporary(rc); // rc.Dispose(); //} vw.Close(); vw.Dispose(); session.Log("End GetWebSites"); return ActionResult.Success; } This code doesn't really get the list of IIS sites on the local machine, I've removed that for brevity. The MSI log that shows the failure: MSI (c) (E0:BC) [11:33:47:191]: Doing action: GetWebSites Action 11:33:47: GetWebSites. Action start 11:33:47: GetWebSites. MSI (c) (E0:78) [11:33:47:201]: Invoking remote custom action. DLL: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\MSI13.tmp, Entrypoint: GetWebSites MSI (c) (E0!98) [11:33:47:652]: Database string pool is corrupted. MSI (c) (E0!98) [11:33:47:662]: Note: 1: 2259 2: 3: 4: Action ended 11:33:47: GetWebSites. Return value 3. DEBUG: Error 2896: Executing action GetWebSites failed. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2896. The arguments are: GetWebSites, , Just wondering if anyone else has already done this and if I'm trying to recreate the wheel. Any ideas as to why? -bp Brian Pearson <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users