Jump to content

Include Script-source In Exe


Helge
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...
  • Administrators

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

The output is pretty nasty though, no doubt I'll change it so the scripts are compiled in all their whitespace glory... :D
Link to comment
Share on other sites

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...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...