Question Application not running after installation.

SireJohn

New member
Joined
Apr 15, 2025
Messages
1
Programming Experience
Beginner
I have compile my project using the Inno Setup Compiler and after the compilation and installation, the .exe can not run.

Breakdown:- I have instructed to create a folder(MyFiles2025) to hold my sqlite database and other files in the appData/Roaming. so after installation and on a runtime, all the files(.db and .xltx etc.) files should copy from a folder(Resource) in my project directory to the appData if it doesn't exist and from then the system should access every file from there(MyFiles2025) .db and the rest.

Now, after compiling and installing the .exe, everything create successfully, all the files and the folder and also the installation folder(desire named folder in the Program Files also create successful) but after all, the program doesn't run.

I mean, it doesn't show anything not even my app first interface . The cursor rolls and goes silent and nothing will show.

Moreover, I have tried using the built in visual studio compiler and it does the same.

Again, I got a suggestion to embed my files so that all my .dll files in the bin/release can convert to one executable to ignore the .NET Framework and extract the file to their destination directories (folders) during installation but it also happen to show the same problem even after this stress.

But when I build in the release mode and even after closing the Visual Studio and I go to the project folder > bin>release and run the .exe there, it runs the application correctly.
 
Put some logging code in your app so it can tell you where it gets up to in its execution. You might also add a global exception handler, especially if none of your code eveer actually gets executed.
 
Make sure that the logs are written into the temp or app data directory. Recall that by default modern Windows does not give users access to write in the Program Files directory.

Just my guess, but you might have another dependency that you aren't considering. For example, if your application is using .NET 8.0 or .NET 9.0, is .NET 8.0 or .NET 9.0 installed on the target machine? Or some people use a version of SQLite that depends on some C runtime libraries. Are those C runtime libraries installed on the target machine?
 
Back
Top Bottom