diff --git a/nsist/__init__.py b/nsist/__init__.py index f67a900..54952ea 100644 --- a/nsist/__init__.py +++ b/nsist/__init__.py @@ -393,7 +393,10 @@ def copy_extra_files(self): file = file.rstrip('/\\') basename = os.path.basename(file) - if not destination: + if destination: + # Normalize destination paths to Windows-style + destination = destination.replace('/', '\\') + else: destination = '$INSTDIR' if os.path.isdir(file):