Results 1 to 6 of 6

Thread: Application that creates exe file with its own instructions?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    7

    Question Application that creates exe file with its own instructions?

    Hey guys,

    I am new here as you can see this is my first post. I am sort of experienced in vb6, but I ran into a problem just today.

    I just saw an application that does the following: You choose a file (.exe, .pdf, .mp3, .avi, whatever) and the program creates an exe file out of the chosen file.

    What is the exe file? It acts as the original file (if it is a video, it plays as a video like the original does), but it opens internet explorer on the back ("hidden") with a pre-chosen website url.

    How can I do that?

    You may think "why would you want to create that if that is already done?" Well I want to learn to do that.

    I mean... How can I make an application that creates an exe file like that?

  2. #2

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    7

    Re: Application that creates exe file with its own instructions?

    Video I made as example...
    http://screenr.com/Drx

    Download link: http://viralfilebrander.com/ViralNew.zip

    Its free use -> Registration Code : 6510192487

    What I'd change... Instead of the website opening in that crappy looking web browser window, I'd do it with Internet explorer or some other popular web browser instead.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    7

    Re: Application that creates exe file with its own instructions?

    Anyone?

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Application that creates exe file with its own instructions?

    Well I haven't downloaded or played with it. I can think of 1 easy way it could be done.

    Two apps.
    1. Simply create an application that will be able to read the end of its exe. At the end is a link to the file to be displayed/opened or possibly the entire file simply appended onto the exe. When the app is double clicked/opened up, it knows what to do with the stuff appended to the end of it. You can search for self-modifying executables on this site and elsewhere for examples.

    2. Your "branding" app has in its resource file the app in #1 above. When you click a file to brand, you basically copy the app in #1 out of your resource file and append the target file to the end of it.

    That's about all I can give you. This isn't my cup of tea and honestly not that interested.

    As for building an actual exe on the fly, forget about it unless you create and deploy your own compiler.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    7

    Re: Application that creates exe file with its own instructions?

    Thanks for your reply!

    Well so far this is what I got... I have a main application "brander" in which I choose the file I want to brand, I also choose the filename of the result exe file from the branding process.

    Then... I brand the file. I brand the file with another exe file that I call "extracter.exe". The result exe file from that branding process includes the extracter exe and an appended chosen file.

    When I click that exe file (branded), it extracts the appended file and it is given the original file's extension. That means if I branded a .jpg file, that is the extension it gives to the extracted file.

    Basically what I have is a tedious file copier. Of course that is not what I want.

    Do you know how I can make the extracter to open the appended file instead of extracting it?

    The result exe file from the branding process has the chosen file all appended to its data so all I would need is how to open it, without extracting it.

    Any clue on how to do this?



    Quote Originally Posted by LaVolpe View Post
    Well I haven't downloaded or played with it. I can think of 1 easy way it could be done.

    Two apps.
    1. Simply create an application that will be able to read the end of its exe. At the end is a link to the file to be displayed/opened or possibly the entire file simply appended onto the exe. When the app is double clicked/opened up, it knows what to do with the stuff appended to the end of it. You can search for self-modifying executables on this site and elsewhere for examples.

    2. Your "branding" app has in its resource file the app in #1 above. When you click a file to brand, you basically copy the app in #1 out of your resource file and append the target file to the end of it.

    That's about all I can give you. This isn't my cup of tea and honestly not that interested.

    As for building an actual exe on the fly, forget about it unless you create and deploy your own compiler.

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