Sign in to follow this  
Followers 0
JerichoJones

FileInstall() does not copy the file

3 posts in this topic

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)

Share this post


Link to post
Share on other sites



Share this post


Link to post
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
Sign in to follow this  
Followers 0