Compartir a través de


IPublisher.PublishSignedPackage Method (String, String)

 

Applies To: Windows Server Update Services

Publishes a new Package to the WSUS server using an existing pre-signed cab file.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

void PublishSignedPackage(
    string sourceCabFile,
    string packageDirectoryName
)
void PublishSignedPackage(
    String^ sourceCabFile,
    String^ packageDirectoryName
)
abstract PublishSignedPackage : 
        sourceCabFile:string *
        packageDirectoryName:string -> unit
Sub PublishSignedPackage (
    sourceCabFile As String,
    packageDirectoryName As String
)

Parameters

  • sourceCabFile
    Type: System.String

    Full path and file name of the cab to be published.

  • packageDirectoryName
    Type: System.String

    Optional name to use for the Package directory under the Applications server path. Can be null, in which case the directory name will be the Title_PackageId.

Remarks

PublishSignedPackage() should never be used to publish a new revision of an update that has already been published to change the contents of the binaries of that package from one revision to the next as this is not a supported WSUS scenario. To re-publish an existing package with new binaries, first use the IUpdateServer.DeleteUpdate API to delete the original locally published package and then publish normally.

This operation requires WSUS Administrator privileges.

See Also

IPublisher Interface
Microsoft.UpdateServices.Administration Namespace

Return to top