|
CopyFile Method |
Top Previous Next |
|
Copies an existing file from one location to another. [VBScript] Installer.CopyFile SourcePath, DestinationPath
[JScript] Installer.CopyFile(SourcePath, DestinationPath); Parameters SourcePath The path to file being copied. DestinationPath The new path value. Remarks This method copies the file specified by the SourcePath parameter into location specified by the DestinationPath parameter. Installer variables are supported. To emit the value of installer variable MyVar, use the following form: ${MyVar}. Uninstall support This action supports automatic uninstallation. Example (VBScript) Installer.CopyFile "c:\autoexec.bat", "${ProductPath}\AutoExecCopy.bat" Example (JScript) Installer.CopyFile("c:\\autoexec.bat", "${ProductPath}\\AutoExecCopy.bat"); |