I am building an installation package with C-code and a UIR file. That's it.
The first time I attempt to create a new installation package using Build->Build Distribution, the following are displayed in the error dialog:
--------------------------------------------------------------------------------------
Error configuring developer part options.
--------------------------------------------------------------------------------------
Error:
Unexpected internal error.
Unexpected internal error while setting the upgrade code and product version in the installer (_MDFBuildDevPart_SetUpgradeInfo). Go to ni.com/info and enter the Info Code InstallerBuilderSupport to obtain more information about errors generated when building an installer.
--------------------------------------------------------------------------------------
The strange part is that if I do NOTHING ELSE (I'm not kidding, nothing at all), and simply initiate the Build->Build Distribution again, it works just fine. This now happens every time I attempt to build the distribution package.
After extensive experimentation, I discovered that the PREBUILD and POSTBUILD steps in the distribution build were causing this problem. These steps were renaming two files to swap them prior to doing the build, and then swapping the names again after the build. This apparently caused the building setup to lose it's mind.