Share via


Exporting Data to the Package

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

You can develop a custom resource so that it can include arbitrary data, in the form of one or more files, in a site package and have those files unpacked on a different computer. In order for these files to be included in a site package, a custom resource must include a Component Object Model (COM) object that implements the Export method of the IPuP interface. Commerce Server Site Packager calls this method, providing the name of a temporary file or folder where the custom resource must put the file(s) to be packaged. Once the Export method returns, Commerce Server Site Packager will add the file (or files) to the package.

You must set the appropriate s_ProgidSnapIn value in the SystemProps table in the Administration database to the ProgID of the object that implements the IPuP interface. The ProgID is also added to the s_ProgIDSnapIn column of the Resources table when the SiteConfigFreeThreaded object is used to migrate configuration values. When the Commerce Server Site Packager encounters this ProgID while packaging the site, it will instantiate the corresponding object and call the Export method of its IPuP interface.

For more information about the Export method, see IPuP::Export.

See Also

Other Resources

Importing Data from the Package

Packaging Other Data