Jump to content
Sign in to follow this  
Helge

Include Script-source In Exe

Recommended Posts

Helge

This is just from another post at this forum, but trids asked me to

post it here at Scripts and Scraps so here ya go :

When I make big scripts in AutoIt, I normally just do a FileInstall to

include the source in the EXE-file..

If $CmdLine[0] = 2 AND $CmdLine[1] = "/source" AND $CmdLine[2] = "password"  Then
FileInstall("Source.zip", "Source.zip", 1)
Exit
Else
EndIf

And as you can see, to get my hands on the source again, I just have to write :

MyProgram.exe /source password

Share this post


Link to post
Share on other sites
Valik

Hmmm. I've been thinking of making a compile-time (And maybe a run-time...) interpreter which sits between scripts and AutoIt3.exe/Aut2Exe.exe which reads special comments and performs various tasks from that such as defining the icon to be used (A suped-up version of redndahead's script, basically). That looks like a good idea for an additon to the compile-time interpreter.

Share this post


Link to post
Share on other sites
mpking

Could we make this one a Sticky?

Possible add it to the help file?

I find this immensly helpful.

Share this post


Link to post
Share on other sites
Valik

It's a mute point now, there is an official decompiler so this trick isn't necessary.

Share this post


Link to post
Share on other sites
hellsPRN

were can we get the decompiler? can you please tell me?

Share this post


Link to post
Share on other sites
Nutster

Looks like it has been removed from the unstable area. Let's see where did I put it? :D

I found this version lying around. Try it and see what you think.

BTW, I am not supporting this and it may have bugs that I am not going to fix. When the updated version is put in unstable (or even better yet, the release) I will removing this one.

Edited by Nutster

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.