VirtFsDelete

Top  Previous  Next

int _stdcall

VirtFsDelete(

   IN  PACKAGE_HANDLE               hPkg,

   IN  LPWSTR                       FileName )

Deletes file from the virtual application package.

Parameters

hPkg [in]

Virtual application package handle, returned by PackageOpen.

FileName [in]

Name of the file to be deleted from package, in a virtual format (i.e. "%Program Files%\MyApp\File.ext").

Return value

Returns APIRET_SUCCESS if successful, or APIRET_NOT_FOUND if the file was not found.

Remarks

The ZIP package containing virtual files will be reconstructed when PackageSave is called.