Relative Content

Tag Archive for windowsapiwindows-installer

MsiSummaryInfoSetProperty() returns error code 1627 while updating the package code

I am using Windows MSI API to update the Package Code of an MSI package. I can successfully retrieve the package code without issues. However, the MsiSummaryInfoSetProperty() call to set the new package code fails with error code 1627. One issue is that PID_REVNUMBER does not resolve to a known identifier, but PIDSI_REVNUMBER does. Both PID_REVNUMBER and PIDSI_REVNUMBER resolve to the same constant. Other than that, can you spot any issues in the code snippet below?