i need strings target column of msi's shortcut table. first value of column, cannot rest. used orca make sure there other values , msi files each have two.
here code it:
def verify(self): self.db = msilib.opendatabase(str(self.msi_file),msilib.msidbopen_transact) self.getcolumnnames() def getcolumnnames(self): view = self.db.openview("select target shortcut ") view.execute(none) print view.getcolumninfo(msilib.msicolinfo_names) record = view.fetch() print record.getfieldcount() self.value = record.getstring(1) print record.getstring(1) what have wrong code?
you need while record not null loop process rows. see following topic more information:
Comments
Post a Comment