Код:
!define OCR_NORMAL 32512
!define OCR_IBEAM 32513
!define OCR_WAIT 32514
!define OCR_CROSS 32515
!define OCR_UP 32516
!define OCR_SIZENWSE 32642
!define OCR_SIZENESW 32643
!define OCR_SIZEWE 32644
!define OCR_SIZENS 32645
!define OCR_SIZEALL 32646
!define OCR_NO 32648
!define OCR_HAND 32649
!define OCR_APPSTARTING 32650
!macro SetCursor
System::Call user32::SetClassLong(i${Msg},i-12,ir0)
!macroend
!define SetSystemCursor `!insertmacro SetSystemCursor`
!macro SetSystemCursor Msg Cursor
System::Call `user32::LoadImage(i0, i ${${Cursor}}, i ${IMAGE_CURSOR}, i 0, i 0, i ${LR_SHARED}) i.r0`
Push ${Msg}
!insertmacro SetCursor
!macroend
!define SetFileCursor `!insertmacro SetFileCursor`
!macro SetFileCursor Msg File
System::Call `user32::LoadImage(i0, t "${File}", i ${IMAGE_CURSOR}, i 0, i 0, i ${LR_LOADFROMFILE}) i.r0`
Push ${Msg}
!insertmacro SetCursor
!macroend