Révision 818
tmp/org.txm.setups/shared/win/txm.nsi (revision 818) | ||
---|---|---|
8 | 8 |
|
9 | 9 |
Name "TXM 0.8.0" |
10 | 10 |
|
11 |
;Version "" |
|
12 |
Version "_0.8.0"
|
|
11 |
;!define Version ""
|
|
12 |
!define Version "_0.8.0_a"
|
|
13 | 13 |
|
14 |
OutFile "TXM_0.8.0_Win64_installer.exe" |
|
15 | 14 |
|
16 |
InstallDir "$PROGRAMFILES64\TXM"
|
|
15 |
OutFile "TXM${Version}_Win64_installer.exe"
|
|
17 | 16 |
|
17 |
InstallDir "$PROGRAMFILES64\TXM${Version}" |
|
18 |
|
|
18 | 19 |
RequestExecutionLevel admin |
19 | 20 |
|
20 | 21 |
;compression |
... | ... | |
193 | 194 |
setOutPath $INSTDIR |
194 | 195 |
|
195 | 196 |
|
196 |
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM" "UninstallString" |
|
197 |
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM${Version}" "UninstallString"
|
|
197 | 198 |
|
198 | 199 |
StrCmp $R0 "" done |
199 | 200 |
|
... | ... | |
268 | 269 |
|
269 | 270 |
SetShellVarContext all |
270 | 271 |
|
271 |
CreateDirectory "$SMPROGRAMS\TXM" |
|
272 |
CreateDirectory "$SMPROGRAMS\TXM${Version}"
|
|
272 | 273 |
|
273 |
CreateShortCut "$SMPROGRAMS\TXM\TXM.lnk" "$INSTDIR\TXM.bat" "$INSTDIR\TXM.ico" |
|
274 |
CreateShortCut "$SMPROGRAMS\TXM${Version}\TXM.lnk" "$INSTDIR\TXM.bat" "$INSTDIR\TXM.ico"
|
|
274 | 275 |
|
275 |
CreateShortCut "$SMPROGRAMS\TXM\uninstall.lnk" "$INSTDIR\uninstall.exe" |
|
276 |
CreateShortCut "$SMPROGRAMS\TXM${Version}\uninstall.lnk" "$INSTDIR\uninstall.exe"
|
|
276 | 277 |
|
277 |
#CreateShortCut "$SMPROGRAMS\TXM\Manuel utilisateur FR.pdf.lnk" "$INSTDIR\doc\Manuel de TXM 0.7 FR.pdf" |
|
278 |
#CreateShortCut "$SMPROGRAMS\TXM${Version}\Manuel utilisateur FR.pdf.lnk" "$INSTDIR\doc\Manuel de TXM 0.7 FR.pdf"
|
|
278 | 279 |
|
279 |
#CreateShortCut "$SMPROGRAMS\TXM\User Manual EN.pdf.lnk" "$INSTDIR\doc\TXM 0.7 Manual EN.pdf" |
|
280 |
#CreateShortCut "$SMPROGRAMS\TXM${Version}\User Manual EN.pdf.lnk" "$INSTDIR\doc\TXM 0.7 Manual EN.pdf"
|
|
280 | 281 |
|
281 | 282 |
|
282 | 283 |
; Store installation folder |
283 | 284 |
|
284 |
WriteRegStr HKCU "Software\TXM" "" $INSTDIR |
|
285 |
WriteRegStr HKCU "Software\TXM${Version}" "" $INSTDIR
|
|
285 | 286 |
|
286 | 287 |
#register the TXM uninstall to windows programs |
287 | 288 |
|
288 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM" "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" |
|
289 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM${Version}" "UninstallString" "$\"$INSTDIR\uninstall.exe$\""
|
|
289 | 290 |
|
290 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM" "DisplayName" "TXM - The Textometrie project builds the new generation of modular and open-source textometry platform and application. The scientific project web site is http://textometrie.ens-lsh.fr/?lang=en. " |
|
291 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM${Version}" "DisplayName" "TXM - The Textometrie project builds the new generation of modular and open-source textometry platform and application. The scientific project web site is http://textometrie.ens-lsh.fr/?lang=en. "
|
|
291 | 292 |
|
292 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S" |
|
293 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM${Version}" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
|
|
293 | 294 |
|
294 | 295 |
SectionEnd |
295 | 296 |
|
... | ... | |
493 | 494 |
|
494 | 495 |
# Delete installation key |
495 | 496 |
|
496 |
DeleteRegKey /ifempty HKCU "Software\TXM" |
|
497 |
DeleteRegKey /ifempty HKCU "Software\TXM${Version}"
|
|
497 | 498 |
|
498 | 499 |
# Delete uninstaller key |
499 | 500 |
|
500 |
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM" |
|
501 |
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM${Version}"
|
|
501 | 502 |
|
502 | 503 |
# we remove the software |
503 | 504 |
|
504 | 505 |
RMDir /r $INSTDIR |
505 | 506 |
|
506 | 507 |
# second, remove the link from the start menu |
508 |
RMDir /r "$SMPROGRAMS\TXM${Version}" |
|
507 | 509 |
|
508 |
RMDir /r "$SMPROGRAMS\TXM\" |
|
509 |
|
|
510 | 510 |
SectionEnd |
511 | 511 |
|
Formats disponibles : Unified diff