C# : Making an exe to not run directly

前端 未结 4 458
盖世英雄少女心
盖世英雄少女心 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:39

    Make the first exe a DLL. Then the second program can use it but a user won't be able to run it directly.

提交回复
热议问题