Author: peterw
Date: Thu Dec 6 08:54:22 2007
New Revision: 31036
URL:
http://svn.reactos.org/svn/reactos?rev=31036&view=rev
Log:
- Prevent multiple instances of the installer from running.
Modified:
trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
Modified: trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/RosBE.ns…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/RosBE.nsi (original)
+++ trunk/tools/RosBE/RosBE-Windows/RosBE.nsi Thu Dec 6 08:54:22 2007
@@ -42,6 +42,11 @@
;; Read our custom page ini, remove previous version.
;;
Function .onInit
+ System::Call 'kernel32::CreateMutexA(i 0, i 0, t
"RosBE-v${PRODUCT_VERSION}-Installer") i .r1 ?e'
+ Pop $R0
+ StrCmp $R0 0 +3
+ MessageBox MB_OK|MB_ICONEXCLAMATION "The ${PRODUCT_NAME} v${PRODUCT_VERSION}
installer is already running."
+ Abort
${If} ${RunningX64}
StrCpy $INSTDIR "$PROGRAMFILES64\RosBE"
${Else}