|
-
Mar 22nd, 2006, 02:18 AM
#1
Thread Starter
New Member
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
-
Mar 22nd, 2006, 02:22 AM
#2
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.
-
Mar 22nd, 2006, 02:26 AM
#3
Frenzied Member
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
-
Mar 22nd, 2006, 02:39 AM
#4
Re: EXE Wrapping
Or you could make the 2nd program into a dll and run that.
-
Mar 22nd, 2006, 02:47 AM
#5
Re: EXE Wrapping
 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
-
Mar 22nd, 2006, 08:23 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|