J'ai écrit un script NSIS avec l'appel d'abandon !define MUI_CUSTOMFUNCTION_ABORT _onUserAbort
. Dans la fonction _onUserAbort
, je veux supprimer certains fichiers.NSIS: Comment nettoyer les fichiers sur l'installation d'abandon?
Voilà ma fonction:
Function _onUserAbort
MessageBox MB_YESNO "Are you sure you want to abort the installation?" IDYES true IDNO false
true:
;cleanup function
Abort
false:
FunctionEnd
Si je clique sur « Oui » il ne fait rien, mais si je clique sur « Non », elle annule l'installation. Sil te plait aide moi.
Merci. Ça fonctionne maintenant. –