]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
self-extracting executable creation script. refs #5399
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Sat, 20 Dec 2014 21:32:24 +0000 (21:32 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Sat, 20 Dec 2014 21:32:24 +0000 (21:32 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30711 ac1ea38d-2e2b-0410-8846-a27921b304fc

installer/7z/make-sfx.bat

index 5b18020aa49a9575ad2cbeeebdb791dfe6826e54..5885fb8f9e173dabe9825f8e7302cdb211eb167d 100644 (file)
@@ -3,9 +3,9 @@
 set P=%~dp0\r
 set ZIP=%P%7z.exe\r
 set EXE=%~n1.exe\r
-rd /s/q tmp\r
-del %EXE%\r
-unzip -d tmp %1\r
+if exist tmp rd /s/q tmp\r
+if exist "%EXE%" del "%EXE%"\r
+"%ZIP%" x -otmp "%1"\r
 cd tmp\r
 "%ZIP%" a -sfx -bd "..\%EXE%" *\r
 cd ..\r