Jump to content
Sign in to follow this  
TiMa

Problem with FileInstall()

Recommended Posts

TiMa

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

Share this post


Link to post
Share on other sites
jpm

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)

Share this post


Link to post
Share on other sites
TiMa

But the problem I encountered is, I compiled the script, when the @ScriprDir is C: it works, it fail whereever the destination it is, I've already checked the permissions and attribute is valid.B)

Share this post


Link to post
Share on other sites
MHz

Try using a trailing backslash on the destination as the helpfile mentions.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.