pascalabcnet/ReleaseGenerators/PascalABCNETMini.nsi

22 lines
639 B
Plaintext
Raw Normal View History

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
!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:
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