Hello,
I want to run a nsis script for Windows and Linux. But they have different path separators (/ and \).
Example:
File files/test.txt ; for linux
File files\text.txt ; for windows
Is it possible to have a script which run on both operation systems?
Make command File buildable for windows and linux
5 posts
Yes, NSIS tries to translate \ to / for you and / works many places in Windows.
Well, I tried exactly this and it doesn't work. I have two scripts which are equal except the paths for the File command.
I use nsis 3.05 with Win10 and it doesn't work.
I use nsis 3.05 with Win10 and it doesn't work.
It not working on Windows makes no sense, just use "dir\file.ext". If the compiler is executed on Linux it will translate the path to "dir/file.ext" automatically.
Sorry, you are right. But the back direction doesn't work.