The problem is probably with your application and not NSIS... If the application depends on the "correct" working directory you need to use SetOutPath first:
LIEF - Library to Instrument Executable Formats. Contribute to IENSIS/LIEF development by creating an account on GitHub.