Liufa Posted January 7, 2011 Posted January 7, 2011 Hello.I need to make password protected Self Extracting Archive to become unusible in 2 weeksI have found Recource Hacker, is there a way to add business logic to Dialogs? like for exampleThe password prompt dialog501 DIALOG 0, 0, 186, 82STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENUCAPTION "Enter password"LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_USFONT 8, "MS Shell Dlg"{ CONTROL "&Enter password:", 1000, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 7, 7, 172, 8 CONTROL "", 1001, EDIT, ES_LEFT | ES_PASSWORD | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 7, 19, 172, 14 CONTROL "&Show password", 1002, BUTTON, BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 7, 41, 172, 10 CONTROL "OK", 1, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 41, 61, 64, 14 CONTROL "Cancel", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 115, 61, 64, 14 }to add something like501 DIALOG 0, 0, 186, 82STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENUCAPTION "Enter password"LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_USFONT 8, "MS Shell Dlg"{ CONTROL "&Enter password:", 1000, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 7, 7, 172, 8 CONTROL "", 1001, EDIT, ES_LEFT | ES_PASSWORD | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 7, 19, 172, 14 CONTROL "&Show password", 1002, BUTTON, BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 7, 41, 172, 10 if (DateTime.Now < "2011.01.14") CONTROL "OK", 1, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 41, 61, 64, 14 CONTROL "Cancel", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 115, 61, 64, 14 }in ther words Hide OK button from user.explanationSelf extracting files contains of 2 parts7z.SFX file which can be edited by Recource Hacker, and Archiveevery time user downloads archive i would change 7z.SFX file which gets embeded into Self extracting archive in a way so OK button would be hidden in 2 weeks and he could not submit password.If you think of something else to make files expire please tell me it can be not password protected.I am currently searching for any solution for files to expire.
allen2 Posted January 7, 2011 Posted January 7, 2011 I'm pretty sure you won't like my answer but 7zip is open source and its source code is in C++ langage so your idea shouldn't work.Also, if someone download your file and extract it right after with 7zip, he can recompress or copy the files and have a working copy even after expiration date.I think autoit might help you if you want to build a custom sfx installer based on 7zip (you'll still have the above problem).
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