How can I check if a program is running for the first time?

后端 未结 3 1328
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-11 02:53

My program sets its display based on if the program is running for the first time or not. In order to determine if the program is running for the first time I am currently u

3条回答
  •  庸人自扰
    2020-12-11 03:06

    Hard to guess what is messy if you don't post or describe it. An obvious approach is to have a setting named "ExePath". If you get null or a string that doesn't match Assembly.GetEntryAssembly().Location then it got either just installed or moved.

提交回复
热议问题