Files
rtems/contrib/mingw/instance-check.nsi
Joel Sherrill 9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00

21 lines
545 B
NSIS

; RTEMS Tools Installer.
;
; Copyright Chris Johns (chrisj@rtems.org)
;
Function CheckInstance
Push $R0
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "RTEMSTools") i .r1 ?e'
Pop $R0
!ifdef COMMON_FILES
StrCmp $R0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running."
Abort
!else
StrCmp $R0 0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION "This installer should not be run directly. Please run the rtems${PRODUCT_VERSION}-tools-${RTEMS_BUILD_VERSION}.exe installer."
Abort
!endif
Pop $R0
FunctionEnd