Results 1 to 6 of 6

Thread: EXE Wrapping

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    1

    EXE Wrapping

    Hi,
    I need to wrap a exe in my vb program. Suppose i want to protect a.exe, this a.exe should not be available for the outside world. ie, a.exe should not be copied to hdd from the program to run, it should run from inside my program. Can anyone help me on this.... its very urgent

    Thanks in advance

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: EXE Wrapping

    You could perhaps look at using a resource file which contains your .exe. Your wrapper program would have to extract it to disk to run it though (I think), but you could delete it when finished. Do a search of the forums for resource file.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  3. #3
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: EXE Wrapping

    welcome to vbf,

    first of all, as far as i know, there is no way you could do that. but you can deny any direct initiation of your program.

    what i mean is if you want that your application will be the only one capable of running such another application of yours, it can be done but with care

    first you need to compile your main prog into exe format

    then go to command prompt and rename it and replace its extension with another extension that the os cannot directly execute

    on the form load event of your second program, rename the file back to its original extension which is .exe and run it using shell.

    on the unload event of the form, rename it back to what you renamed it in command com before
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  4. #4

  5. #5
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: EXE Wrapping

    Quote Originally Posted by shabab
    Hi,
    I need to wrap a exe in my vb program. Suppose i want to protect a.exe, this a.exe should not be available for the outside world. ie, a.exe should not be copied to hdd from the program to run, it should run from inside my program. Can anyone help me on this.... its very urgent

    Thanks in advance
    Why would you do that?
    Use [code] source code here[/code] tags when you post source code.

    My Articles

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

    Re: EXE Wrapping

    Welcome to the forums.

    You do have the source code for a.exe right?

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