Sign in to follow this  
Followers 0
vrocco

A script to make and compile another script

5 posts in this topic

I don't know if this can be done, but maybe someone can help. I want to make a script that takes certain inputs from a user and then uses those inputs to make and compile another script to do something.

Confused? For example......

I only want a user to be able to install a program on a certain day. I can make a script that checks the date on the computer (set by central server and not changeable by the user) and if it's not the proper day, it just exits. However, I have some colleagues who aren't as scripting "saavy" (not that I'm an expert). I want to make them a script that will allow them to input the date (in this example) and the program to run and it will write those variables into an Autoit script and compile it so they can push it out to their users.

Clear as mud now?

Thanks for the help.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Yes, it can be done, BUT ....... prereq is Autoit installed on those colleagues computers. :P

Wrong. You can call the compiler from the command line. Look in C:\Program Files\AutoIt3\Aut2Exe

C:\Program Files\AutoIt3\aut2exe\aut2exe.exe /in "C:\Documents and Settings\user\Desktop\RecursiveSearch.au3" /out "C:\Documents and Settings\user\Desktop\RecursiveSearch.exe" /comp 2 /pack /Bin C:\DOCUME~1\user\LOCALS~1\Temp\AutoItSC.bin

Edited by weaponx

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

It will need aut2exe and AutoItSC.bin to be able to compile a script from a script which could be FileInclude(d) FileInstall(ed) in the script.

:P

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

yea, brain fart: I meant of course fileinstall(ed) :P

EDIT: You also need UPX.exe when using that option.

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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