Our application (C# .Net 3.5) works fine on WinXP machines (embedded or not). Now we move to Win7 embedded machine.
If we put our application under C:\, no problem.
If we put our application under “C:\Program Files” directly, we cannot launch it. Windows will popup a “… Stopped working” window.
if we first put our application under C:\, launch it, when copy it to “C:\Program Files”, it will launch fine.
We don’t have write activities which will create or modify files located under “C:\Program Files”. All our new files and modified files are located just under “C:\MyFolder”.
We don’t have an installer yet. What we deploy our application is copy and paste.
Any idea about this behaviour?
Don’t guess at this problem. Write an event handler for the AppDomain.Current.UnhandledException event. Display or log the value of e.ExceptionObject.ToString().