
corey.sellers1.552491659210798E12 asked a question.
Multi column listview control in a Basic MSI project
I am trying to implement a multi column listview control in a Basic MSI project, but there doesn't seem to be any documentation for doing so.
I am able to add an entry to the listview control much like a listbox:
sQuery = "SELECT * FROM ListView WHERE Property='MYLIST'";
nReturn = MsiDatabaseOpenView(hDB, sQuery, hView);
hRec = MsiCreateRecord(5);
MsiRecordSetString(hRec, 1, 'MYLIST');
MsiRecordSetInteger(hRec, 2, 1);
MsiRecordSetString(hRec, 3, "Item 1");
MsiRecordSetString(hRec, 4, "Item 1");
MsiRecordSetString(hRec, 5, "");
MsiViewModify(hView, MSIMODIFY_INSERT_TEMPORARY, hRec);
MsiCloseHandle(hRec);
MsiViewClose(hView);
However, I do not see a way to do any of the following:
Add multiple column entries
Set the column widths
Add column headers
Display an icon in a column
Does anyone know if any of these things are possible?
I am desperately looking for an example of how to do this with InstallScriptMSI project
I haven't tried it, but see for example [thread=127075]this thread[/thread] for what claims to be InstallScript wrappers around the Windows API functions for working with a list-view...