Quellcode durchsuchen

keep .nsi file if nsis failed

rdb vor 13 Jahren
Ursprung
Commit
30e2c680e7
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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)
             retcode = subprocess.call(cmd, shell = False)
             if retcode != 0:
             if retcode != 0:
                 self.notify.warning("Failure invoking NSIS command.")
                 self.notify.warning("Failure invoking NSIS command.")
+            else:
+                nsifile.unlink()
         except OSError:
         except OSError:
             self.notify.warning("Unable to invoke NSIS command.")
             self.notify.warning("Unable to invoke NSIS command.")
 
 
-        nsifile.unlink()
         if icofile is not None:
         if icofile is not None:
             icofile.unlink()
             icofile.unlink()