1
General / Help with game crashing on startup when run with an installer
« on: August 30, 2023, 07:25:52 am »
I am wondering if anyone here is familiar with issues when trying to make your game playable by others/distribute it.
I have my Debug and Release configurations both targeting x64, and made sure I am using 32 bit libraries for everything. The game works when I run it from visual studio in both Debug and Release configurations. I created a Setup Installer project, following https://learn.microsoft.com/en-us/cpp/ide/walkthrough-deploying-your-program-cpp?view=msvc-170. This Setup also builds without any errors or warnings.
However both on my PC and on any other I've tested on, when I install the program using the .msi generated by the Setup Installer project (which also installs successfully), when I go to run the game the window comes up white for a second and then goes away on its own in release mode. In Debug mode it throws up a popup saying "Debug Error".
I assume something must be happening with the dependencies, but I don't see any log output or any kind of feedback on why the app crashed.
Does anyone have experience on how to debug something like this or what might be the issue?
Thanks!
I have my Debug and Release configurations both targeting x64, and made sure I am using 32 bit libraries for everything. The game works when I run it from visual studio in both Debug and Release configurations. I created a Setup Installer project, following https://learn.microsoft.com/en-us/cpp/ide/walkthrough-deploying-your-program-cpp?view=msvc-170. This Setup also builds without any errors or warnings.
However both on my PC and on any other I've tested on, when I install the program using the .msi generated by the Setup Installer project (which also installs successfully), when I go to run the game the window comes up white for a second and then goes away on its own in release mode. In Debug mode it throws up a popup saying "Debug Error".
I assume something must be happening with the dependencies, but I don't see any log output or any kind of feedback on why the app crashed.
Does anyone have experience on how to debug something like this or what might be the issue?
Thanks!