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
|
Line | |
---|
1 | !define PRODUCT_NAME "plotcsv" |
---|
2 | !define PRODUCT_VERSION "0.4" |
---|
3 | !define ICON_FILE "plotcsv.ico" |
---|
4 | |
---|
5 | Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" |
---|
6 | OutFile "${PRODUCT_NAME}_${PRODUCT_VERSION}.exe" |
---|
7 | InstallDir $PROGRAMFILES\${PRODUCT_NAME} |
---|
8 | Page directory |
---|
9 | Page instfiles |
---|
10 | Icon ${ICON_FILE} |
---|
11 | |
---|
12 | Section "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" |
---|
24 | SectionEnd |
---|
25 | |
---|
26 | UninstallText "This will uninstall ${PRODUCT_NAME} ${PRODUCT_VERSION}." |
---|
27 | |
---|
28 | !ifdef ICON_FILE |
---|
29 | UninstallIcon "${ICON_FILE}" |
---|
30 | !endif |
---|
31 | |
---|
32 | Section "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}" |
---|
42 | SectionEnd |
---|
Note: See
TracBrowser
for help on using the repository browser.