sumkid Posted September 18, 2008 Share Posted September 18, 2008 (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 September 18, 2008 by sumkid Link to comment Share on other sites More sharing options...
Marlo Posted September 18, 2008 Share Posted September 18, 2008 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. Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 18, 2008 Share Posted September 18, 2008 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 Link to comment Share on other sites More sharing options...
Marlo Posted September 18, 2008 Share Posted September 18, 2008 I did mention that you wernt allowed variabled and such only in the first param Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now