Fix crash in WindowsInstaller() if some targets are disabled.

This commit is contained in:
Sergey Popov 2008-09-04 14:54:46 +00:00
parent 8cfba206d2
commit a876af47f4

View file

@ -18,6 +18,8 @@ def WindowsInstaller(env, files):
env["NSIS_INSTALL_FILES"] = ""
env["NSIS_UNINSTALL_FILES"] = ""
for file in files:
if not file:
continue
if file.isdir():
env["NSIS_INSTALL_FILES"] += 'SetOutPath "$INSTDIR\\' + file.path + '"\n '
env["NSIS_INSTALL_FILES"] += "File /r /x .* " + file.path + "\\*.*\n "