Udostępnij za pośrednictwem


ImageStoreUtility.ExpandSfpkg(String, String) Method

Definition

Expands the specified sfpkg file in the application package folder.

public static void ExpandSfpkg (string sfpkgFilePath, string appPackageRootDirectory);
static member ExpandSfpkg : string * string -> unit
Public Shared Sub ExpandSfpkg (sfpkgFilePath As String, appPackageRootDirectory As String)

Parameters

sfpkgFilePath
String

The path to the sfpkg file, which must exist and have '.sfpkg' extension.

appPackageRootDirectory
String

The directory where the package is expanded. If it exists, it will be first deleted to ensure the resulting application package is valid.

Remarks

If the destination directory doesn't exist, it is created.

If the destination folder contains the sfpkg to be extracted, the package is extracted in place and, when extraction is complete, the sfpkg is deleted, to ensure the folder is a valid application package. Otherwise, the sfpkg is not deleted.

If the destination folder exists, it must not contain other files or folders.

The command does not perform any validation on the sfpkg or the expanded package.

If the sfpkg was created using GenerateSfpkg(String, String, Boolean, String), the sfpkgFilePath is the returned value.

Applies to