From 11b8337874153765d32cf71240ac2fd0084f772b Mon Sep 17 00:00:00 2001
From: Vadim Dashevskiy <watcherhd@gmail.com>
Date: Fri, 6 Sep 2013 18:25:54 +0000
Subject: Installer: self destruction condition - better version

git-svn-id: http://svn.miranda-ng.org/main/trunk@5976 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat b/tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat
index 470e43cda6..09b1439f9d 100644
--- a/tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat
+++ b/tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat
@@ -1,4 +1,5 @@
 @echo off
+if not exist MirandaNG.iss goto end
 set GetVer=for /F "tokens=1,2,3 delims= " %%i in (build.no) do set MirVer=%%i.%%j.%%k
 set BomRem=http://miranda-ng.org/distr/installer/bom_remove.exe
 set BomAdd=http://miranda-ng.org/distr/installer/bom_add.exe
@@ -47,5 +48,6 @@ if %InnoX% == InnoNG_32 (
 rem end
 
 rem Delete bat file
-if exist MirandaNG.iss del "%~f0
-rem end
\ No newline at end of file
+del "%~f0
+rem end
+:end
\ No newline at end of file
-- 
cgit v1.2.3