Nov 01, 2013
11:19 AM
Unless I'm missing something, Managed actions don't fit well with Installshield.:mad: The suggested work-around, changing a property in the managed custom action in order for the change in value to be logged, does not work for me..... What am I doing wrong?????
... View more
Nov 01, 2013
07:44 AM
I guess this is not possible. See http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=http--communityflexerasoftwarecom-archive-indexphpt-192340html&sliceId=&docTypeID=DT_MACROVISIONCOMMUNITY_1_1&dialogID=160836749&stateId=0%200%20160832727 Odd how the methods are exposed, but unusable.... :confused:
... View more
Oct 31, 2013
09:35 AM
Hello, I'm trying to add logging to my managed (C#) custom actions. The log reports that the custom action is called. But nothing is logged from inside the managed code. I created a small function to illustrate... public void TestLogging(int handle, string msg) { using (Msi.Install install = Msi.CustomActionHandle(handle)) { Msi.Record record = new Msi.Record(1); //record.SetString(0, msg); record.SetString(0, "Hello World...!");; install.ProcessMessage(Msi.InstallMessage.Info, record); } } A snippet from the log is shown below. MSI (c) (98:B0) [14:26:38:656]: Doing action: TestLogging Action 14:26:38: TestLogging. Action start 14:26:38: TestLogging. MSI (c) (98:1C) [14:26:38:665]: Invoking remote custom action. DLL: C:\Users\JASON~1.HAU\AppData\Local\Temp\MSIC2E4.tmp, Entrypoint: m2 Action ended 14:26:39: TestLogging. Return value 1. Any ideas why my message does not appear?
... View more
Labels
- Labels:
-
InstallShield 2013
Oct 28, 2013
11:44 AM
Hello, I'm trying to find out how I can populate a ListBox using the results from a managed custom action (C#). I have found OpenView & OpenExecute, but I'm having problems with the SQL syntax. Below is a brief code snippet.... string[] aStr = svrs.Split(','); string sql = "DELETE FROM ListBox WHERE Property = 'GENERIC_LIST_ITEM'"; install.ActiveDatabase.OpenExecute(sql); int idx = 0; foreach (string s in aStr) { idx++; sql = "INSERT ListBox (Property, Order, Value, Text) VALUES ('GENERIC_LIST_ITEM', idx, s, s)"; install.ActiveDatabase.OpenExecute(sql); } Looking at the MSI log I think the custom action aborts part way through, but I only know this as earlier logs (before using OpenExecute) have information in them that is now missing.
... View more
Labels
- Labels:
-
InstallShield 2013
Latest posts by fishyj
Subject | Views | Posted |
---|---|---|
1076 | Nov 01, 2013 11:19 AM | |
1076 | Nov 01, 2013 07:44 AM | |
1045 | Nov 01, 2013 07:41 AM | |
3590 | Oct 31, 2013 09:35 AM | |
1045 | Oct 31, 2013 06:24 AM | |
2557 | Oct 28, 2013 11:44 AM |
Activity Feed
- Posted Unless I'm missing something, Managed actions don't fit well with Installshield. on InstallShield Forum. Nov 01, 2013 11:19 AM
- Posted I guess this is not possible. on InstallShield Forum. Nov 01, 2013 07:44 AM
- Posted Anyone know the answer to this? :confused: on InstallShield Forum. Nov 01, 2013 07:41 AM
- Posted Logging from inside Managed Custom Actions. on InstallShield Forum. Oct 31, 2013 09:35 AM
- Posted :nudge: Any one got any suggestions? on InstallShield Forum. Oct 31, 2013 06:24 AM
- Posted Msi.Install.ActiveDatabase.OpenExecute(sql); on InstallShield Forum. Oct 28, 2013 11:44 AM
- Tagged Msi.Install.ActiveDatabase.OpenExecute(sql); on InstallShield Forum. Oct 28, 2013 11:44 AM
- Tagged Msi.Install.ActiveDatabase.OpenExecute(sql); on InstallShield Forum. Oct 28, 2013 11:44 AM
- Tagged Msi.Install.ActiveDatabase.OpenExecute(sql); on InstallShield Forum. Oct 28, 2013 11:44 AM
- Tagged Msi.Install.ActiveDatabase.OpenExecute(sql); on InstallShield Forum. Oct 28, 2013 11:44 AM
- Tagged Msi.Install.ActiveDatabase.OpenExecute(sql); on InstallShield Forum. Oct 28, 2013 11:44 AM