source: misc/tools/plotcsv/installer/plotcsv.nsi @ 6480

Last change on this file since 6480 was 6480, checked in by rwilson, 16 years ago

Fixed clumsy code, bumped verion # for next release.

File size: 1.4 KB
RevLine 
[6348]1!define PRODUCT_NAME "plotcsv"
[6480]2!define PRODUCT_VERSION "0.4"
[6348]3!define ICON_FILE "plotcsv.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 plotcsv.nsi
15   File plotcsv.py
16   File tkinter_error.py
17   File INSTALL.txt
18   File plotcsv.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}"
[6480]42SectionEnd
Note: See TracBrowser for help on using the repository browser.