Sdílet prostřednictvím


How to Run Site Packager from the Command Line

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

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 that include packaging, unpacking, and deleting a site or resource. Additionally, you can establish unique resource references for custom installation requirements by using Microsoft Visual Basic scripts.

The following code example shows you how to package a site named YourSite by using the command line:

pup /p  /s:BlankSite /f:C:\Program Files\Microsoft Commerce Server 2007\PuP Packages\YourSite.pup
 /i:C:\Program Files\Microsoft Commerce Server 2007\PuP Packages \YourSite.ini

The following code example shows you how to unpack a site named CSharp by using the command line:

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

Note the following before you run Site Packager from the command line:

  • 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.

  • When it is run from the command line, Site Packager displays the Profiles System page if you do not specify the schema and data files for each of the profile data stores in the Bizdata.ini file. The Bizdata.ini file must be present in the current directory of the packaging process or in the root directory.

The following table lists the command-line options that 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 of the package file.

/f:<full path of package>

/i:

X

X

Specifies the .ini file to use during silent operation.

/i:<full path name>

/p

X

 

Packages a site or resource.

/u

 

X

Unpacks a site or resource.

See Also

Other Resources

Managing Site Packages

How to Customize the Site Packager .ini Files

How to Use Scripts with Site Packager