From 29ccda9b489d98b3d614556bafb43c0f4d101cfe Mon Sep 17 00:00:00 2001 From: lehtonen Date: Sat, 20 Dec 2014 21:32:24 +0000 Subject: [PATCH] self-extracting executable creation script. refs #5399 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30711 ac1ea38d-2e2b-0410-8846-a27921b304fc --- installer/7z/make-sfx.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 .. -- 2.47.1