Click here to Skip to main content
14,713,662 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
 have a WPF project and I create an Setup file from this project file and I install it on my computer but when I run the installed .exe file, the program just Loads and closes immediately.

I have tried to run the program in visual studio, the program runs very normally without any errors or problems.
I also tried to open the .exe file of visual studio, it still works normally and no problem occurs.
I used Database and Material design and Interaction for this WPF project.
I hope anyone who encountered this problem can help me handle it.

What I have tried:

I can't run file .exe after install
Updated 8hrs 10mins ago
RickZeeland 8hrs 15mins ago
Do you see any errors in the Windows eventlog ? How do you create the setup file ?

1 solution

We can't help you - we have no idea what you code is doing or expecting to do, much less how it actually does it.

So start by "old school" debugging: add logging statements to you code to find out how far it does get.
When you know that, add more detailed logging to narrow it down.
Repeat this process until it's clear what code is causing a problem - and then if you can't fix it at least you can present the code to us and explain exactly where it fails, what variables contain, and how it fails.

Sorry, but we can't do any of that for you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900