If you are a developer trying to create a PKG from files you extracted:
or files extracted, use one of these methods to create the installer: Method A: Using Terminal ( productbuild If you have a standalone rar to pkg
Let’s say you have Software.rar and you believe it contains a PKG installer inside. If you are a developer trying to create