inst-resources/core-files.nsh
author Neal Gompa <neal@enanocms.org>
Fri, 18 Dec 2009 20:36:15 -0600
changeset 9 100ba25b6dba
parent 3 0cce88c7cf7c
permissions -rwxr-xr-x
Adding uninstall commands for shortcuts, we don't want unnecessary stuff floating around after the uninstallation...

!macro Core_Install
  SetOverwrite try
  SectionIn RO
  
  ; not a huge deal if this fails, it just helps me avoid dumb mistakes.
  !system 'hg -R "${ENANO_ROOT}" update'
  
  SetOutPath "$INSTDIR\apps\${PRODUCT_SHORTNAME}\htdocs"
  File /r /x .hg /x .hgtags "${ENANO_ROOT}\*"
!macroend

!macro Core_Uninstall
  ; I'm sorry, but 1,000 files don't deserve to be listed out.
  RmDir /r "$INSTDIR\htdocs"
  RmDir /r "$INSTDIR\conf"
  RmDir /r "$INSTDIR\scripts"
  Delete "$INSTDIR\uninstall.exe"
  RmDir "$INSTDIR"
!macroend