bleed Posted May 25, 2009 Posted May 25, 2009 I have a 2 exe files installed. Main.exe file is controled by other Parent.exe, now my question is this. How can I prevent the end user to start the Main.exe directly by double-clicking on it? I need him basicaly to start the Parent.exe first, and my Main.exe is called by ShellExecute() from Parent.exe. Thanks
4Eyes Posted May 25, 2009 Posted May 25, 2009 (edited) I have a 2 exe files installed. Main.exe file is controled by other Parent.exe, now my question is this. How can I prevent the end user to start the Main.exe directly by double-clicking on it? I need him basicaly to start the Parent.exe first, and my Main.exe is called by ShellExecute() from Parent.exe.ThanksHi Bleed,Would it be acceptable to close Main.exe if parent.exe is not running? That you can do with the process management functions, namely ProcessClose(). Let me give you some advice.... look in the help file first. Secondly, search the forums. Most things you want are in either or both of these.Regards,4Eyes Edited May 25, 2009 by 4Eyes
bleed Posted May 25, 2009 Author Posted May 25, 2009 Hi 4Eyes and Thank You for a fast responce. I `ve been searching the forms and the help file for last few hours now, and I cant find any solution to my problem. The reason I have 2 exe files is that they have to be run simultaneously, so I can`t use processclose().
bleed Posted May 25, 2009 Author Posted May 25, 2009 Thanubis, Thats it! heh.... I`m spending way to many hours learning AutoIt, and sometimes very simple ideas wont come up Thanks again
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now