Why after I've published my Project, I cant just run my exe (the one you find in your "Debug" folder) without getting this error message after you close your project? - Thus not using my published project, and still just using the exe
I've created a test project just to test if this is the case, and this happens every time.
- Create a new windows project.
- Build it.
- Go to the debug folder.
- Copy the exe to your desktop
Run the program
So a blank form opens up.
- Now close it.
- And there's the error message again.
How do you get rid of this? I've read you should add stuff to your manifest etc, but surely there must be an easier way? I'm using Visual Studio 2008 on a windows 7 64-bit machine.
EDIT:
I found the solution to the problem. The reason this happened is because I had the word "installer" or "Setup" in my project name, can you believe it... that something like that could influence the project like this.
i found that this question is answered here How to prevent “This program might not have installed correctly” messages on Vista This was indeed the reason the program did this.