Click here to Skip to main content
15,886,689 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
Posted
Updated 21-Dec-20 1:32am
Comments
RickZeeland 21-Dec-20 7:18am    
Do you see any errors in the Windows eventlog ? How do you create the setup file ?

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!
 
Share this answer
 
If it's not a VS problem, you can consider opening the developer mode of your computer (in the settings) and update the SDK of your computer (there are many versions, choose the new one).
Because SDK is quite important in the future development of UWP.
 
Share this answer
 

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