C# : Making an exe to not run directly

前端 未结 4 459
盖世英雄少女心
盖世英雄少女心 2020-12-10 23:12

I need to make the primary .exe unrunnable from it (When you try to start it directly ,you get a message : Cannot start directly,if it runs from the secondary exe (only it,m

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 23:48

    The simplest way to do that is to have command line parameters, or beter still, set an environment variable and run it, so theres little way to trace the requirements from a "can I get round the fact you want me to use your app to run it". However, I would say a DLL would be the way to go really.

提交回复
热议问题