Jump to content

Problem with FileInstall()


TiMa
 Share

Recommended Posts

Don't know if anything I did wrong with FileInstall() function ???

I Included a file that from Windows 2000 resource kit, netdom.exe in my script using this expression

FileInstall("netdom.exe",@ScriptDir,1)

As my netdom.exe placed with the script file when compile, I copy the execute on C: then it can extract the netdom.exe for me, but if I place it in some directory say C:\Download, it can't extract the netdom.exe for me, I tried the syntax like this.

$result=FileInstall("netdom.exe",@ScriptDir,1)

MsgBox(0,$result,$result)

And it print me a success return but with no file exist, how come ???

Link to comment
Share on other sites

Fileinstall act as a filecopy when not compiled.

so the forcing to overwrite just destroy the file. It was a bug in filecopy I assume there is the same error in fileinstall. no ptroblem if you compile your script the file will be placed in the @scriptdir. B)

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...