Jump to content
Sign in to follow this  
Helge

Include Script-source In Exe

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

Share this post


Link to post
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.

Share this post


Link to post
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...

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...