Browse Source

keep .nsi file if nsis failed

rdb 13 years ago
parent
commit
30e2c680e7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/p3d/DeploymentTools.py

+ 2 - 1
direct/src/p3d/DeploymentTools.py

@@ -1191,10 +1191,11 @@ class Installer:
             retcode = subprocess.call(cmd, shell = False)
             if retcode != 0:
                 self.notify.warning("Failure invoking NSIS command.")
+            else:
+                nsifile.unlink()
         except OSError:
             self.notify.warning("Unable to invoke NSIS command.")
 
-        nsifile.unlink()
         if icofile is not None:
             icofile.unlink()