Geckozone

Liberté d'extension

Aller au contenu

Icône KMES Source du Script de désinstallation de KMES 2.10 Retour à la liste des fichiers

  Pour une lecture plus confortable, cachez le volet de navigation à gauche.

! Attention : En raison de problèmes causés par la syntaxe wiki, les double " (chaînes vides) ont été remplacés par '' (double ') dans cette page.

 

; This file handles the list files to delete when uninstalling a K-Meleon Extension (KMES 2.10)


!ifdef _Main

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\skins\default\${PRODUCT_EXTENSION}*.bmp
!endif


!ifdef _chrome

     ;Don't forget to add and/or correct the files to delete (one file per line)
     ;As jarfiles are often used when quitting, and while trying to delete it
     ;It's necessary to add /REBOOTOK to delete it when a reboot will be executed
     Delete /REBOOTOK $INSTDIR\chrome\${PRODUCT_EXTENSION}.jar
     Delete $INSTDIR\chrome\${PRODUCT_EXTENSION}.manifest
!endif


!ifdef _Components

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\components\????

     ;These two files must be deleted too, if components files are deleted
     ;These files will automatically be created by K-Meleon
     Delete "$INSTDIR\components\compreg.dat"
     Delete "$INSTDIR\components\xpti.dat"
!endif


!ifdef _Defaults_Autoconfig

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\defaults\autoconfig\????
!endif


!ifdef _Defaults_Pref

     ;Don't forget to add/modify the files to delete (one file per line)
     Delete $INSTDIR\defaults\pref\${PRODUCT_EXTENSION}.js
!endif


!ifdef _Defaults_Pref_i10n

     ;I don't know how to handle it, because it's not obvious to know what to restore
     ;So, for the moment, I decide not to delete the file and not to restore it.

     ;Delete $INSTDIR\defaults\pref\i10n.js

     ;SetOutPath "$INSTDIR\defaults\pref"
     ;strcmp $_KMShortVersion "1.1" 0 i10n1.5
     ;File .\restore\1.1\i10n.js
     ;goto i10nEnd

     ;i10n1.5:
     ;strcmp $_KMShortVersion "1.6" 0 i10n1.6
     ;File .\restore\1.5\i10n.js
     ;goto i10nEnd

     ;i10n1.6:
     ;File .\restore\1.6\i10n.js

     ;i10nEnd:
!endif


!ifdef _Defaults_Profile

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\defaults\profile\????
!endif


!ifdef _Defaults_Profile_Bookmarks

     ;I don't know how to handle it, because it's not obvious to know what to restore
     ;So, for the moment, I decide not to delete the file and not to restore it.

     ;Delete $INSTDIR\defaults\profile\bookmarks.html
     ;SetOutPath "$INSTDIR\defaults\profile"
     ;File /nonfatal .\restore\bookmarks.html
!endif


!ifdef _Defaults_Profile_Search

     ; I don't know how to handle it, because it's not obvious to know what to restore
     ; So, for the moment, I decide not to delete the file and not to restore it.

     ;Delete $INSTDIR\defaults\profile\search.xml
     ;SetOutPath "$INSTDIR\defaults\profile"
     ;File /nonfatal .\restore\search.xml
!endif


!ifdef _Defaults_Profile_Chrome

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\defaults\profile\chrome\????
!endif


!ifdef _Defaults_Profile_Macros

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\defaults\profile\macros\????
!endif


!ifdef _Defaults_Settings

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\defaults\settings\????
!endif


!ifdef _Defaults_Wallet

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\defaults\wallet\????
!endif


!ifdef _Kplugins

     ;Don't forget to add the files to delete (one file per line)
     ;Warning, utils, kmplus and luamacros are treated after, don't delete them here
     ;Delete $INSTDIR\kplugins\????
!endif


!ifdef _utils_Kplugin

     ; Update utils.dll use counter
     ReadINIStr $R0 $INSTDIR\Extensions\kplugins.ini "utils.dll" "Extensions"
     Intcmp $R0 0 delete_utils delete_utils ok_utils

     delete_utils:
     Delete $INSTDIR\kplugins\utils.dll

     ok_utils:
!endif


!ifdef _kmplus_Kplugin

     ; Update kmplus.dll use counter
     ReadINIStr $R0 $INSTDIR\Extensions\kplugins.ini "kmplus.dll" "Extensions"
     Intcmp $R0 0 delete_kmplus delete_kmplus ok_kmplus

     delete_kmplus:
     Delete $INSTDIR\kplugins\kmplus.dll

     ok_kmplus:
