nyke0 Posted September 5, 2014 Posted September 5, 2014 It's hard to explain, but I will try. After compiling a script I will run it, and with the first run it will create a string, like a key. The script shall keep this string for ever, but it's should'nt be saved in a txt file or somewhere, only in the exe. Is taht possible?
computergroove Posted September 5, 2014 Posted September 5, 2014 (edited) Why do you need to do this? I suppose you could make sure that autoit was installed and you could make your script copy your entire code with the new variable and recompile your code to a new exe and then delete the old one. It's very messy and unnecessary. Just use a text file. Edited September 5, 2014 by computergroove Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html
nyke0 Posted September 5, 2014 Author Posted September 5, 2014 (edited) I know that way, thanks. But I asking for a hard save without to recompile for just 1 string. Edited September 5, 2014 by nyke0
computergroove Posted September 5, 2014 Posted September 5, 2014 Once the exe has been compiled it no longer gets written to. The answer is no. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html
MikahS Posted September 5, 2014 Posted September 5, 2014 Absolutely not Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
jchd Posted September 5, 2014 Posted September 5, 2014 Adding a resource could work but probably not while the .EXE is running. Another very different (naïve) possibility to attach a licence or something like that is to store it in an ADS (Alternate Data Stream) "under" the .EXE but it only works with NTFS. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
jguinch Posted September 5, 2014 Posted September 5, 2014 I don't know the risk, but what about adding some text into the .exe (at the end) ? This text could be crypted. Of course, it's not really secure, but it's an idea... Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
jchd Posted September 5, 2014 Posted September 5, 2014 AVs frown on that. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
jguinch Posted September 6, 2014 Posted September 6, 2014 (edited) Even if we can store an information into the exe file, copying the file on a different computer will copy the key to. So if you need to prevent the exe file copy (with the embedded key), then you will have to store the key outside the exe, or work with an unique computer ID (GUID). JCHD suggestion seems to be a good way. Edited September 6, 2014 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now