source: misc/tools/event_selection/installer/EventSelection.nsi @ 6331

Last change on this file since 6331 was 6331, checked in by rwilson, 14 years ago

Added tkinter_error.py to build.

File size: 1.4 KB
Line 
1!define PRODUCT_NAME "EventSelection"
2!define PRODUCT_VERSION "0.7"
3!define ICON_FILE "tsunami.ico"
4
5Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
6OutFile "${PRODUCT_NAME}_${PRODUCT_VERSION}.exe"
7InstallDir $PROGRAMFILES\${PRODUCT_NAME}
8Page directory
9Page instfiles
10Icon ${ICON_FILE}
11
12Section "Install"
13   SetOutPath $INSTDIR
14   File EventSelection.nsi
15   File EventSelection.py
16   File tkinter_error.py
17   File INSTALL.txt
18   File tsunami.ico
19   CreateShortcut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.py" "" "$INSTDIR\${ICON_FILE}"
20   CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
21   CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
22   CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.py" "" "$INSTDIR\${PRODUCT_NAME}.py" 0
23   WriteUninstaller "$INSTDIR\Uninstall.exe"
24SectionEnd
25
26UninstallText "This will uninstall ${PRODUCT_NAME} ${PRODUCT_VERSION}."
27 
28!ifdef ICON_FILE
29UninstallIcon "${ICON_FILE}"
30!endif
31 
32Section "Uninstall"
33   Delete "$DESKTOP\${PRODUCT_NAME}.lnk"
34   RMDir /r "$INSTDIR\*.nsi"   
35   RMDir /r "$INSTDIR\*.py"   
36   RMDir /r "$INSTDIR\*.ico"   
37   RMDir /r "$INSTDIR\*.exe"   
38   RMDir /r "$INSTDIR\*.sh"   
39;   RMDir "$INSTDIR"
40   RMDir /r "$SMPROGRAMS\${PRODUCT_NAME}\*.*"
41   RMDir "$SMPROGRAMS\${PRODUCT_NAME}"
42SectionEnd
Note: See TracBrowser for help on using the repository browser.