Example.nsi 661 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Look at Readme.txt for usage alongside with the Modern UI
  2. !include "WinMessages.nsh"
  3. Name "Banner.dll test"
  4. OutFile "Banner Test.exe"
  5. ShowInstDetails show
  6. Function .onInit
  7. Banner::show "Calculating important stuff..."
  8. Banner::getWindow
  9. Pop $1
  10. again:
  11. IntOp $0 $0 + 1
  12. Sleep 1
  13. StrCmp $0 100 0 again
  14. GetDlgItem $2 $1 1030
  15. SendMessage $2 ${WM_SETTEXT} 0 "STR:Calculating more important stuff..."
  16. again2:
  17. IntOp $0 $0 + 1
  18. Sleep 1
  19. StrCmp $0 200 0 again2
  20. Banner::destroy
  21. FunctionEnd
  22. Section
  23. DetailPrint "Using previous calculations to quickly calculate 1*2000..."
  24. Sleep 1000
  25. DetailPrint "Eureka! It's $0!!!"
  26. DetailPrint ""
  27. SectionEnd