From c77f6df6091983dab9bea211de366f6c81f7ef90 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Fri, 1 Oct 2010 17:13:17 +0100
Subject: Fix for previous NSIS commit


diff --git a/Swift/Packaging/nsis/swift.nsi b/Swift/Packaging/nsis/swift.nsi
index 6d6b907..ce108c4 100644
--- a/Swift/Packaging/nsis/swift.nsi
+++ b/Swift/Packaging/nsis/swift.nsi
@@ -33,13 +33,13 @@ SetCompressor lzma
 !insertmacro MUI_UNPAGE_CONFIRM
 !insertmacro MUI_UNPAGE_INSTFILES
 
-section "isrunning"
+Function .onInit
   FindProcDLL::FindProc "Swift.exe"
   IntCmp $R0 1 0 notRunning
     MessageBox MB_OK|MB_ICONEXCLAMATION "Swift is running. Please close it first" /SD IDOK
     Abort
   notRunning:
-SectionEnd
+FunctionEnd
 
 # default section start
 section "Main install"
-- 
cgit v0.10.2-6-g49f6