I need to update the attributes columns in the MSI file. Unfortunately, I can not find a document (special for C ++).
Here is a code snippet that I am trying to do:
DatabasePtr db = / * opening db succeeds * / ViewPtr view = db- & gt; OpenView (_bstr_t ("selection property from component")); View-> Executed (zero); RecordPtr record = view-> get receive (); Record-> Puttenstadt Data (2, record-> GateIntegradata (1) | 2048); // I do not properly understand the next 2 lines // should I actually execute before modifying? Record & gt; Executed (record); Record-> Modify (msiViewModifyUpdate, records); // a _com_error throws - as is the Record-> Modify (...) A _com_error is being reported: IDispatch error # 1000? what does this mean. Where can I see these error codes? These are not HRESULTs ...
But more important questions are how do I update the records properly? How can I be repeated through all the selected records? Comparing and comparing the record with the new favicon with the result of the tap in the unique loop.
Thanks for the help, owenus
Using C ++ for this It's a little overwork to read on DTF:
Comments
Post a Comment