My app was developed with Microsoft Visual Studio 2019 C# WPF .NET Framework 4.7, and the installer with NSIS 3.05 MUI2. The development file directory is on an external drive because I had to carry out the development on 2 different computers with the Windows 10 Pro x64 Build 19041.746 operating system. MS VS 2019 as well as .NET Framework 4.8 is installed on both computers.
All files from the file directory ... / App_Name.bin.Release have been copied into the installation directory by the NSIS installer
My app works error-free within the development system (debug as well as release). The installation with the NSIS installer on my development computers was also error-free.
The problem:
As long as my external drive is connected to a computer via USB, my app starts without any problems on it, but if the external drive is removed, my app no longer starts! Double click at the desktop icon as well as at the exe file has no effect.
In contrast, the uninstaller can always be started without any problems!
I can't find any explanation for this behavior. Can someone help me there? I suspect, something is missing from the installer, but what?
question from:
https://stackoverflow.com/questions/65883714/app-installed-with-nsis-installer-does-not-start 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…