From: lehtonen Date: Sat, 20 Dec 2014 21:32:24 +0000 (+0000) Subject: self-extracting executable creation script. refs #5399 X-Git-Tag: v1.29.0~137 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=29ccda9b489d98b3d614556bafb43c0f4d101cfe;p=simantics%2Fsysdyn.git self-extracting executable creation script. refs #5399 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30711 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/installer/7z/make-sfx.bat b/installer/7z/make-sfx.bat index 5b18020a..5885fb8f 100644 --- a/installer/7z/make-sfx.bat +++ b/installer/7z/make-sfx.bat @@ -3,9 +3,9 @@ set P=%~dp0 set ZIP=%P%7z.exe set EXE=%~n1.exe -rd /s/q tmp -del %EXE% -unzip -d tmp %1 +if exist tmp rd /s/q tmp +if exist "%EXE%" del "%EXE%" +"%ZIP%" x -otmp "%1" cd tmp "%ZIP%" a -sfx -bd "..\%EXE%" * cd ..