2 iDmc Nullsoft Scriptable Install System
2 script for Windoze
.
3 Written by Daniele Pizzoni
<auouo@tin
.it
>
6 ; HM NIS Edit Wizard helper defines
7 !define APP_NAME
"iDmc"
8 !define APP_VERSION
"2.0.5"
9 !define LIB_VERSION
"0.7.0"
11 ; MUI 1.67 compatible ------
15 !define MUI_ABORTWARNING
16 !define MUI_ICON
"${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
17 !define MUI_UNICON
"${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
20 !insertmacro MUI_PAGE_WELCOME
22 !insertmacro MUI_PAGE_LICENSE
"README"
24 !insertmacro MUI_PAGE_DIRECTORY
26 !insertmacro MUI_PAGE_INSTFILES
28 !insertmacro MUI_PAGE_FINISH
31 !insertmacro MUI_UNPAGE_INSTFILES
34 !insertmacro MUI_LANGUAGE
"English"
38 !define APP_FULLNAME
"${APP_NAME}-${APP_VERSION}"
39 !define LIB_FULLNAME
"jidmclib"
40 !define FILE_JAR
"${APP_FULLNAME}.jar"
41 !define FILE_DLL
"${LIB_FULLNAME}.dll"
42 !define DIR_MODELS
"$INSTDIR\models"
45 Name "${APP_FULLNAME}"
46 OutFile "${APP_FULLNAME}-setup.exe"
47 InstallDir "$PROGRAMFILES\${APP_FULLNAME}"
49 ShowUnInstDetails show
52 Section "Executables" SEC01
62 Section "Models" SEC02
63 SetOutPath "${DIR_MODELS}"
66 File "models\cremona.lua"
67 File "models\ctbif.lua"
68 File "models\ctlocal.lua"
69 File "models\gingerman.lua"
70 File "models\henon.lua"
71 File "models\henon2.lua"
72 File "models\hopf.lua"
73 File "models\ikeda.lua"
74 File "models\logist.lua"
75 File "models\lorenz.lua"
77 File "models\nordmark.lua"
79 File "models\quasi.lua"
80 File "models\quasiperiodicity.lua"
81 File "models\rossler.lua"
82 File "models\rotor.lua"
83 File "models\silnikov2.lua"
84 File "models\standard.lua"
85 File "models\tent.lua"
86 File "models\tinkerbell.lua"
90 CreateDirectory "$SMPROGRAMS\${APP_FULLNAME}"
91 CreateShortCut "$SMPROGRAMS\${APP_FULLNAME}\${APP_FULLNAME}.lnk" "$INSTDIR\${FILE_JAR}" -library=
"$INSTDIR\${FILE_DLL}"
92 CreateShortCut "$DESKTOP\${APP_FULLNAME}.lnk" "$INSTDIR\${FILE_JAR}" -library=
"$INSTDIR\${FILE_DLL}"
93 CreateShortCut "$DESKTOP\iDmc models.lnk" "${DIR_MODELS}"
94 CreateShortCut "$SMPROGRAMS\${APP_FULLNAME}\Uninstall.lnk" "$INSTDIR\uninst.exe"
98 WriteUninstaller "$INSTDIR\uninst.exe"
99 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_FULLNAME}" "DisplayName" "$(^Name)"
100 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_FULLNAME}" "UninstallString" "$INSTDIR\uninst.exe"
101 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_FULLNAME}" "DisplayVersion" "${APP_VERSION}"
102 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_FULLNAME}" "Publisher" "TshoSoft"
103 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_FULLNAME}" "InstallLocation" "$INSTDIR"
107 Function un
.onUninstSuccess
109 MessageBox MB_ICONINFORMATION|
MB_OK "${APP_FULLNAME} was successfully removed from your computer."
113 MessageBox MB_ICONQUESTION|
MB_YESNO|MB_DEFBUTTON2
"Are you sure you want to completely remove ${APP_FULLNAME} and all of its components?" IDYES +2
118 Delete "$INSTDIR\uninst.exe"
120 Delete "${DIR_MODELS}\cremona.lua"
121 Delete "${DIR_MODELS}\ctbif.lua"
122 Delete "${DIR_MODELS}\ctlocal.lua"
123 Delete "${DIR_MODELS}\gingerman.lua"
124 Delete "${DIR_MODELS}\henon.lua"
125 Delete "${DIR_MODELS}\henon2.lua"
126 Delete "${DIR_MODELS}\hopf.lua"
127 Delete "${DIR_MODELS}\ikeda.lua"
128 Delete "${DIR_MODELS}\logist.lua"
129 Delete "${DIR_MODELS}\lorenz.lua"
130 Delete "${DIR_MODELS}\lv.lua"
131 Delete "${DIR_MODELS}\nordmark.lua"
132 Delete "${DIR_MODELS}\par.lua"
133 Delete "${DIR_MODELS}\quasi.lua"
134 Delete "${DIR_MODELS}\quasiperiodicity.lua"
135 Delete "${DIR_MODELS}\rossler.lua"
136 Delete "${DIR_MODELS}\rotor.lua"
137 Delete "${DIR_MODELS}\silnikov2.lua"
138 Delete "${DIR_MODELS}\standard.lua"
139 Delete "${DIR_MODELS}\tent.lua"
140 Delete "${DIR_MODELS}\tinkerbell.lua"
142 RmDir
"${DIR_MODELS}"
144 Delete "$INSTDIR\${FILE_DLL}"
145 Delete "$INSTDIR\${FILE_JAR}"
147 Delete "$SMPROGRAMS\${APP_FULLNAME}\Uninstall.lnk"
148 Delete "$SMPROGRAMS\${APP_FULLNAME}\${APP_FULLNAME}.lnk"
149 Delete "$DESKTOP\${APP_FULLNAME}.lnk"
150 Delete "$DESKTOP\iDmc models.lnk"
155 RMDir "$SMPROGRAMS\${APP_FULLNAME}"
158 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_FULLNAME}"