Fix crash in WindowsInstaller() if some targets are disabled.
This commit is contained in:
parent
8cfba206d2
commit
a876af47f4
1 changed files with 2 additions and 0 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Reference in a new issue