Sign in to follow this  
Followers 0
sumkid

Fileinstall error

4 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

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