This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Multi column listview control in a Basic MSI project
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2008
02:58 PM
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:
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 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?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2008
06:04 PM
Alas, no: according to the MSI topic "ListView Control", it's a single column of data with an icon next to each value.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 15, 2009
11:18 AM
Then how is it that the SdDiskSpace2 (Requirements) dialog has a ListView control with multiple columns/headers?
I am desperately looking for an example of how to do this with InstallScriptMSI project
I am desperately looking for an example of how to do this with InstallScriptMSI project
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 15, 2009
11:37 AM
The original question and restriction were about Basic MSI; with InstallScript or InstallScript MSI, you have a bit more flexibility.
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...
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...
