pytruong Posted June 5, 2015 Posted June 5, 2015 Googled and Searched and I couldn't find this. I think my "keywords" are incorrect but I've tried different combinations of words. Closest thing I found was this: https://www.autoitscript.com/forum/topic/149432-build-exe-from-exe/ but I don't know if it's actually what I'm looking for and the link provided by Melba23 (https://www.autoitscript.com/forum/topic/149432-build-exe-from-exe/?do=findComment&comment=1064672) is giving an error.What I'm trying to do is create a code("Code1") that contains another code ("Code2").Code1 contains GUI input boxes for $Username & $PasswordCode2 then uses those variables for the main coding that I've createdCode1 then creates the compiled Exe. But I would like Code1 to be in itself already an Exe that I can give to my colleagues.The purpose is that Code1.Exe will request their credentials and then a new Exe will be compiled for them that ONLY contains Code2 (with their credentials embedded into it).
argumentum Posted June 6, 2015 Posted June 6, 2015 (edited) about a better approach ? https://www.autoitscript.com/forum/topic/155051-save-data-to-exe-itself-no-need-for-ini-files/#comment-1120251the data in that topic is written without any protection but you can encrypt it and adapt the idea to your needs Edited June 6, 2015 by argumentum clarification Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
pytruong Posted June 6, 2015 Author Posted June 6, 2015 Thank you Argumentum for the quick response. Not exactly what I was looking for, because I didn't want to have 2 .Exe files but if what I originally wanted is not doable, I'll have to play with the scripts from that link. Thanks once again!
Moderators Melba23 Posted June 6, 2015 Moderators Posted June 6, 2015 pytruong,Unfortunately many of my links were irretrievably destroyed in the forum upgrade - something to do with the way in which they were formatted. I think this is the thread to which I was linking:The compile process has changed slightly since that was written (there is no longer any need for AutoItSC.bin), but the principle remains the same.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Reveal hidden contents ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Jfish Posted June 6, 2015 Posted June 6, 2015 (edited) Not sure if this is what you mean from your original post but this script creates an EXE that you can give to a user (script #2) to enter a username and password and is generated from script #1. https://www.autoitscript.com/forum/topic/170225-create-self-extracting-encrypted-exe-files/EDIT: I did not see Melba's link at first - his is no doubt a much better approach. Edited June 6, 2015 by Jfish updated response Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
pytruong Posted June 9, 2015 Author Posted June 9, 2015 I'm sorry for the delay. Just wanted to thank you guys for the quick response. Melba23, I'm going to give that WrapIt a shot, it looks interesting. Thanks!
RTFC Posted June 14, 2015 Posted June 14, 2015 @pytruong: you may also be interested in CodeCrypter (link in my signature below), which allows you to create exes from your Code 1 that will run only for specific individuals, in specific environments, or upon entering a valid password (that is not stored inside the script/exe). My Contributions and Wrappers Reveal hidden contents BitMaskSudokuSolver BuildPartitionTable CodeCrypter CodeScanner DigitalDisplay Eigen4AutoIt FAT Suite HighMem MetaCodeFileLibrary OSgrid Pool RdRand SecondDesktop SimulatedAnnealing Xbase I/O
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