ReplaceExternalFile method

Updates an external file.

This method is a replacement for IERUFile::Replace. It has an additional parameter that enables control over whether or not the new version is a major or minor revision.

Syntax


C++
HRESULT ReplaceExternalFile(
   BSTR FilePath,
   BSTR VersionName,
   BSTR VersionComment,
   VARIANT_BOOL
IsMinorVersion
)
Scripting languages
Object.ReplaceExternalFile(
   FilePath as String,
   VersionName as String,
   VersionComment as String,
   IsMinorVersion as Boolean)

Parameters


FilePath

The full path to the new version of the file.

VersionName

The title of the new version.

VersionComment

The description of the new version.

IsMinorVersion

Whether the new version is a major or minor version.

Return value


C++

The return code.

Scripting languages

None.

Home

Applies to

IERUExternalFile