What I want is to start my main application using my tiny LicenseExe application.
LicenseExe will check that whether this system is registered or not.
If the system is not registered, LicenseExe should be exit. If the system is registered, then LicenseExe will call ShellExecute or whatever method to execute the main application exe.
This is easy I can do this.
What I want is, my main application could never execute by directly double clicking on its exe file. It only execute by LicenseExe application. Is it possible?
This is a kind of trick to make my application licensed. So, please guide me. How can I stop executing my main application directly and make it dependent on my tiny LicenseExe application.
Main application should only be started from the LicenseExe application, not by double clicking and not even by command line.
I am using C++ Visual Studio 2010 under Windows 7 Platform.