Jump to content

FileInstall() does not copy the file


Recommended Posts

My script compiles and the file appears to be in there but when I run the script it fails to copy the file. I have tried with and without the trailing backslash. I have also tried specifying the file name. Please tell me I am doing something wrong. Below is the code in question:

If Not FileExists(@TempDir) Then
    If Not FileExists(@WindowsDir & "\Temp") Then
        DirCreate(@WindowsDir & "\Temp")
    EndIf
    $sTargetPath = @WindowsDir & "\Temp\"
Else
    $sTargetPath = @TempDir & "\"
EndIf
$RC = FileInstall("\\Server\share\_ServerTeam Tools\LightSpeed\SecurityAgent.msi", $sTargetPath, 1)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...