#磁盘检查
Function DiskFrameWorkSpaceCheck
StrCpy $2 $INSTDIR 3
${DriveSpace} "$2" "/D=F /S=M" $R0
ReadRegStr $8 HKLM 'Hardware\Description\System\CentralProcessor\0' Identifier
StrCpy $9 $8 3
${If} $9 == 'x86'
${If} $R0 < 90
MessageBox MB_ICONINFORMATION|MB_OK "安装空间不够"
Abort
;Call onClickClose ;点击关闭响应的事件
${EndIf}
${Else}
${If} $R0 < 610
MessageBox MB_ICONINFORMATION|MB_OK "安装空间不够"
;Call onClickClose ;点击关闭响应的事件
Abort
${EndIf}
${EndIf}
FunctionEnd
;主程序小于50mb判断
Function DiskProgramSpaceCheck
StrCpy $2 $INSTDIR 3
${DriveSpace} "$2" "/D=F /S=M" $R0
${If} $R0 < 10
MessageBox MB_ICONINFORMATION|MB_OK "主程序安装空间不够"
Abort
${EndIf}
FunctionEnd
© 版权声明
THE END
暂无评论内容