Results 1 to 14 of 14

Thread: EXE Writer - Make Custom EXEs

  1. #1

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    EXE Writer - Make Custom EXEs

    This question seems to get asked a lot, so I thought I'd post it here. It allows you to make "custom EXE files".

    (This code is not a compiler).

    You basically have 2 programs, one is your program, the other is one that customizes it. This is the same kind of concept used by installers, self extractors, etc.

    It's hard to explain, so it's better if you look at the example projects.

    The example is a simple login screen. You write the username/password to the EXE file itself (instead of having to distribute a password file or something with it).

    No encryption was used in this example, so if you were to really make something like this then be sure to use encryption.

    This is an updated version from one I posted about a year ago.
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    Oct 2006
    Posts
    55

    Re: EXE Writer - Make Custom EXEs

    how does adding on to the exe not corrupt it? I mean isent there a checksum that it goes through to check if its the right size? kidna like when u hex a string?

  3. #3

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: EXE Writer - Make Custom EXEs

    Quote Originally Posted by AgentSmithers
    how does adding on to the exe not corrupt it? I mean isent there a checksum that it goes through to check if its the right size? kidna like when u hex a string?
    I don't really know exactly why, it's just the way the EXE file format is. It probably has an END code at the end, and anything past that point isn't executed. (Similiar to </html> in html), but I have no clue.

  4. #4
    New Member
    Join Date
    Nov 2006
    Posts
    8

    Re: EXE Writer - Make Custom EXEs

    i am tryingto use your example but everytime i try to run it it give me a run time error 53 file not found. i have not added anything or modified it. can you tell me why?

  5. #5
    Hyperactive Member LawnNinja's Avatar
    Join Date
    Aug 2006
    Posts
    446

    Re: EXE Writer - Make Custom EXEs

    Same thing happens to me Exept in only says that on 'TheEXE' not the 'builder'

  6. #6
    Hyperactive Member kazar's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    323

    Re: EXE Writer - Make Custom EXEs

    The way i would do it, since strings are stored as strings in vb exes, is open the exe, and edit a particular string.
    KAZAR

    The Law Of Programming:

    As the Number of Lines of code increases, the number of bugs generated by fixing a bug increases exponentially.
    __________________________________
    www.startingqbasic.co.uk

  7. #7
    Addicted Member Jazz00006's Avatar
    Join Date
    Feb 2006
    Posts
    185

    Re: EXE Writer - Make Custom EXEs

    Quote Originally Posted by LawnNinja
    Same thing happens to me Exept in only says that on 'TheEXE' not the 'builder'
    Quote Originally Posted by wryan_garner4
    i am tryingto use your example but everytime i try to run it it give me a run time error 53 file not found. i have not added anything or modified it. can you tell me why?
    To both of you, I think i had roughly the same problem, if you just edit the name of the file that goes out, but leave the original project name the same it looks for TheEXE or the app.exename which is the vbp name, so make sure its the same.

    Dont know if thats what your mean, but if it cant find something, then thats what i had

  8. #8

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: EXE Writer - Make Custom EXEs

    I've recently found a much easier/coder-friendly way of doing this using PropertyBags so I'll update the code soon.

    And yes, Jazz is right, the code uses App.EXEName, which could be different than the name you choose as the EXE file.

    If you already know the name of your EXE, change it in the TheEXE project.

    ie:

    VB Code:
    1. Open App.Path & "\" & App.EXEName & ".exe"

    to:

    VB Code:
    1. Open App.Path & "\My Name.exe"

  9. #9
    Hyperactive Member
    Join Date
    Oct 2005
    Posts
    294

    Re: EXE Writer - Make Custom EXEs

    Very interesting.

  10. #10
    Member
    Join Date
    Oct 2006
    Posts
    55

    Re: EXE Writer - Make Custom EXEs

    I got a Sample as well if you need Clearafacation =)
    It was Engenious!

    Great way to make a Configuration for Client Server Apps!

  11. #11
    New Member
    Join Date
    Jun 2008
    Posts
    1

    Re: EXE Writer - Make Custom EXEs

    i just downloaded your zipped file, and unzipped it, but how can i open it?

  12. #12
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: EXE Writer - Make Custom EXEs

    By opening Visual Basic 6/click on Existing, navigate to where you unzipped the project, and select the .vbp file.

  13. #13
    Addicted Member
    Join Date
    Mar 2007
    Location
    India
    Posts
    227

    Re: EXE Writer - Make Custom EXEs

    In DOS days we use to hid small snippets of text in EXE files by giving the following command at DOS Prompt :
    Code:
    type mytext.txt >>mytest.exe
    You found a windows way of doing it!

    Great!

  14. #14
    Lively Member
    Join Date
    Oct 2011
    Posts
    80

    Re: EXE Writer - Make Custom EXEs

    I knew this method. Its pretty old. But its not really good secure for like a login or something.. Now we just need to encrypt the stuff placed outside the headers of the file and decrypt it on runtime. Thats better. But another problem. Crackers can still crack it by using any debugger and just watch the strings chaning and the decrypted stuff. Maybe we need to keep it crypted and send stuff to my webserver mysql db with Request.php then check the db returned value = decrypt with the encrypted pass if output = letters and chars then acces to the program or something like that lol.

    Hard to axplain.. But should be possible.

    NiTrOwow
    Best Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width