!endif


!ifdef _Macros_Macros

     ;Don't forget to add the files to delete
     Delete $INSTDIR\macros\${PRODUCT_EXTENSION}.kmm
!endif


!ifdef _Plugins

     ;Don't forget to add the files to delete
     ;Delete $INSTDIR\plugins\????
!endif


!ifdef _Res

     ;Don't forget to add the files to delete
     ;Delete $INSTDIR\res\????
!endif


!ifdef _Skins

     ; Warning : The additional icons added to default skin folder must removed in main section
     rmdir /r $INSTDIR\skins\${PRODUCT_EXTENSION}
!endif


!ifdef _LargeSkin

     DeleteINIStr $INSTDIR\skins\skins.ini large ${PRODUCT_EXTENSION}
!endif


!ifdef _Tools

     ;Don't forget to add the files to delete
     ;Delete $INSTDIR\tools\????
!endif


!ifdef _Luamacros

     ;Don't forget to add the files to delete (one file per line)
     ;Delete $INSTDIR\luamacros\????

     ; Update Luamacro.dll use counter
     ReadINIStr $R0 $INSTDIR\Extensions\kplugins.ini "luamacro.dll" "Extensions"
     Intcmp $R0 0 delete_luamacros delete_luamacros ok_luamacros

     delete_luamacros:
     Delete $INSTDIR\kplugins\luamacro.dll

     ok_luamacros:
!endif


!ifdef _Locales_Up

     ; Don't forget to modify, if the name of the locale kml file isn't in the following format
     !define KML_NAME ${PRODUCT_EXTENSION}.kml

     FindFirst $0 $1 "$INSTDIR\Locales\??-??"

     un_Other_Language:
     strCmp $1 '' un_Kml_done
     delete $INSTDIR\locales\$1\${KML_NAME}

     FindNext $0 $1
     Goto un_Other_Language

     un_Kml_done:
!endif


; KMES maintenance

; Delete unsetup command file
delete $INSTDIR\extensions\un_${PRODUCT_EXTENSION}.cmd
delete $INSTDIR\extensions\un_${PRODUCT_EXTENSION}.bat

; Update Extensions.ini
DeleteINISec $INSTDIR\Extensions\Extensions.ini ${PRODUCT_EXTENSION}

; Update KMEShelper.kmm
FileOpen $1 "$INSTDIR\macros\KMEShelper.txt" "a"
FileOpen $2 "$INSTDIR\macros\KMEShelper.kmm" "r"
strcpy $4 "#" 0

VerifyNext:
FileRead $2 $3
strcpy $4 $3 -2
strcmp $4 "i_${PRODUCT_EXTENSION}{" VeriFound CopyBefore

CopyBefore:
FileWrite $1 $3
goto VerifyNext

VeriFound:
FileRead $2 $3
strcpy $4 $3 -2
strcmp $4 "#end_of_${PRODUCT_EXTENSION}" NextCopy VeriFound

NextCopy:
FileRead $2 $3
ClearErrors

CopyNext:
FileRead $2 $3
IfErrors ClearHelper
FileWrite $1 $3
goto CopyNext

ClearHelper:
FileClose $1
FileClose $2

Delete "$INSTDIR\macros\KMEShelper.kmm"
Rename "$INSTDIR\macros\KMEShelper.txt" "$INSTDIR\macros\KMEShelper.kmm"


!ifdef _Language_Add

     ; Here is one of the last thing to do
!endif


; That's all folks :-))

Aucun commentaire !

Ajouter un commentaire à cette page :

Seuls les membres peuvent ajouter des commentaires.
Utilisez la page de connexion pour vous inscrire.


- Merci de commencer par consulter l'aide.
- Pour des demandes d'aide, pensez au forum.
- Le lien ne fonctionne pas ? Commencez SVP par lire la page installer une extension.

Les commentaires vulgaires, blessants ou injurieux seront supprimés. Merci de faire des critiques constructives qui nous aideront à nous améliorer.

Le code HTML dans le commentaire sera affiché comme du texte. Pour formater votre texte vous pouvez utiliser la syntaxe Wiki :

Règles de base :
**Texte en gras !** ---> Texte en gras !
//Texte en italique.// ---> Texte en italique.
##texte à espacement fixe## ---> texte à espacement fixe
[[http://www.geckozone.org Lien vers Geckozone]] ---> Lien vers Geckozone