!macro customInstall
  DetailPrint "Register farmcontrol URI Handler"
  DeleteRegKey HKCR "farmcontrol"
  WriteRegStr HKCR "farmcontrol" "" "URL:farmcontrol"
  WriteRegStr HKCR "farmcontrol" "URL Protocol" ""
  WriteRegStr HKCR "farmcontrol\DefaultIcon" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME}"
  WriteRegStr HKCR "farmcontrol\shell" "" ""
  WriteRegStr HKCR "farmcontrol\shell\Open" "" ""
  WriteRegStr HKCR "farmcontrol\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
!macroend