Skip to content
⌘ NSIS Forum Archive

Make command File buildable for windows and linux

5 posts

ikreb#

Make command File buildable for windows and linux

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?
ikreb#
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.
Anders#
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.