Windows C++ devs:
My main project is a Python + Qt GUI application. Distributing that as-is on Linux is easy. On Windows, a little trickier.
What I do now is distribute it with Python embeddable and pure Python code. That's fine, but it makes the launching a little tricky.
I'm currently trying to create a trivial C++ exec that just launches the correct files via CreateProcess().
Does this sound like a good idea? Code linked below.
https://github.com/vkbo/novelWriter/tree/windows_launcher/launcher/windows
While I got some experience with C++, all of it is on Linux, and a lot of it with Qt. Programming on Windows isn't something I've done since my Visual Basic days, which is 20 years ago.
This is mostly based on Microsoft Learn examples and StackOverflow threads. But it does work on my Windows 10 VM.
What I'm mainly concerned about is if there are any pitfalls I'm not aware of.
Oh, and before anyone mentions that: Yes, I've both considered and tested Pyinstaller and Nuitka and most other such tools. I released with Pyinstaller for a while. But these tools are notorious for setting off virus warnings, so I want to avoid them.
It's pretty easy to just compile my tiny launcher Python script with Nuitka and let it launch the app. But VirusTotal is not impressed.
My little exe from the code in the earlier post passes virus check even before I've signed it.