I have figured out the method to seal it: At first write ManagementPack object to sealed mp file by legacy way, then re-load the sealed mp file to ManagementPack object, finally merge the object with resource streams into mp bundle.
Tested and worked as expected.
How to seal a manage pack bundle file (.mpb) ?
We are using SCOM to monitor our products, and used SCOM SDK binaries to build manage packs. Recently we upgraded the MP Schema version to 2.0, but the reports didn't work, I have to use a manage pack bundle (.mpb) file to include the report resources. Question is: how to seal a manage pack bundle file (.mpb) with our copyright and key?
When generating mp file using ManagementPackAssemblyWriter, I can set copyright and key by ManagementPackAssemblyWriterSettings class and seal mp. But when generating mpb file using ManagementPackBundleWriter, I can't figure out method to seal mpb. I tried to get solution from internet, but didn't help. I also didn't find any tool to do it.
-
feiyu GUO 96 Reputation points
2020-12-02T12:11:12.88+00:00
1 additional answer
Sort by: Most helpful
-
CyrAz 5,181 Reputation points
2020-12-02T14:01:44.637+00:00 You can also use Silect's MPB Util : https://www.silect.com/mpbutil-a-free-utility-for-working-with-mpb-files/
But if you're doing any kind of advanced MP authoring, you should rather consider using Visual Studio with VSAE which can also natively create MPBs.
See here : https://michelkamp.wordpress.com/2012/11/06/vsae-adding-binary-resource-features/
Or here : https://blog.tyang.org/2013/09/03/adding-images-opsmgr-2012-management-pack-vsae/