2015-05-14 22:35:07 +03:00
|
|
|
SetCompressor /SOLID lzma
|
|
|
|
|
OutFile "..\Release\PascalABCNETMiniSetup.exe"
|
|
|
|
|
!include PascalABCNET_head.nsh
|
|
|
|
|
!include PascalABCNET_sections_min.nsh
|
|
|
|
|
!include PascalABCNET_end.nsh
|
2017-04-23 12:49:01 +03:00
|
|
|
!include "nsProcess.nsh"
|
2015-05-14 22:35:07 +03:00
|
|
|
|
|
|
|
|
Function .onInit
|
|
|
|
|
IfFileExists "$WINDIR\Microsoft.NET\Framework\v4.0.30319\System.dll" +3 0
|
|
|
|
|
MessageBox MB_OK $(DESC_Framework_Required)
|
|
|
|
|
Abort
|
|
|
|
|
!insertmacro MUI_LANGDLL_DISPLAY
|
|
|
|
|
Goto exit
|
|
|
|
|
exit:
|
2017-04-23 12:49:01 +03:00
|
|
|
checkprocess:
|
|
|
|
|
${nsProcess::FindProcess} "PascalABCNET.exe" $R0
|
|
|
|
|
StrCmp $R0 0 0 notRunning
|
|
|
|
|
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(DESC_IsRunning) IDRETRY checkprocess IDCANCEL end
|
|
|
|
|
end:
|
|
|
|
|
Abort
|
|
|
|
|
notRunning:
|
2015-05-14 22:35:07 +03:00
|
|
|
FunctionEnd
|