Jump to content

Recommended Posts

Posted (edited)

I am trying to make my own media player. when i try to use fileinstall like this:

FileInstall ( @ScriptFullPath, "C:\Program Files\Sumkid Media Player\Media Player.exe" )

I get this error when i try to compile:

Invalid FileInstall() Function

Any ideas?

Edited by sumkid
Posted

The FileInstall function does not allow Variables, Constants or Macro's in the first parameter. So you have to type out the file location by hand.

This shouldnt be a problem though as the FileInstall function is only executed when the script is compiled.

Close. No variables in the source, and it is only interpreted at compile time.

You can have variables and macros in the destination, and it will be interpreted at run time.

I think you knew that, just wanted to clarify the description since we get so many posts on this.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
×
×
  • Create New...