Sign in to follow this  
Followers 0
bleed

How to prevent certain exe from opening?

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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.

Thanks

Hi 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 by 4Eyes

Share this post


Link to post
Share on other sites

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().

Share this post


Link to post
Share on other sites

Thanubis,

Thats it!

heh.... I`m spending way to many hours learning AutoIt, and sometimes very simple ideas wont come up :)

Thanks again :party:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0