Révision 868
| tmp/org.txm.setups/shared/win/txm.nsi (revision 868) | ||
|---|---|---|
| 20 | 20 |
|
| 21 | 21 |
;compression |
| 22 | 22 |
|
| 23 |
;SetCompressor /FINAL /SOLID lzma
|
|
| 23 |
SetCompressor /FINAL /SOLID lzma |
|
| 24 | 24 |
|
| 25 |
;SetCompressorDictSize 64
|
|
| 25 |
SetCompressorDictSize 64 |
|
| 26 | 26 |
|
| 27 | 27 |
|
| 28 | 28 |
;interface configuration |
| ... | ... | |
| 261 | 261 |
|
| 262 | 262 |
AccessControl::GrantOnFile "$INSTDIR\TXM" "(S-1-5-32-545)" "FullAccess" |
| 263 | 263 |
|
| 264 |
#we create the uninstaller |
|
| 265 |
|
|
| 266 |
WriteUninstaller "$INSTDIR\uninstall.exe" |
|
| 267 |
|
|
| 268 | 264 |
#we set the shortcuts |
| 269 | 265 |
|
| 270 | 266 |
SetShellVarContext all |
| 271 | 267 |
|
| 272 | 268 |
CreateDirectory "$SMPROGRAMS\TXM${Version}"
|
| 273 | 269 |
|
| 274 |
CreateShortCut "$SMPROGRAMS\TXM${Version}\TXM.lnk" "$INSTDIR\TXM.bat" "$INSTDIR\TXM.ico"
|
|
| 270 |
;CreateShortCut "$SMPROGRAMS\TXM${Version}\TXM.lnk" "$INSTDIR\TXM.bat" "$INSTDIR\TXM.ico"
|
|
| 271 |
CreateShortCut "$SMPROGRAMS\TXM${Version}\TXM.lnk" "$INSTDIR\TXM.bat" "" "$INSTDIR\TXM.ico" 0
|
|
| 275 | 272 |
|
| 276 | 273 |
CreateShortCut "$SMPROGRAMS\TXM${Version}\uninstall.lnk" "$INSTDIR\uninstall.exe"
|
| 277 | 274 |
|
| ... | ... | |
| 288 | 285 |
|
| 289 | 286 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM${Version}" "UninstallString" "$\"$INSTDIR\uninstall.exe$\""
|
| 290 | 287 |
|
| 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. "
|
|
| 288 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM${Version}" "DisplayName" "TXM${Version} - 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. "
|
|
| 292 | 289 |
|
| 293 | 290 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TXM${Version}" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
|
| 291 |
|
|
| 292 |
|
|
| 293 |
#we create the uninstaller |
|
| 294 | 294 |
|
| 295 |
WriteUninstaller "$INSTDIR\uninstall.exe" |
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 295 | 299 |
SectionEnd |
| 296 | 300 |
|
| 297 | 301 |
Function WriteToFile |
| ... | ... | |
| 492 | 496 |
|
| 493 | 497 |
Section "Uninstall" |
| 494 | 498 |
|
| 499 |
SetShellVarContext all |
|
| 500 |
|
|
| 495 | 501 |
# Delete installation key |
| 496 | 502 |
|
| 497 | 503 |
DeleteRegKey /ifempty HKCU "Software\TXM${Version}"
|
| ... | ... | |
| 505 | 511 |
RMDir /r $INSTDIR |
| 506 | 512 |
|
| 507 | 513 |
# second, remove the link from the start menu |
| 514 |
;Delete "$SMPROGRAMS\TXM${Version}\uninstall.lnk"
|
|
| 515 |
|
|
| 508 | 516 |
RMDir /r "$SMPROGRAMS\TXM${Version}"
|
| 509 | 517 |
|
| 510 | 518 |
SectionEnd |
Formats disponibles : Unified diff