how would i go about changing the way an .exe program opens? like say the _main_ .exe i wanted to open could only be opened by opening another .exe program before you could open the _main_ .exe, how would i go about to do this?
Printable View
how would i go about changing the way an .exe program opens? like say the _main_ .exe i wanted to open could only be opened by opening another .exe program before you could open the _main_ .exe, how would i go about to do this?
You could send some verification key as a command line argument to the program. If the key is incorrect, you exit. But if it's correct then it must have been called from the other application.
The real question is, of course, why would you want to do this? Having an application that cannot be started by the user does not make sense. Can't you use a dll instead?
the _main_ .exe will be the main program, however they would need to update their client therefore would have to use a kind of update program so they get the updates before going to the _main_ .exe which is what am i trying to do
I intend to enter a password / key to be entered by the first program onto the _main_ .exe, but i am really new to this kind of stuff, therefore would you let me know how i would start to go about this?
Your looking at it the wrong way this is how you could do it..
-main.exe loads up
-A window appears an asks for Login
-Program checks for Update: if needed it downloads the updates
-Windows goes away an is replaced with the main page, or whatever
[ removed duplicate thread ]