I’ve built a Windows installer using NSIS, cross compiling from Linux using MinGW and the Linux nsis package (Ubuntu 19.10). This works great, but if the user’s
PATH exceeds 1024 characters the application cannot be added to
PATH due to a limitation of NSIS.
On https://nsis.sourceforge.io/Path_Manipulation it is advised to use the EnVar plugin as a work around. I guess this implies modifying NSIS.template.in, Function AddToPath? If so, I have some questions:
- Should this not be added to CMake/CPack?
- If not, how to best proceed? Copy this file to my project and edit it? That seems rather fragile when updating to new versions of CMake, no?
- Anyone who done this (or has another work-around)?
Thanks — Jan