Application Scripts for Site Packager

Site Packager can also run application-specific scripts. Application-specific scripts are provided with six parameters:

  • Site name in quotation marks (/n:"MySite")
  • Application name in quotation marks (/r:"MyApp")
  • Server number or the instance number of the IIS Web site that the application was installed to (/i:1)
  • Name of the virtual directory that the application was installed to (/v:"MyRoot")
  • File path in quotation marks where the application files were installed (/d: "C:\inetpub\wwwroot")
  • Mode (/s:) — silent mode or normal installation mode

Application scripts are run for each application after the following events occur:

  • The application has been installed and the files copied.
  • The IIS properties have been set for the application.
  • The application information has been written to the Administration database.
  • Site Packager has notified the Data Warehouse that the application exists.

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

  • After you create an application, an unpack.vbs script may exist in the root folder of the application (if you unpack the Blank site, it will not exist). Make sure you delete or secure the file immediately after unpacking. Anonymous users can access the file. Unauthorized use of this script file could lead to denial of service or the breaking of site settings. For information about securing your site, see Securing Your Site.

Copyright © 2005 Microsoft Corporation.
All rights reserved.