MrChris Posted March 30, 2008 Posted March 30, 2008 (edited) I have a script that has a few switches that can be passed via command line interface at runtime. One of those switches is /Install to install the script and register as a service. Inside the /Install function I have a FileInstall() function that is installing my main script. If that makes sense. Im trying to compile my script as file.exe When I compile the script it tells me on the same line as the FileInstall() that the file.exe does not exsist. Which is true becuase it wont exsist until the script is compiled. How can I get around this without having to have the /install function be in a different compiled script all by itsself? Hope this makes sense. Thanks, MrChris Edited March 30, 2008 by MrChris
martin Posted March 30, 2008 Posted March 30, 2008 I have a script that has a few switches that can be passed via command line interface at runtime. One of those switches is /Install to install the script and register as a service. Inside the /Install function I have a FileInstall() function that is installing my main script. If that makes sense. Im trying to compile my script as file.exeWhen I compile the script it tells me on the same line as the FileInstall() that the file.exe does not exsist. Which is true becuase it wont exsist until the script is compiled.How can I get around this without having to have the /install function be in a different compiled script all by itsself?Hope this makes sense.Thanks,MrChrisNot what FileInstall is meant to be used for. Instead do something like thisFileCopy(@ScriptFullPath,"$PathToWhereYouWantIt & "\" & @ScriptName") Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
MrChris Posted March 30, 2008 Author Posted March 30, 2008 Not what FileInstall is meant to be used for. Instead do something like thisFileCopy(@ScriptFullPath,"$PathToWhereYouWantIt & "\" & @ScriptName")DOH! I cant believe I missed that one. (Actually I can) Thats what I get for being in a rush. And not surching as much as I could have.ThanksMrChris
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