Sign in to follow this  
Followers 0
MrChris

Include Compiling Script using FileInstall?

3 posts in this topic

#1 ·  Posted (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 by MrChris

Share this post


Link to post
Share on other sites



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

Not what FileInstall is meant to be used for. Instead do something like this

FileCopy(@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.

Share this post


Link to post
Share on other sites

Not what FileInstall is meant to be used for. Instead do something like this

FileCopy(@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.

Thanks

MrChris

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