Running Site Packager from the Command Line

You can run Commerce Server Site Packager from the command line by using the runtime file Pup.exe. Site Packager includes a set of command line options that you use to perform tasks on sites and resources, including packaging, unpacking, and deleting a site or resource. In addition, you can establish unique resource references for custom installation requirements by using Microsoft Visual Basic scripts.

For example, to package a site named BlankSite, you would type the following at the command line:

pup /p  /s:BlankSite /f:C:\Program Files\Microsoft Commerce Server 2002\PuP Packages\XBlank.pup
 /i:C:\Program Files\Microsoft Commerce Server 2002\SDK\Samples\SiteCreate\packBlank.ini

Ee810774.note(en-US,CS.20).gif Note

  • When you type the commands to package a site, you must separate the parameters with a blank space. You must also specify the full path and file name of the response file (in the previous example, the response file is packBlank.ini).
  • When run from the command line, Site Packager will still display the Profiling System dialog box.

The following table lists the command line options you can use with the Pup.exe file.

Option Packaging Unpacking Description
/s: X   Specifies the name of the site to package.

/s:<name of site>

/f: X X Specifies the path to the package file.

/f:<full path to package>

/r X X Displays the Select Resource dialog box.
/i: X X Specifies the .ini file to use during silent operation.

/i:<complete path name>

/p X   Packages a site or resource.
/u   X Unpacks a site or resource.
/a: X X Specifies the name of the application.

/a:<application name>

/w:   X Specifies the name of the Web server.

/w:<Web server name>

Use this option to unpack the local computer as a Web server.

For example, to unpack a site named Retail, you would use the following command:

"C:\Program Files\Microsoft Commerce Server 2002\PuP.exe" /u 
/f:C:\Program Files\Microsoft Commerce Server 2002\PuP Packages\Retail.pup 
/i:C:\Commerce\Retail.ini

See Also

Customizing the Site Packager .ini Files

Copyright © 2005 Microsoft Corporation.
All rights reserved.